There are 49 lamps set in a circle , and a tool that can toggle the stage(on\off) of any set of 5 consecutive lamps.The lamps are all turned off , and the goal is to switch them on. What are the possible no. of times that one would have to use this tool to achieve this?
The options are $25,32,40 $ and $49$
I have seen many problems of this type , but am clueless as to how to approach them. I feel they may use some algorithmic trick , or algorithmic problem solving strategy, like the invariance principle.
Is there a general way to solve problems of this sort? Also, is there an online source/pdf covering problems like this?