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

People make me, save me, change me, raise me. What am I?

Asked by Neha on 08 Mar 2025


You order chicken wings at KFC in the boxes of 6, 9 and 20. What is the largest number of wings that you cannot obtain by buying in any combination of the boxes?

Asked by Neha on 10 Jul 2021

What jumps when it walks and sits when it stands?

Asked by Neha on 27 Oct 2025


There are 2 people near the river and both of them want to get on the other side. The boat can only take one of them. But they got across.
How?

Asked by Neha on 03 May 2021

We have shown you a regular water barrel as below. Without using any measuring device can you check if the barrel is more than half-filled or less than half-filled?

Half Filled barrel

Asked by Neha on 10 May 2023

I am thinking of a five-digit number such that:
The first and last digits are the same, their submission is an even number and multiplication is an odd number and is equal to the fourth number. Subtract five from it and we obtain the second number. Then divide into exact halves and we get the 3rd number.

What number I am thinking of?

Asked by Neha on 16 Nov 2024


Find the next number in the series below

21 32 54 87 131 ?

Asked by Neha on 16 Nov 2023

This is a simple one. You just have to count the number of Fs in the given sentence.

Finished Files are the result of years of scientific study combined with the experience of years.

How many did you count?

Asked by Neha on 02 Oct 2024

Jenifer is learning to drive her car. She went down a one way lane and in the wrong direction. But she do not break any law.

How come ?

Asked by Neha on 30 Jun 2021


During an experiment, a guy throws a bouncy ball from a 100 feet tall building. The ball has a specific characteristic. Every time it hits the ground, it bounces up halfway.

How many bounces do you think the ball will make before it comes to a stop ?

Asked by Neha on 24 Nov 2023

Hot Articles

Amazing Facts

Out of the Box

The phrase “thinking outside the box” was popularised from the solution to a topographical puzzle involving 9 dots in a box shape.