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

Can you count the number of quadrilaterals in the picture below?

Count the Quadrilaterals

Asked by Neha on 14 Mar 2023


John gave half of the apples he had plus one more to Jacob. He gave half of the remaining ones plus one more to James. Now, John was left with just one apple.

Can you find out how many did he have in the beginning?

Asked by Neha on 13 Nov 2024

When monkey rotate the gear, which mark will be hit 1 or 2 ?

Monkey Gear riddle

Asked by Neha on 30 Apr 2021


Which letter of the alphabet has the most water?

Asked by Neha on 03 Aug 2025

Which fur should we be getting from the Lion?

Asked by Neha on 10 Feb 2021

Mr Red Lives in the red house.
Mr Green Lives in the greenhouse.
Mr Yellow Lives in the yellow house.

Who lives in the Whitehouse?

Asked by Neha on 26 Apr 2024


There is a box in which distinct numbered balls have been kept. You have to pick two balls randomly from the lot.

If someone is offering you a 2 to 1 odds that the numbers will be relatively prime, for example
If the balls you picked had the numbers 6 and 13, you lose $1.
If the balls you picked had the numbers 5 and 25, you win $2.

Will you accept that bet?

Asked by Neha on 11 Mar 2023

I am not alive, but I grow; I don't have lungs, but I need air; I don't have a mouth, but water kills me. What am I?

Asked by Neha on 14 May 2021

John is 45 years older than his son Jacob. If you find similarities between their ages, both of their ages contain prime numbers as the digits. Also, John's age is the reverse of Jacob's age.

Can you find their ages?

Asked by Neha on 11 Sep 2024


A man was going to bleach his socks because they had gotten muddy the day before. As he was pouring the bleach into the washing machine, he spilt some on the floor. He got some cleaning fluid and mopped it up with a rag. Minutes later he was dead. What killed him?

Asked by Neha on 09 Feb 2024

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.