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

The following "Brain Bat" means Slow Down.
S
L
O
W

Using the same logic, can you tell us what does the following Brain Bat means ?
E
V
I
G

Asked by Neha on 14 May 2021


John and his wife were living in a rural place. On a particular day, John's wife fell ill and he called the local doctor. When the doctor picked up, he said, "Doctor, my wife is ill. She might have appendicitis."

"This can't be possible! I took out her appendix two years ago myself," the doctor explained.

When diagnosed, John's wife was found to have appendicitis. How can this be possible?

Asked by Neha on 19 Jun 2024

Why did Navjot Singh Sidhu put the new January calendar in the freezer

Asked by Neha on 01 Dec 2024


Can you divide numbers from 1 to 9 (1 2 3 4 5 6 7 8 9) into two groups so that the sum of the numbers of each group is equal?

Note: 9 cannot be turned over to make it 6.

Asked by Neha on 19 Jul 2023

A woman named Maria was at the funeral of her mother. She met a nice young man that she had never seen before and after the service, they spent a bit of time together. Then she got busy and didn’t get his name or phone number before he left. She tried to find him, but no one knew who he was or how to contact him. A few weeks later, Maria’s older sister dies and the police suspect murder. Who killed the sister?

Asked by Neha on 02 Jun 2025

You and your two friends are working in a multinational company. How can you three find out the average salary of you all without disclosing your own salary to the other two?

Asked by Neha on 26 Nov 2025


A boy and his father are caught in a traffic accident, and the father dies. Immediately the boy is rushed to a hospital, suffering from injuries. But the attending surgeon at the hospital, upon seeing the boy, says 'I cannot operate. This boy is my son.' How is this situation explained?

Asked by Neha on 20 Dec 2024

You can win me and lose me but never buy me
You can not eat me and never want to part with me
I can make you cry or bring you joy
I am not a machine and definitely not a toy
You keep me but i am not forever just yours
You might find me in a case or on a shelf next to a vase
I am hard and i am tall if you bump me i am sure to fall
I am made of different materials and am at many events
If your lucky and fight hard I might be yours
What am I ?

Asked by Neha on 11 May 2021

What breaks yet never falls, and what falls yet never breaks?

Asked by Neha on 09 Mar 2025


Can you identify the hidden rebus in the image below?

Name the Coded Animal

Asked by Neha on 01 Feb 2021

Hot Articles

Amazing Facts

Gambling

In Canada, a mathematical puzzle must be solved in order to win the lottery to classify it as a “game of skill” not gambling.