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-
How is this situation possible?
A horse travels a certain distance each day. Strangely enough, two of its legs travel 30 miles each day and ...Read More »FIND THE RIGHT DOOR
You are trapped in a room with two doors. One leads to certain death and the other leads to freedom. ...Read More »Cash a car riddle
A man is going to an Antique Car auction. All purchases must be paid for in cash. He goes to ...Read More »I Always Lie
I am lying and I always lie. Tell me whether I am lying or telling the truth.Read More »Who would you take?
If your overweight father-in-law, mother-in-law who looks like she’s about to die, and your wife approach you in your car ...Read More »Two in a corner
Two in a corner, one in a room, zero in a house, but one in a shelter. What is it?Read More »Helper all the time
You use it everyday but let it rest at night. It has an identical twin beside it all the time. ...Read More »98 dollar riddle
A man phoned his son to buy a few things he needed for a trip. He told him he would ...Read More »Lift an elephant with one hand
How can you lift an elephant with one hand?Read More »Lost Brother riddle
A man is able to contact his long lost brother who has never met. They agree to meet. When the ...Read More »Can fly but not a bird riddle
He can not see yet he know you are there. He is not a cow but he is leather. He ...Read More »Which house have a girl child puzzle
In Taj Square there are two houses – House A and House B. In both A and B, lives a ...Read More »Which colour is the last ball
There is a bag with 20 black and 13 red balls. Your task is to pick two balls in succession. ...Read More »how far are the two ends of chain from each other?
There is a chain nailed to the wall. The chain is 10 feet long and the center of the chain ...Read More »Which number replaces the question mark?
How many Mystical fruits remained?
MrBrown is a witty trader who trade of a mystical fruit grown far in north. He travels from one place ...Read More »508 Matchstick Puzzle
Moving only two sticks from the number formed with matchsticks, what is the largest number that you can get?Read More »Aisa janwar ka naam batao whatsapp puzzle
Whatsapp name an animal puzzle Hindi In English Aisa janwar ka naam batao jo bilkul kutte jaisa dikhta hai, lekin ...Read More »Can you think of a movie that this expression refers to?
You see a mathematical expression in the picture. Can you think of a movie that this expression refers to?Read More »Brilliant students Puzzle
In a university, a professor gave a set of three problems to the three brilliant students of his class. See ...Read More »