I heard this today on Cartalk and had to look up the answer. It's a simpler answer than I thought it would be, but was still out of my grasp. 🙂
If you know the answer from past experience or from googling for it, please don't post it. I'll post the answer eventually if need be.
Rob
If you know the answer from past experience or from googling for it, please don't post it. I'll post the answer eventually if need be.
Good luck. 🙂This puzzle has been making the rounds of Hungarian mathematicians'
parties.
The warden meets with the 23 prisoners when they arrive. He tells
them:
You may meet together today and plan a strategy, but after today you
will be in isolated cells and have no communication with one another.
There is in this prison a "switch room" which contains two light
switches, labelled "A" and "B", each of which can be in the "on" or
"off" position. I am not telling you their present positions. The
switches are not connected to any appliance. 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", and this prisoner will
select one of the two switches and reverse its position (e.g. if it
was "on", he will turn it "off"); the prisoner will then be led back
to his cell. Nobody else will ever enter the "switch room".
Each prisoner will visit the switch room arbitrarily often. That is,
for any N it is true that eventually each of you will visit the
switch room at least N times.)
At any time, any of you may declare to me: "We have all visited the
switch room." If it is true (each of the 23 prisoners has visited the
switch room at least once), then you will all be set free. If it is
false (someone has not yet visited the switch room), you will all
remain here forever, with no chance of parole.
Devise for the prisoners a strategy which will guarantee their
release.
Rob