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 Adam and Eve do not have but the rest of the people have?

Asked by Neha on 15 Mar 2023


A man died, leaving $10,000,000 for his widow, 5 sons and 4 daughters. Each daughter received an equal amount, each son received twice as much as a daughter, and the widow received three times as much as a son.

How much did the widow receive?

Asked by Neha on 17 Jan 2026

what's the probability of getting a king or a queen from a pack of 52 cards?

Asked by Neha on 27 Sep 2024


A man and a dog were going down the street. The man rode, yet walked. What was the dog’s name?

Asked by Neha on 10 Mar 2022

Without looking at a calendar, within a minute name, a boy's name using 5 consecutive 1st letters of 5 consecutive months

Asked by Neha on 22 Apr 2025

It's a protector.
It sits on a bridge.
One individual can see directly through it, while others wonder what it hides.

What is it?

Asked by Neha on 21 Sep 2023


Can you circle exactly four of these numbers such that the total is twelve?

1 6 1
6 1 6
1 6 1
6 1 6

Asked by Neha on 27 Apr 2023

A boy collects white seashells from the sea and brings them home every night. When he has enough of them, he decides to sell them to a trader.

The trader is ready to buy the shells and he asks the boy about the quantity. At this, the boy starts calculating. He has a giant box that contains 3 mini boxes. Two of them have another mini box inside. If the giant box can hold 50 shells, how many brown shells can he sell to the trader?

Asked by Neha on 25 Jun 2023

What are the 50th, 63rd and 100th numbers in the sequence below?
4, 5, 8, 8, 9, 9, 12, 13, 13, 13, 17, 18, ...

Asked by Neha on 08 Feb 2024


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

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.