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

There was once a college that offered a class on probability applied to the real world. The class was relatively easy, but there was a catch. There were no homework assignments or tests, but there was a final exam that would have only one question on it. When everyone received the test paper it was a blank sheet of paper with a solitary question on it: 'What is the risk?'.Most students were able to pass, but only one student received 100% for the class! Even stranger was that he only wrote down one word!
What did he write?

Asked by Neha on 03 Sep 2023


If an earthquake is 1 point higher on the Richter Scale than another earthquake which is actually 10 times stronger, how much stronger would an earthquake be if it was just half a point higher on the Richter scale?

Asked by Neha on 23 Jun 2024

What part of Turkey has the most feathers?

Asked by Neha on 30 Dec 2025


If,
9 * 8 * 7 = 65
8 * 7 * 6 = 50
7 * 6 * 5 = 37

Find
6 * 5 * 4 = ?

Asked by Neha on 05 Jul 2024

If Japan and Panama decided to merge into a single country, probably people will name it Japanama.

Can you think of two more such country's unions that could produce similar names like Japanama by overlapping their three letters?

Asked by Neha on 08 Sep 2024

If we change the South-East direction into North and North-East into West and all others similarly.
Can you find out which direction will be in the place of South-West direction?

Asked by Neha on 16 Aug 2024


Find The Next Number In The Sequence

30 10 15 13 0 16 -15 ?

Asked by Neha on 20 Aug 2024

What is the difference between a jeweller and a jailer?

Asked by Neha on 11 Jul 2025

Can you name any English verb that becomes its past tense by simply rearranging the alphabets ?

Asked by Neha on 08 Sep 2021


Until it is measured, not known. Yet how you miss it when it has gone. What is it?

Asked by Neha on 30 Jul 2025

Hot Articles

Amazing Facts

Challenging

There is a cryptic organization called Cicada 3301 that posts challenging puzzles online, possibly to recruit codebreakers and linguists.