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

Make eight squares by moving only two matchsticks.
Note- Square can be of different sizes.

Make the Square

Asked by Neha on 12 Apr 2021


Manish and Manoj play 5 games of chess.
Both Manish and Manoj win the exact same number of games. There is no tie at all.

How?

Asked by Neha on 11 Feb 2024

What does below Rebus mean ?

esgg sgeg gegs gsge

Asked by Neha on 10 May 2021


'S' refers to the number of seconds in a day and 'H' refers to the number of hours in ten years. Which quantity out of these two is greater?

Asked by Neha on 28 Apr 2025

I have cities, but no houses. I have mountains, but no trees. I have water, but no fish. What am I?

Asked by Neha on 25 Jul 2025

I inserted a coin in a bottle and closed its mouth with the help of a cork. Now, I was able to take the coin out from the bottle without taking out the cork or breaking the bottle. Can you tell me how I did it?

Asked by Neha on 30 Jan 2024


Can you find the company name in the pictogram below?

Find The Company

Asked by Neha on 09 Dec 2024

1. How can we put an elephant in the refrigerator?
2. How can we put a Giraffe in a refrigerator?
3. The king of the jungle invites all the animals to a party everyone comes except for one animal, which animal?
4. You come to a crocodile-infested lake, you can't go around it, you can't co under it and you can't go over it, how do you get across?

Asked by Neha on 25 May 2023

After undergoing a successful eye operation, A blind girl has just boarded a train to her home. The doctor asked her to open the bandages after 3 hours. On her train journey, she opened the bandages and within a fraction of the time she commits suicide by jumping off the train.

Though her operation was successful, Why did she commit suicide?

Asked by Neha on 15 May 2021


Rectify the following equality 101 - 102 = 1 by moving just one digit.

Mathematical Signs Magic

Asked by Neha on 08 Mar 2021

Hot Articles

Amazing Facts

Artificial Intelligence

Artificial Intelligence has crushed all human records in the puzzle game “2048,” achieving a high score of 839,732 and beating the game in only 973 moves without using any undo.