|
This week's riddle - Light bulbs |
|
|
|
|
Written by Aharon Brodutch
|
|
Wednesday, 18 November 2009 00:00 |
|
No one solved the riddle from two weeks ago (hats), i'm still wating for the answer.
Light bulbs You are standing in front of a wall with 100 light bulbs and 100 switches numbered 1 to 100. the light bulbs are all off, and the switches have the following effect: flipping a switch will change the state of all the bulbs that are multiples of that switch (so flipping 10 will change the state of 10,20,30,40..100) you decide to flip the switches one by one, how many light bulbs will be lit at the end? flipping the first switch(1) will turn all the bulbs on, flipping the second (2) will then turn off all the even numbers etc... finally turning the 100th switch (100) will change the state of the 100th bulb. enjoy.
 |