One room. One hundred chances at freedom.
The 100 prisoners
50 attempts each
The guard speaks
“Find your number. All of you.”
“Each of you has a number from 1 to 100. In this room are 100 chests, each hiding one of your numbers. You may open only 50 chests each.”
“If every prisoner finds their own number, you all go free. If even one fails, I will execute all 100 of you.”
You control each prisoner in turn. Agree on a strategy before entering. Chests close between turns, their contents never move, and prisoners cannot share discoveries. This classroom version represents the outcome with text only.
Learn the strategy: why following numbers works
Start at the chest matching your prisoner number. Read its slip, then open the chest with that number. Repeat until you find your own slip. For example: prisoner 7 opens chest 7, finds 23, opens chest 23, finds 7, and succeeds.
The shuffled numbers form loops, or cycles. Every prisoner succeeds if every cycle has at most 50 chests. With a random shuffle, this happens about 31.18% of the time. The strategy greatly improves the group’s chances, but does not guarantee freedom.