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

Count the Triangle in the figure given below:

Can You Count

Asked by Neha on 04 Jul 2024


Can you identify the hidden rebus in the image below?

Name the Coded Animal

Asked by Neha on 01 Feb 2021

Can you figure out the logic I used to decide the order of the following words:
gun, shoe, spree, door, hive, kicks, heaven, gate, line, den

Asked by Neha on 11 Oct 2024


Rectify the following equality 101 - 102 = 1 by moving just one digit.

Mathematical Signs Magic

Asked by Neha on 08 Mar 2021

John was visiting his friend Jacob. He found out that his friend's wife had just killed a burglar in self-defense.
John asks Jacob about what happened and he told that "His wife was watching television when suddenly the bell rang. She thought that it is her husband Jacob but she found the burglar who attacked her instantly and she got so frightened that she killed the burglar immediately with the knife.
John asked the police to arrest his friend's wife. Why?

Asked by Neha on 10 Mar 2023

It was a dark stormy night and a couple were in a car driving madly to a city. The car broke down and the husband had to go get help from someone who spoke his language. He was afraid to leave his wife alone in the car so he locked the car before leaving. When he came back, the car was in the same state as he had left it but his wife was dead, there was blood on the floor and there was a stranger in the car. What happened?

Asked by Neha on 02 Aug 2024


The person who makes it has no need for it. He who purchases it does not use it. The person who does use it does not know they are. What is it?

Asked by Neha on 16 Jun 2025

What has six faces, but does not wear makeup, has twenty-one eyes, but cannot see?

Asked by Neha on 14 Sep 2021

A boy was at a carnival and went to a booth where a man said to the boy, "If I write your exact weight on this piece of paper then you have to give me $50, but if I cannot, I will pay you $50." The boy looked around and saw no scale so he agrees, thinking no matter what the carny writes he'll just say he weighs more or less. In the end the boy ended up paying the man $50. How did the man win the bet?

Asked by Neha on 25 Mar 2022


Can you count the number of squares in the given picture?

How Many Squares you Find

Asked by Neha on 13 Feb 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.