Potentiometer wire PQ of 1 m length is connected to a standard cell E1. Another cell E2 of emf 1.02 V is connected with a resistance r and a switch S as shown in circuit diagram. With switch S open, null position is obtained at a distance of 51 cm from P. Calculate the e.m.f. of cell E1.