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

John has eleven friends. He has a bowl containing eleven apples. Now He wants to divide the eleven apples among his friends, in such a way that an apple should remain in his bowl.
How can He do it?

Asked by Neha on 05 Mar 2025


What is black when you buy it, red when you use it, and gray when you throw it away?

Asked by Neha on 06 Jan 2021

Seven Robbers robbed a bank and hide the coins in a lonely place.
They decide to divide the money equally the next morning. Two greedy robbers decided to cheat the others and reach the place at night. They equally divided the coins between them, one coin left. So they called another robber and then they decided to divide equally among the three. Sadly again one coin left. The same thing happened to the 4th 5th and the 6th robber.
However, when the 7th robber reached in the morning, they can divide the coins equally.

How many coins were there in total?

Asked by Neha on 29 Dec 2023


What does below science rebus mean?

Ag Ag Ag
Ag SPOON Ag
Ag Ag Ag

Asked by Neha on 11 Oct 2023

A man says, "Brothers and sisters, have I none, but that man's father is my father's son." Who is that man?

Asked by Neha on 03 Jul 2023

You see a boat filled with people, yet there isn’t a single person on board. How is that possible?

Asked by Neha on 16 May 2022


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

You and your two friends are working in a multinational company. How can you three find out the average salary of you all without disclosing your own salary to the other two?

Asked by Neha on 26 Nov 2025

Solve The below Equation:

ALFA + BETA + GAMA = DELTA

Asked by Neha on 20 Jul 2023


If you paint a brown house white it will become a white house. If the stoplight changes from red to green, then the light is green. So, if you throw a white shirt into the Red Sea, what will it become?

Asked by Neha on 07 Jun 2025

Hot Articles

Amazing Facts

Gambling

In Canada, a mathematical puzzle must be solved in order to win the lottery to classify it as a “game of skill” not gambling.