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’m tall when I’m young, and I’m short when I’m old. What am I?

Asked by Neha on 07 May 2022


When I get multiplied by any number, the sum of the figures in the product is always me. What am I?

Asked by Neha on 10 Oct 2021

Irene killed hundreds of people mercilessly and yet the police were not able to put her behind the bars. Why?

Asked by Neha on 05 Feb 2024


You are given 16 witch hats. The hats are divided in four different colours – red, blue, green and yellow. Every colour has been assigned to four hats. Now each of the hat will be glued with a label of an arithmetic sign – ‘+’, ‘-‘, ‘x’ or ‘/’. But you can label one sign only once on one colour. In such an arrangement, the hats can be uniquely defined by its colour and symbol.

Can you arrange all the 16 hats in a 4x4 grid in a fashion that no two rows and columns have a repetition of colour or sign?
We have arranged four hats in the below picture to assist you.

Arrange Hats in Squares

Asked by Neha on 17 May 2021

Below, you will find the mathematical proof that 10 equals 9.99999?. But is that possible or there is something wrong about it? Can you find the error?

x = 9.999999...
10x = 99.999999...
10x - x = 90
9x = 90
x = 10

Asked by Neha on 27 Aug 2021

Find out the number of circles in the given picture having Illusion

How many circles do you see?

Asked by Neha on 20 Apr 2021


Prove that the below maths equation is true.

8 + 8 = 91

Asked by Neha on 16 Aug 2021

Which is heavier: a ton of bricks or a ton of feathers?

Asked by Neha on 28 Feb 2022

How many people must be gathered together in a room, before you can be certain that there is a greater than 50/50 chance that at least two of them have the same birthday?

Asked by Neha on 16 Dec 2023


Chhote se Chintu Miyan,
Lambi si Pooch.
Jahan Jaye Chintu Miyan,
Wahan Jaye Pooch.

छोटे से चींटू मियाँ,
लंबी सी पूंछ।
जहाँ जाये चींटू मियाँ,
वहाँ जाये पूंछ।

Bolo kya?

Asked by Neha on 14 May 2021

Hot Articles

Amazing Facts

Word ladder puzzle

The word ladder puzzle was invented by Lewis Carroll, author of Alice’s Adventures in Wonderland.