Two cells of equal emf and internal resistance r1 and r2 (r1 > r2) are connected in series. on connecting this combination to an external resistance R, it is observed that the potential difference across the first cell becomes zero. The value of R will be