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

Can you find the ages of a son, father and grandfather based on the following facts?
The sum of the ages of grandfather, father and son is 140 years.
The age of the son in months is the same as the grandfather in years.
The age of the son in days is the same as the father in weeks.

Asked by Neha on 29 Jan 2024


Which of the following words don't belong in the group and why?
CORSET, COSTER, SECTOR, ESCORT, COURTS

Asked by Neha on 16 Oct 2021

One day, Birbal got late for a function and Akbar was highly disappointed.
Please forgive me Jahanpanah. I arrived late because my child was crying and I had to calm him down, explained Birbal.
Does it take this long to placate a child? questioned the emperor. I feel that you have no idea about how to raise a child. I order you to act like a child and I will act like your father to show you how you should have dealt with your child. Come on! Ask me all that he asked from you.
Father, I want a cow, said Birbal.
The emperor quickly ordered one of the servants to bring a cow to the kingdom.
I want to drink its milk, now, now, now! said Birbal, imitating the voice of his child.
Akbar asked his servants to milk the cow and give to Birbal.
The servants quickly milked the cow and offered the milk to Birbal. He sipped in a little and then gave the bowl to the emperor.
As Birbal put up the next demand that was put up by his child a few hours ago, the emperor was stunned and left the room.
What did Birbal say?

Asked by Neha on 17 May 2021


As we know that white starts the game of chess. Can you find the scenario shown in the picture below is possible when all the white pieces are at the original place while the black pawn is not as in the below picture?

Chess Game Trick

Asked by Neha on 04 Sep 2023

I make a loud sound when I’m changing. When I do change, I get bigger but weigh less. What am I?

Asked by Neha on 25 Aug 2025

Steffi's daughter Jazelle needs to be picked up from school every day.
Steffi asks one of her colleagues to pick up Jazelle from the school. Steffi devised a password system to confirm that Jazelle goes with the correct colleague only.

The password on Monday was SJM16.
The password on Wednesday was TAW39.

What will the password be for Friday?

Asked by Neha on 28 Jan 2026


Can you guess the name of the month by looking the below rebus ?

The Month Rebus

Asked by Neha on 24 Mar 2023

A mile-long train is moving at sixty miles an hour when it reaches a mile-long tunnel. How long does it take the entire train to pass through the tunnel?

Asked by Neha on 27 Apr 2022

Can you find the odd one out from the below words ?

First Second Third Forth Fifth Sixth Seventh, Eighth Nine Ten Eleven Twelve.

Asked by Neha on 14 Apr 2023


What's the next in the series?

H, Be, F, S, Mn, Kr, In, Gd, Tl, ?

Asked by Neha on 17 Oct 2023

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.