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

John is asked to stand behind Jacob and Jacob is asked to stand behind John. Both of them feel confused about it and don't know what to do?

But it is quite possible, do you know how?

Asked by Neha on 28 Jan 2021


Out of four images which one is the odd one out?

Odd one out

Asked by Neha on 02 Oct 2023

In a chess board, the queen piece can move horizontally, vertically and diagonally freely. The picture represents the same.Can you place 8 queens on the board in a manner that none of the queens can attack each other?

Chess Board Puzzle

Asked by Neha on 10 Oct 2025


Where do you go to learn how to make ice cream?

Asked by Neha on 07 Aug 2024

what does this below rebus represent identXQQQQQME

Rebus representation

Asked by Neha on 29 Jan 2025

2, 3, 5, 9, 17, _ What is the next number in the sequence?

Asked by Neha on 09 Oct 2021


What mathematical symbol can be put between 5 and 9, to get a number bigger than 5 and smaller than 9?

Asked by Neha on 20 Sep 2021

In a rainy season, one day 3 huge ladies walked under a normal-sized umbrella.
The umbrella is not huge enough to accommodate all 3 ladies yet not a single lady got wet. Why?

Asked by Neha on 19 May 2024

It can't be seen, can't be felt, can't be heard, and can't be smelt.
It lies behind stars and under hills, And empty holes it fills.
It comes first and follows after, Ends life, and kills laughter.
What is it?

Asked by Neha on 17 May 2021


We can be boring,Or interesting.
We can be long,Or short.
We can have pictures,Or just words.
Many love us,But many also hate us.
What are we?

Asked by Neha on 04 Mar 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.