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

In a competitive exam, each correct answer could win you 10 points and each wrong answer could lose you 5 points. You sat in the exam and answered all the 20 questions, which were given in the exam.
When you checked the result, you scored 125 marks on the test.

Can you calculate how many answers given by you were wrong?

Asked by Neha on 08 Apr 2025


What's a single-digit number with no value?

Asked by Neha on 06 Aug 2025

The horse jumps over the king.
Strangely there is absolutely no scratch on him.

Can anyone explain, how is this possible?

Asked by Neha on 06 Mar 2023


If it took eight men ten hours to build a wall, how long would it take four men to build it?

Asked by Neha on 08 May 2023

A car is crossing a 20 km-long bridge. The bridge can support at most 1500kg of weight over it. If somehow, the weight on the bridge becomes more than that, it will break.

Now, the weight of the car is exactly 1500kg. At the midway, a bird comes and sits on the roof of the car. This bird weighs exactly 200 grams.
Can you tell if the bridge breaks at this point or not?

Asked by Neha on 26 Sep 2024

1. How can we put an elephant in the refrigerator?
2. How can we put a Giraffe in a refrigerator?
3. The king of the jungle invites all the animals to a party everyone comes except for one animal, which animal?
4. You come to a crocodile-infested lake, you can't go around it, you can't co under it and you can't go over it, how do you get across?

Asked by Neha on 25 May 2023


A man who was outside in the rain without an umbrella or hat didn’t get a single hair on his head wet. Why?

Asked by Neha on 16 May 2022

_ _ _ 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

What occurs twice in a week, once in a year but never in a day?

Asked by Neha on 27 Dec 2020


Can you arrange four 9's and use at most 2 math symbols, to make the total 100?

Asked by Neha on 21 Nov 2023

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.