A battery of emf E is connected across the circuit. The value of R for which heat generated in the circuit is maximum