100 prisoners and the Light Bulb Puzzle
There are 100 prisoners are in solitary cells, unable to see, speak or communicate in any way with each other. There’s a room with one light bulb, the bulb is initially off. No prisoner can see the light bulb from his own cell. Everyday, the warden picks a prisoner at random, and that prisoner goes to the that room. While there, the prisoner can toggle the bulb if he wishes. Also, the prisoner has the option of asserting the claim that all 100 prisoners have been to the living room. If this assertion is false (that is, some prisoners still haven’t been to the living room), all 100 prisoners will be shot for their stupidity. However, if it is indeed true, all prisoners are set free. Thus, the assertion should only be made if the prisoner is 100% certain of its validity.
Before the random picking begins.All the prisoners are allowed to get together to discuss a plan.
Note that each prisoner can be selected any number of times and the process will continue till the assertion is not made.
The prisoners need a way to communicate with each other on who when into the cell. Therefore one person is chosen as the counter.
Every time any prisoner is selected other than counter person , they follow these steps. If they have never turned on the light bulb before and the light bulb is off, they turn it on. If not, they don’t do anything.Now if Counter person is selected and the light bulb is already on, he adds one to his count and turns off the bulb. If the bulb is off, he just sits and do nothing. The day his count reaches 99, he calls the warden and tells him “Every prisoner has been in the special room at least once”.
The prisoners give themselves numbers from 1 to 100 and determine among themselves what each prisoner should do when he leaves.
Every prisoner whose number is less than 100 turns on the lamp if it is off and on the condition that he has never turned it on yet.
The prisoner whose number is 100 turns off the lamp if it is on and counts the number of times he turned it off.
After counting 99 times, he informs the warden that all prisoners have already gone out into the room at least once.
Your Answer
More puzzles to try-
Physical Challenge riddle
John and Jacob have been the best friends ever since they were little kids. They are very competitive. Throughout the ...Read More »I fill a whole room, who am I?
I stand in one place yet I fill a whole room. I can be filled with molten rock and come ...Read More »Why he fired his guard
A very important man is about to take a trip to Iceland. He is awoken in the middle of the ...Read More »How do you distribute the lemons?
You have 1023 lemons and 10 bags. You have to distribute these lemons in these 10 bags in any way ...Read More »Falls but does not break
What falls but does not break, and what breaks but does not fall?Read More »Clock & time riddle
A stopped clock gives the exact time twice a day, while a normally running (but out of sync) clock will ...Read More »I sit between you and a star riddle
I sit between you and a star, but far below me is an empty space. I can be infinite or ...Read More »Height of stairways
Recently, while in London, I decided to walk down the escalator of a tube station. I did some quick cal-culations ...Read More »How Louise kept on reading in dark puzzle
On a dark night Louis and Adam were sitting together. Adam was watching movie while his wife Louis was reading ...Read More »How many bees riddle
A killer bee was buzzing, a queen bee was buzzing, a worker bee was buzzing, and a honey bee was ...Read More »10 Coins Puzzle
You are blindfolded and 10 coins are place in front of you on table. You are allowed to touch the ...Read More »Teacher and chalkstick saving puzzle
Your teacher has a total of 36 chalks. When a chalk reduces to 1/6 of its original size, it gets ...Read More »Candle Trick Teaser Problem
A husband has prepared for a candle light dinner on honeymoon for his wife. While they were having the dinner, ...Read More »What is next
If, 4+2=26, 8+1=79 and 6+5=111. Then, what is 7+3=……Read More »Andrew Book’s math riddle
Andrew is writing a book. He starts on page 1. When he finished, he used a total of 228 digits. ...Read More »Hill Station Vacation Puzzle
A couple went to a hill station to enjoy their vacation. They have 12 sons, and each has a wife ...Read More »Paradox Monsters Puzzle
You met three Monsters. One always tells the truth, other one always lies and the last one alternates between lie ...Read More »Ranking The Students
In a class test the rank of five students are: Joe did not come second Julie did not come first ...Read More »Scientific Maths
What\’s the next in the series? H, Be, F, S, Mn, Kr, In, Gd, Tl, ?Read More »Men dream on sound
At the sound, men may dream or stomp their feet at the sound of me, women may laugh or sometimes ...Read More »