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-
What is the cost of bat and ball?
Cricket bat and ball cost $50. If the bat cost $49 more than the ball, what is the cost of ...Read More »How many mystical fruits remain after all the thirty check points?
Birbal is a witty trader who trade of a mystical fruit grown far in north. He travels from one place ...Read More »Party with gift
You are invited in a party with some gifts. Only certain things have to bring through. You can bring a ...Read More »Label the Box correctly
There are three boxes which are labeled as Rs100, Rs150, and Rs200. One box contains two notes of Rs. 50. ...Read More »Car Driving
Jenifer is learning to drive her car. She went down a one way lane and in the wrong direction. But ...Read More »Who stole the $100,000?
A man leaves a $100,000 dollar bill on his desk and leaves work. When he returns the money is gone. ...Read More »Who are the killers?
A very famous chemist was found murdered in his kitchen today. The police have narrowed it down to six suspects. ...Read More »Correct Counting
I went to city Mexico on the way I saw four women, with four bags, who have four kittens. Each ...Read More »Pattern Forecast
What is represented by this BrainBat Pattern? EST EST EST ESTRead More »Fox, Duck and Corn transportation Puzzle
A man transports a fox, a duck and corn in a boat. The boat is only capable of transporting himself ...Read More »Who was buried ?
Who was buried in Grant’s Tomb?Read More »Six men are at a bar puzzle
There are six men in a bar. One comes up to you and asks for your number saying his name ...Read More »Make the Word
Can you decipher the two rows to find the hidden word?Read More »Bulb and switch riddle
You are in a room with three light switches, each of which controls one of three light bulbs in the ...Read More »Around in Circle
It go around in circles, But always straight ahead Never complain, No matter where it is led. What is it?Read More »Replace the Question Mark
Replace the question mark with the correct number given in the below figure. Think Logical!!!Read More »Series riddle
Complete the series 11,15,19,18,26,21,32, 24,37,____Read More »Can you start the fire?
Can you start the fire using two pieces of wood?Read More »Swimming in the Lake Riddle
A famous swimmer can swim downstream in a lake in exactly 40 minutes with the lake current. He can swim ...Read More »There was a man who was born before his father
There was a man who was born before his father, killed his mother, and married his sister. Yet there was ...Read More »