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

A bus driver was heading down a street in Mexico. He went right past a stop sign without stopping, he turned left where there was a "no left turn" sign, and he went the wrong way on a one-way street. Then he went on the left side of the road past a cop car. Still - he didn't break any traffic laws. Why not?

Asked by Neha on 14 May 2021


Using Only Five 5's and any mathematical operator make sum as 37

Math Magic Possible

Asked by Neha on 26 Mar 2021

A solo dice game is played. In this game, upon each turn, a normal pair of dice is rolled and the score is calculated not by adding the numbers but multiplying them.

In a particular game, the score for the second roll is five more than what was achieved in the first roll. The score for the third roll is six less than what was completed in the second roll. The score for the fourth roll is eleven more than what was achieved in the third. The score for the fifth roll is eight less than what was completed in the fourth.

Can you calculate the score for each of the five throws?

Asked by Neha on 04 Jun 2024


Find out a multi-digit number that if multiplied by the number 9 or any of its multiplications products (i.e. 18, 27, 36, 45,..) will result in the multiplication factor repeated (n) number of times.

Asked by Neha on 08 Jan 2021

There are nine letters in the below-given diagram. You have to form a nine-letter word using these letters.

Word from nine Letters

Asked by Neha on 21 Dec 2023

Can you find out the remainder when 3^300 is divided by 5?

Asked by Neha on 31 Oct 2023


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

The Month Rebus

Asked by Neha on 24 Mar 2023

There is an exact a week gap between Christmas and New Year. Hence, It is obvious that the new year that comes right after Christmas comes on the same day of the week.

A Strange thing happened in the Year 1777. Christmas occurs on Wednesday and New Year on Monday. How is that possible?

Asked by Neha on 19 Dec 2025

It's pretty hard to give up.
If you remove a part of it, you will be left with a bit.
Even if you remove another part, the bit still remains.
Remove one more and it still remains.

What is it?

Asked by Neha on 06 May 2025


A farmer and his neighbour once went to Emperor Akbar"s court with a complaint. "Your Majesty, I bought a well from him," said the farmer pointing to his neighbour, "and now he wants me to pay for the water."
"That"s right, your Majesty," said the neighbour. "I sold him the well but not the water!"?
The Emperor asked Birbal to settle the dispute. How did Birbal solve the dispute?

Asked by Neha on 10 May 2021

Hot Articles

Amazing Facts

Rubik’s Cube

The inventor of the Rubik’s Cube didn’t realize he’d built a puzzle until he scrambled it the first time and tried to restore it.