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

They do not possess flesh or feathers or scales or bone
But still, they are blessed with fingers and thumbs of their own.

Asked by Neha on 08 Nov 2023


Things are just as they seem, right? Well, check again.
Can you count the number of tigers in this picture ?

Count The Tigers

Asked by Neha on 21 May 2021

If you toss a coin 10 times and it lands heads up every time, what are the chances it will land heads up if you toss it again?

Asked by Neha on 23 Sep 2021


A four-digit number (not beginning with 0) can be represented by ABCD. There is one number such that ABCD=A^B*C^D, where A^B means A raised to the B power. Can you find it?

Asked by Neha on 31 Jul 2023

After teaching his class all about Roman numerals (X = 10, IX=9 and so on) the teacher asked his class to draw a single continuous line and turn IX into 6. The teacher's only stipulation was that the pen could not be lifted from the paper until the line was complete.

Asked by Neha on 07 May 2025

Find the smallest sentence with all the English alphabet.

Asked by Neha on 21 Sep 2025


Which is the smallest number that you can write using all the vowels exactly once?

Asked by Neha on 11 May 2024

Do you see only foxes? It’s time for you to unlock the superpowers to find the baby squirrel hidden in the picture.

Find The Baby Squirrel Hidden Among Leash

Asked by Neha on 04 Sep 2026

What word is pronounced the same if you take away four of its five letters?

Asked by Neha on 20 Oct 2021


What does this mean?
N
A
E
L
C

Asked by Neha on 10 Aug 2026

Hot Articles

Amazing Facts

Rubik’s Cube

The inventor of the Rubik’s Cube didn’t realize he’d built a puzzle until he scrambled it the first time and tried to restore it.