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

I am eight letters long - "12345678"
My 1234 is an atmospheric condition.
My 34567 supports a plant.
My 4567 is too appropriate.
My 45 is a friendly thank-you.
My 678 is a man's name.

What word am I?

Asked by Neha on 02 Dec 2024


A professor thinks of two consecutive numbers between 1 and 10.
'A' knows the 1st number and 'B' knows the second number

A: I do not know your number.
B: Nor do I know your number.
A: Now I know.

What are the four solutions for this?

Asked by Neha on 22 Jul 2024

Find the next number in the series below

21 32 54 87 131 ?

Asked by Neha on 16 Nov 2023


Can you find out the missing number in the grid?

Missing Number

Asked by Neha on 12 Nov 2023

I am the first thing you need while camping.
I am always with the person named Marcos Valencia and Carrick.
But Pogba Zlatan and Rooney think I am wasteful and do not need me.
I am the second to the last thing to add when you are making a patch.

What am I?

Asked by Neha on 16 Dec 2024

When my father was 31 I was 8. Now he is twice as old as me. How old am I?

Asked by Neha on 01 Oct 2021


A man was found murdered on Sunday morning. His wife immediately called the police. The police questioned the wife and staff and got these alibis: The Wife said she was sleeping. The Cook was cooking breakfast. The Gardener was picking vegetables. The Maid was getting the mail. The Butler was cleaning the closet. The police instantly arrested the murderer. Who did it and how did they know?

Asked by Neha on 17 May 2021

I know a 5-digit number having a property that With a 1 after it, it is three times as large as it would be with a one before it.

Guess the number?

Asked by Neha on 06 Apr 2025

A newspaper is supposed to have 60 pages.Pages 14 and 21 are missing from the newspaper.

Can you tell me , Which other pages won't be there as well ?

Asked by Neha on 07 Feb 2023


I cannot talk, but I always reply when spoken to. What am I?

Asked by Neha on 17 Aug 2025

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.