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

Find the next number in the sequence

5 12 24 36 ?

Asked by Neha on 08 Jul 2023


While going to your grandmother's house, you counted Twenty houses on the right side. While returning back to your home, you counted Twenty houses on the left side.

How many houses are there between your home and your grandmother's home?

Asked by Neha on 20 Feb 2024

A person was found dead on a big green land with no trees or buildings around. When the police arrived, they found a piece of rock lying next to him and the man was wearing clothes comprising of red, blue and yellow colours.

Can you tell who the person is and what was the cause of death?

Asked by Neha on 03 May 2024


Three brothers Jacob, John, and James live in Mexico City. The product of the ages of these brothers is 175. Jacob and John are twins. How old is James?

Asked by Neha on 02 Sep 2024

Cristina leaves home and then she makes exactly 3 left turns and returns home where she found 2 girls wearing the mask.

Who are these two masked girls?

Asked by Neha on 01 Mar 2021

The chance of Mr John winning the lottery is 10%. All participants lined up and Mr John is 4th in the row. The first three participants lose the lottery.

What is the chance of Mr John now?

Asked by Neha on 09 Aug 2023


Look at this sequence from top to bottom. What is the next number in the sequence?
1
11
21
1211
111221
312211

Asked by Neha on 24 Sep 2021

A Shopkeeper sold a few chickens to four different customers on a particular day. It was such that each customer purchased half of the remaining chickens and half the chicken more.

Can you find out how many chicken were sold by the shopkeeper on that day if we tell you that the fourth customer bought a single chicken ?

Asked by Neha on 01 Jul 2024

I am thinking of a five-digit number such that:
The first and last digits are the same, their submission is an even number and multiplication is an odd number and is equal to the fourth number. Subtract five from it and we obtain the second number. Then divide into exact halves and we get the 3rd number.

What number I am thinking of?

Asked by Neha on 16 Nov 2024


A beggar on the street can make one cigarette out of every 6 cigarette butts he finds. After one whole day of searching and checking public ashtrays the beggar finds a total of 72 cigarette butts. How many cigarettes can he make and smoke from the butts he found?

Asked by Neha on 29 May 2024

Hot Articles

Amazing Facts

Out of the Box

The phrase “thinking outside the box” was popularised from the solution to a topographical puzzle involving 9 dots in a box shape.