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

I shave every day, but my beard stays the same. What am I?

Asked by Neha on 12 Feb 2022


There’s a girl who has a large family. She has an equal amount of brothers and sisters, but each brother only has half as many brothers and sisters. What’s the correct amount of brothers and sisters?

Asked by Neha on 05 Jun 2025

In the city of Brain Teasers, 5% of people do not list their phone numbers. Now if we select random 100 people from the phone directory, then how many people selected will have unlisted phone numbers?

Asked by Neha on 30 Oct 2023


Why do you find that most of the buildings are deprived of the 13th floor?

Asked by Neha on 11 Jan 2025

Three cars are driving on a track that forms a perfect circle and is wide enough that multiple cars can pass anytime. The car that is leading in the race right now is driving at 55 MPH and the car that is trailing at the last is going at 45 MPH. The car that is in the middle is somewhere between these two speeds.
Right now, you can assume that there is a distance of x miles between the leading car and the middle car and x miles between the middle car and the last car and also, x is not equal to 0 or 1.
The cars maintain their speed till the leading car catches up with the last car and then every car stops. In this scenario, do you think of any point when the distance between any two pairs will again be x miles i.e. the pairs will be x distance apart at the same time ?

Asked by Neha on 08 May 2021

In a particular village, only two barbershops exist.

The first shop has a handsome barber with a neat haircut who is handsomely dressed in clean clothes and is extremely humble with his body language. The place is clean and looks hygienic.

In the second shop, you can find a barber with shabby clothing. His hairs are weirdly cut and his clothes still have the stains from last night's dinner. The place is not clean as well and reeks a bit.

You visit the village for the first time and decide to get your haircut. Which barbershop will you like to go for that and why?

Asked by Neha on 25 Apr 2026


You know three triplets: Frank John and Wayne (need to return your money). Frank always tells the truth while John and Wayne always lie. You meet one of them on the road and can ask him a three-word question.
Which question, will you ask?

Asked by Neha on 21 Mar 2023

A number can be multiplied by multiple of nine
i.e 9 18 27 36 45 ...

and the resulting number consist of only one digit.

Can you identify the number ?

Asked by Neha on 07 May 2023

I’m tall when I’m young, and I’m short when I’m old. What am I?

Asked by Neha on 07 May 2022


I know a country, If you remove the last alphabet of its name, it will become a part of your body. Do you name it?

Asked by Neha on 26 Jan 2021

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.