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-
Unique Bank Puzzle
In a certain bank, a man deposits a certain amount. According to the bank policies, the amount will be doubled ...Read More »Spot The Whale
High-IQ individuals often excel in such optical illusion challenges, showcasing their ability to process complex visual information rapidly and accurately. ...Read More »Rich River Puzzle
Why is a river so rich ?Read More »Ratio of boys to girl riddle
The overly feminist rulers of a country decide that there are too many baby boys being born. The rulers decide ...Read More »Cut cube into small cubes
A solid, four-inch cube of wood is coated with blue paint on all six sides. Then the cube is cut ...Read More »Saturday stronger than Monday
Why is Saturday stronger than Monday?Read More »White Buffalo
Holding two long poles, five fellows Chase a herd of white buffalo into a cave.Read More »Never Touched
Often held but never touched, always wet but never rusts, often bites but seldom bit, to use it well you ...Read More »What did he put in the barrel?
A man has a barrel filled with oil that weighs 100 pounds, and then he puts something into it. Now ...Read More »Rings of marriage riddle
What are the three rings of marriage ?Read More »Equate with Numbers
Replace each alphabet with the number (1-9) to make the below equation correct. AB * C = DE – F ...Read More »Which of the statements is true?
A. The number of false statements here is one. B. The number of false statements here is two. C. The ...Read More »Math Equation Picture
Solve the mathematical equation in the picture below.Read More »Find the Child
One day, five couples and their children (each couple had only one child) spent the day at an amusement park. ...Read More »which daughter is the youngest or oldest?
ohn has three daughters who are all unmarried. The youngest always lies, the oldest always tells the truth, and the ...Read More »Round the earth riddle
The circumference of the Earth is approximately 40,000 kilometers, and someone has just made a metal band that circles the ...Read More »Race with horses puzzle
An old man dies, leaving behind two sons. In his will, he orders his sons to race with their horses, ...Read More »Number is upside down
What year of this century is the same when its number is upside down? What year of the previous century ...Read More »Algebra Cipher Puzzle
If “P” means “-“, “Q” means “/”, “R” means “+”, and “S” means “*” then find the value of the ...Read More »Four Letter Word riddle
Which four-letter word can be written forward, backward or upside down, and can still be read from left to right ...Read More »