Prisoner to be freed

The warden meets with 23 new prisoners when they arrive. He tells them, "You may meet today and plan a strategy. But after today, you will be in isolated cells and will have no communication with one another.

"In the prison is a switch room, which contains two light switches labeled 1 and 2, each of which can be in either up or the down position. I am not telling you their present positions. The switches are not connected to anything.

"After today, from time to time whenever I feel so inclined, I will select one prisoner at random and escort him to the switch room. This prisoner will select one of the two switches and reverse its position. He must flip one switch when he visits the switch room, and may only flip one of the switches. Then he'll be led back to his cell.

"No one else will be allowed to alter the switches until I lead the next prisoner into the switch room. I'm going to choose prisoners at random. I may choose the same guy three times in a row, or I may jump around and come back. I will not touch the switches, if I wanted you dead you would already be dead.

"Given enough time, everyone will eventually visit the switch room the same number of times as everyone else. At any time, anyone may declare to me, 'We have all visited the switch room.'

"If it is true, then you will all be set free. If it is false, and somebody has not yet visited the switch room, you will all die horribly. You will be carefully monitored, and any attempt to break any of these rules will result in instant death to all of you"

What is the strategy they come up with so that they can be free?




Similar Riddles

A wealthy man lives alone in a small cottage. Being partially handicapped he had everything delivered to his cottage. The mailman was delivering a letter one Thursday when he noticed that the front door was ajar. Through the opening he could see the man's body lying in a pool of dried blood. When a police officer arrived he surveyed the scene. On the porch were two bottles of warm milk, Monday's newspaper, a catalog, flyers, and unopened mail. The police officer suspects it was foul play. Who does he suspect and why?

Murder Mystery Puzzle

Asked by Neha on 07 Apr 2021


In the figure, you can see nine stars. What you have to do is connect all of them by using just four line and without lifting your hand i.e. in a continuous flow.

Connect the Stars

Asked by Neha on 17 May 2021

Can you solve this amazing hard number series problem?
7, 8, 10, 12, 16, 18 ?

Asked by Neha on 18 Apr 2024


Can you replace the question mark with the correct number?

Fill in the Question Marked Space

Asked by Neha on 09 Mar 2024

What Deficiency does the below rebus represent?

VIT_MIN

Asked by Neha on 09 Jun 2024

I am an eight letter word and I am a computer terminology.
The second, third and fourth letters make an animal.
The fourth, fifth, sixth, seventh and eighth letters make a weapon.
The first, second, third and fourth letters can be taken as an outcome of any exam.
The fifth, sixth, seventh and eighth letter combine to form a high end typing software.

Can you tell who am I ?

Asked by Neha on 16 Jul 2021


If 5 cats catch 5 mice in 5 minutes, how long will it take one cat to catch a mouse?

Asked by Neha on 13 Sep 2021

You stand in front of two doors. A guard stands next to each door. You know the following things: one path leads to paradise, the other leads to death. You cannot distinguish between the two doors. You also know that one of the two guards always tells the truth and the other always lies. You have permission to ask one guard one question to discover which door leads to paradise. What one question would you ask to guarantee you enter the door to paradise?

Asked by Neha on 03 Jun 2025

The square root of number 121 is "11". What is the square root of the number "12345678987654321."?

Asked by Neha on 15 Dec 2024


What will be the best approach to finding all the prime numbers less than 75 that leave an odd reminder when we divide them with 5?

Asked by Neha on 12 Jul 2021

Hot Articles

Amazing Facts

Rubik’s Cube

The inventor of the Rubik’s Cube didn’t realize he’d built a puzzle until he scrambled it the first time and tried to restore it.