A battery of emf 10 v and internal resistance of 0.5 ohms is connected across A variable resistance R.The maximum value of R is given by: