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

Replace all '*' with digits 1, 2, 3, 4, 5 and 6 to make below statement true.

* *
x *
=====
* * *

Asked by Neha on 29 Jul 2021


John replied, when asked how old he was. In 2 years he will be twice as old as he was five years ago.' How old is he ?

Find the age

Asked by Neha on 10 Apr 2021

Solve the below puzzle by replacing the question mark with the correct number.

3 6 12

4 8 16

5 10 ?

Asked by Neha on 12 Apr 2025


There are people and strange monkeys on this island, and you can not tell who is who (Edit: until you understand what they said - see below). They speak either only the truth or only lies.
Who are the following two guys?
A: B is a lying monkey. I am human.
B: A is telling the truth.

Asked by Neha on 16 Jun 2023

Below, you can see three complete equations and one incomplete. Based on the three complete ones, can you complete the incomplete one?

5 $ 4 $ 3 $ 9 = 4215
6 $ 9 $ 2 $ 6 = 3816
4 $ 7 $ 3 $ 3 = 1122
7 $ 2 $ 7 $ 4 = ____

Asked by Neha on 10 Dec 2025

You’ll find me on Mercury, Earth, Mars, Jupiter, Saturn, and Uranus. But never Neptune, or Venus. What am I?

Asked by Neha on 15 Aug 2025


Why Aeroplane windows are round?

Aeroplane Window Shape

Asked by Neha on 29 Jul 2023

You visit a home for specially-abled children on the occasion of Christmas where you meet with 50 children. You have a box of chocolates containing 50 chocolates exactly.

What if you were asked to one chocolate to each child in a manner that one chocolate still remains in the box? Is it possible?

Asked by Neha on 28 Apr 2023

If,
29 - 1 = 30
9 - 1 = 10
14 - 1 = 15

Based on similar logic, Can you prove that the below algebraic equation is true?
11 - 1 = 10 ?

Asked by Neha on 04 Jan 2025


A generous owner of a company decided to give a bonus of $45 to every man and $60 to every woman on his birthday. But only one-ninth of the men and one-twelfth of the women were present to take the bonus.

Can you calculate the amount of money the owner spent if there were 3552 employees?

Asked by Neha on 26 Nov 2024

Hot Articles

Amazing Facts

Crossword

The day before the 1996 U.S. presidential election, the NYT Crossword contained the clue “Lead story in tomorrow’s newspaper,” the puzzle was built so that both electoral outcomes were correct answers, requiring 7 other clues to have dual responses.