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 family is trapped in a jungle. There is a bridge which can lead them to safety. But at one time, the bridge can only allow two people to pass through. Also, all of them are afraid of the dark and thus, they can't go alone.

Father takes 1 minute to cross, the mother takes 2 minutes, the son takes 4 and the daughter takes 5 minutes. While crossing the time taken will be according to the slower one. How can they all reach the other side in the minimum possible time?

Asked by Neha on 09 Aug 2024


What is at the end of a rainbow?

Asked by Neha on 17 May 2021

What is the word or phrase below?
R | E | A | D

Asked by Neha on 28 Jul 2024


The centre of the third figure is empty. What digit should fit inside?

Missing Digit Riddle

Asked by Neha on 24 Jan 2024

Which is the smallest number that you can write using all the vowels exactly once?

Asked by Neha on 11 May 2024

You are given a cube that is made with the help of 10x10x10 smaller cubes summing up to a total of 1000 smaller cubes. You are asked to take off one layer of the cubes.
How many remain now?

Cube Game

Asked by Neha on 17 Jan 2021


You are driving down the road in your car on a wild, stormy night, when you pass by a bus stop and you see three people waiting for the bus

An old lady looks as if she is about to die.
An old friend who once saved your life.
The perfect partner you have been dreaming about.
Knowing that there can only be one passenger in your car, whom would you choose?

Asked by Neha on 11 Apr 2025

The product of three consecutive numbers is 7980.
Then the sum of these consecutive numbers would be?

Asked by Neha on 23 Apr 2025

Two friends decide to get together; so they start riding bikes towards each other. They plan to meet halfway. Each is riding at 6 MPH. They live 36 miles apart. One of them has a pet carrier pigeon and it starts flying the instant the friends start traveling. The pigeon flies back and forth at 18 MPH between the 2 friends until the friends meet.

How many miles does the pigeon travel?

Asked by Neha on 02 Aug 2021


0 0 0 = 6
1 1 1 = 6
2 2 2 = 6
3 3 3 = 6
4 4 4 = 6
5 5 5 = 6
6 6 6 = 6
7 7 7 = 6
8 8 8 = 6
9 9 9 = 6

You can use any mathematical symbols in the space provided to make all above algebraic expressions true.

Asked by Neha on 24 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.