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

What is both possible and impossible at the same time?

Asked by Neha on 15 Apr 2022


Find the smallest sentence with all the English alphabet.

Asked by Neha on 21 Sep 2025

In four steps you need to move the word 'cold' From 'warm' by replacing one alphabet at a time such that every word formed at each step is acceptable in English Dictionary.

Asked by Neha on 23 Aug 2024


There is a brick of gold and a brick of iron in a boat (both 10-inch blocks), if they are both dropped into the water which will make the water level higher?

Gold and Iron Bricks

Asked by Neha on 27 May 2024

I am the beginning of the end, and the end of time and space. I am essential to creation, and I surround every place. What am I?

Asked by Neha on 23 Mar 2022

A mathematics teacher took exams for his students. Out of the total students, 25% passed both the tests included in the exam. However, only 42% were able to clear the first test.

Can you find out the percentage of those students who passed the first test and also passed the second test?

Asked by Neha on 21 Jan 2025


You have two rectangular wires.

Both of them have property that when you light the fire from one end , it will take 60 minutes to get completely burn.

However, they do not burn at consistent speed (i.e it might be possible 1st 20% burn in 50 minutes and 80% can burn in 10 minutes).

So how could you measure 45 minutes ?

Asked by Neha on 21 Feb 2021

I know a nine-letter word having only one vowel.
Do you ?

Asked by Neha on 19 Jun 2023

_ _ _ IE _ _
_ _ _ IE _
_ _ IE _ _
_ _ IE _
_ _ _ _ IE

Like you see, some letters have gone missing from these words that contain the IE pair at some or the other place. The letters that will be used to fill the blanks are given below. Use them and form meaningful words. Can you do that?

A, C, D, F, H, K, L, M, N, N, O, R, R, S, S, S, T, T, Y and Y.

Asked by Neha on 22 Jul 2021


A professor thinks of two consecutive numbers between 1 and 10.
'A' knows the 1st number and 'B' knows the second number

A: I do not know your number.
B: Nor do I know your number.
A: Now I know.

What are the four solutions for this?

Asked by Neha on 22 Jul 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.