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

Can you find a seven digit number which describes itself. The first digit is the number of zeros in the number. The second digit is the number of ones in the number, etc. For example, in the number 21200, there are 2 zeros, 1 one, 2 twos, 0 threes and 0 fours.

Asked by Neha on 23 Jul 2021


My friends called me Iron59 because my parents are a chemist and a mathematician. What is my real name?

Asked by Neha on 01 Sep 2023

How will you measure 15 minutes using two hourglasses of 7 minutes and 11 minutes respectively?

Asked by Neha on 07 Sep 2023


Baseball bat and ball cost $100. If the bat cost $99 more than the ball, what is the cost of each?

Asked by Neha on 23 May 2021

When a clock is observed, the hour hand is at a minute mark and the minutes hand is six minutes ahead of it.

When the clock is observed again after some time, the hour hand is precisely on a different minute mark and the minute hand is seven minutes ahead of it.

Can you calculate how much time has elapsed between the two observations?

Asked by Neha on 07 Jul 2021

You have 10 balls with you. A friend of yours out of nowhere asks you to place those ten balls in five lines such that each of the lines has exactly 4 balls on them. He needs to check your intelligence. Prove him by doing the task.

Asked by Neha on 17 Mar 2023


Two batsman each on 94 runs. Seven runs needed to win in last 3 balls. Both make 100*. How?

Asked by Neha on 09 Apr 2023

I have Rs.50 and I spend it in the way as below.

Fund and Spends

Asked by Neha on 01 Oct 2023

It begins where the time ends.
Its second is an expression of surprise.
Its third is a question.
Its fourth is urinate.
It ends with a drink.

Which country it is?

Asked by Neha on 21 Jul 2021


While preparing the table for dinner, wife came up with an idea to tease his mathematician husband. She asked her husband to pick nine toothpicks and make ten without breaking any toothpick.

The husband was also smart and did it within seconds. How ?

Asked by Neha on 22 Dec 2020

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.