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

Six people park their car in an underground parking of a store. The store has six floors in all. Each one of them goes to a different floor. Simon stays in the lift for the longest. Sia gets out before Peter but after Tracy. The first one to get out is Harold. Debra leaves after Tracy who gets out on the third floor.

Can you find out who leaves the lift on which floor?

Asked by Neha on 24 Dec 2024


The peacock is a bird that does not lay eggs. How do they get baby peacocks?

Asked by Neha on 09 Dec 2023

Five lovely ladies(Sophia, Isabella, Madison, Emma and Olivia) planned a picnic.

They each buy one thing each for the picnic.

Sophia, Emma and Olivia got a drink : orange-Juice, apple-juice, and mango-juice.
Olivia got the drink with the same letter as the one in her first name.
Emma loves mango-juice.
The other two bring some food : chocolates and pizza.
Also Madison is allergic to cheese.

So which ladies bought what ?

Asked by Neha on 24 May 2021


Can you solve the below algebraic mathematical equation?

(J+O+I+N+T)3 = JOINT

Asked by Neha on 29 May 2021

If I remove one from eleven it becomes Ten and if I remove one from nine also becomes Ten. How?

Asked by Neha on 25 Oct 2023

Assume there are approximately 5,000,000,000 (5 billion) people on Earth. What would you estimate to be the result, if you multiply together the number of fingers on every person's left hand? (For the purposes of this exercise, thumbs count as fingers, for five fingers per hand.) If you cannot estimate the number then try to guess how long the number would be.

Asked by Neha on 24 Sep 2025


If an electric train is travelling south, then which way is the smoke going?

Asked by Neha on 27 Aug 2025

Find the next number in the series?
2, 12, 36, 80, 150, 252, 392, _ ?

Asked by Neha on 22 Jan 2024

John Went to the nearby store in a Mall to buy something for her home. Below is the conversation between the two:

John: How much for the one?
Shopkeeper: It is $2
John: How much for the Eleven?
Shopkeeper: It is $4
John: How much for the Hundred?
Shopkeeper: It is $6.

What is John buying?

Asked by Neha on 01 Dec 2025


There's one "sport" in which neither the spectators nor the participants know the score or the leader until the contest ends.

What is it?

Asked by Neha on 10 Apr 2022

Hot Articles

Amazing Facts

Gamers

In 2011, people playing Foldit, an online puzzle game about protein folding, resolved the structure of an enzyme that causes an Aids-like disease in monkeys. Researchers had been working on the problem for 13 years. The gamers solved it in three weeks.