what is the formula for three series connected resistor