it works perfectly and the bulb consumes 500 W . The value of R is :-