There is man named 'Mabu' who switches on-off the lights along a corridor at our
university. Every bulb has its own 'toggle' switch that changes the state of the light. If the light is off, pressing the switch turns it on. Pressing it again will turn it off.
Initially each bulb is off.
He does a peculiar thing. If there are 'n' bulbs in the corridor, he walks along the corridor back and forth 'n' times. On the 'i'th walk, he toggles only the switches whose position is divisible by 'i'.
He does not press any switch when coming back to his initial position.
The 'i'th walk is defined as going down the corridor (doing his peculiar thing) and coming back again.
Assume n=44,100.
Determine the final state of the last (44,100th) bulb. Is it on or off?

13 comments:

  1. This comment has been removed by the author.

    ReplyDelete
  2. 44,100th bulb is surely off.

    P.S.: I solved a similar puzzle with friends about an year ago.. so this one seemed easy..
    Here's the one we faced earlier:
    In the same problem as anuj bhaiya posted, suppose n=100. Find out how many bulbs are finally in the 'on' state.
    Try it.. I have the answer(with logic).

    ReplyDelete
  3. This comment has been removed by a blog administrator.

    ReplyDelete
  4. oh yes m sorry.. :P
    it shud be on..(a bit calculation mistake!)

    ReplyDelete
  5. This comment has been removed by the author.

    ReplyDelete
  6. no one posts the solution. not yet.

    ReplyDelete
  7. in the first case (n=44)the bulb will be off
    while in the second case it will be on
    m i correct ???

    ReplyDelete
  8. @prashant
    n = 44100 ,
    not 44 and 100

    @anuj bhiaya
    i'll take care of that in future bhaiya.

    ReplyDelete
  9. wow, after a long time i found an easy problem here

    ReplyDelete
  10. Shivanker, about your question,
    answer 10 right?
    for general value of n, [sqrt(n)] will be the answer as only perfect squares will satisfy this.

    ReplyDelete
  11. Thanks bhaiya,pehli baar aapse hats off mila!

    ReplyDelete