Puzzles

If you are human, congratulations. I've collected for you here some puzzles for your enjoyment. Perhaps you've heard of some of these before, they are not originals.

Solutions are not provided. I think the solutions to the puzzles are somewhat unimportant - a modern LLM will give you the solution to any of these problems anyway. My hope is that you will enjoy thinking about these problems. Something that machines can't (yet) do for us.

#001Monty Hall

You are on a game show. The host presents you with three doors. Behind one door is a car; behind the other two are goats. You pick a door. The host, who knows what's behind each door, opens a different door to reveal a goat. He then asks you: do you want to switch to the other unopened door, or stick with your original choice?

Should you switch?

#002Blue Eyes

On an island, there are 100100 people with blue eyes, 100100 with brown eyes, and one guru with green eyes. They can all see everyone else's eye color, but they do not know their own. There are no mirrors, and no one ever discusses eye color. Every night, a ferry comes to the island. If anyone has figured out their own eye color, they must leave on the ferry that night.

One day, the guru makes a single public announcement, heard by everyone on the island: "I can see someone with blue eyes."

Who leaves the island, and on what night?

#003Twelve Spheres

You have 1212 identical-looking spheres. Exactly one of them is a different weight from the rest - but you don't know whether it's heavier or lighter. You also have a balance scale, which you can use exactly 33 times.

Find the odd sphere, and determine whether it is heavier or lighter.

#004Twenty-Five Horses

You have 2525 horses and a racetrack that fits 55 horses at a time. Racing them only tells you the relative finishing order of those 55 horses.

What is the minimum number of races needed to find the 33 fastest horses? You do not have a clock.

#005Lions and Sheep

There are NN lions and 11 sheep on an island. A lion would like to eat the sheep, but if a lion eats a sheep, it becomes a sheep itself, then becoming vulnerable to being eaten by another lion. All lions are perfect logicians and act in their own self-interest. A lion would rather not eat than risk being eaten.

For which values of NN does the sheep get eaten?

#006Two Guards

You arrive at a fork in the road. One path leads to freedom, the other to certain death. Two guards stand at the fork. One always tells the truth; the other always lies. You don't know which is which.

You may ask one guard a single yes-or-no question. What do you ask to determine the correct path?

#007Chessboard Dominoes

Take a standard 8×88 \times 8 chessboard and remove two diagonally opposite corners. You have 3131 dominoes, each of which covers exactly two adjacent squares.

Can you tile the remaining 6262 squares with the 3131 dominoes?

#008100 Prisoners and Boxes

A room contains 100100 closed boxes, numbered 11 to 100100. Inside each box is a slip of paper with a number from 11 to 100100, each appearing exactly once. 100100 prisoners, also numbered 11 to 100100, must each enter the room one at a time and open at most 5050 boxes. If every prisoner finds the slip with their own number, they all go free. Otherwise, they all die.

The prisoners may agree on a strategy beforehand, but once the process begins, they cannot communicate. Each prisoner leaves the room exactly as they found it.

Is there a strategy that gives them a reasonable chance of survival?

#009Pirates and Gold

Five perfectly logical pirates (ranked by seniority: AA, BB, CC, DD, EE) have found 100100 gold coins. They must divide the loot according to the following rules:

  • The most senior pirate proposes a distribution.
  • All pirates vote (including the proposer). If at least half vote in favor, the distribution is accepted.
  • If the proposal is rejected, the proposer is thrown overboard and the next most senior pirate makes a proposal.

Each pirate's priorities, in order, are: (1) survive, (2) maximize gold, (3) throw others overboard for fun, all else being equal.

What distribution does pirate AA propose?

#010100 Hats

100100 prisoners stand in a single-file line, each wearing either a red or blue hat. Each prisoner can see all the hats in front of them but not their own or any behind them. Starting from the back of the line, each prisoner must guess the color of their own hat. They can only say "red" or "blue", and everyone in the line hears the guess.

The prisoners may agree on a strategy beforehand. What is the maximum number of prisoners that can be guaranteed to guess correctly?

#011Burning Ropes

You have two ropes. Each rope takes exactly one hour to burn from end to end, but they burn at non-uniform rates - different sections of a rope may burn faster or slower than others. You have a lighter.

How do you measure exactly 4545 minutes?

#012Poisoned Wine

A king has 10001000 bottles of wine. Exactly one bottle has been poisoned. The poison is undetectable and takes exactly 2424 hours to kill. The king has 1010 prisoners he's willing to use as testers. He needs to identify the poisoned bottle in exactly one round of testing (2424 hours).

How can the king determine which bottle is poisoned?

#013Prisoners and a Light Switch

100100 prisoners are told that they will each be brought to a room, one at a time, in a random order (with repetition - the same prisoner may be brought back multiple times). The room contains a single light switch, initially off. At any point, a prisoner may declare: "All 100100 of us have visited this room." If the declaration is correct, all prisoners go free. If it's wrong, they all die.

The prisoners may agree on a strategy beforehand but cannot communicate once the process starts. The only information available is the state of the light switch.

What strategy guarantees their freedom?

#014Ants on a Pole

100100 ants are placed at random positions on a 1 m1\,\mathrm{m} pole, each facing a random direction. They all start walking at the same speed (1 cm/s1\,\mathrm{cm/s}). When two ants collide, they both immediately reverse direction. An ant that reaches the end of the pole falls off.

How long until all ants have fallen off the pole?

#015Three Hats

Three people each wear a hat that is one of two colors. Everyone can see the other two hats but not their own. Once the hats are on, no communication of any kind is allowed.

They may agree on a strategy beforehand. Devise one that guarantees at least one person correctly names the color of their own hat.

#016Cliff and Rope

You are stranded on a ledge 100 m100\,\mathrm{m} up a cliff, with another ledge 50 m50\,\mathrm{m} below you and the ground 50 m50\,\mathrm{m} below that. All you have is 75 m75\,\mathrm{m} of rope and a knife. You cannot climb the bare cliff, but you can cut the rope and tie pieces together. Both ledges have a secure anchor point.

How do you get to the ground?

#017Integer Battleship

You and an opponent play a variant of Battleship on the integers Z\mathbb{Z}. Your opponent secretly places their boat at an integer, then secretly chooses its movement instructions: a finite but arbitrarily long sequence of integer steps (e.g. left four, right five, left one hundred).

On each turn you guess an integer. If you name the boat's current position you win. Otherwise the boat carries out its next instruction, cycling back to the start of the sequence once it reaches the end - so with the example above, the boat moves left four again after your third guess.

Which player has a winning strategy, and what is it?

#018Infinite Hats, One at a Time

Infinitely many prisoners stand in a line, numbered P1,P2,P3P_1, P_2, P_3, and so on. Each wears either a white or black hat. Prisoner PiP_i can see the hat of PjP_j exactly when i<ji < j, so P1P_1 sees every hat but their own, and each prisoner sees all but finitely many hats.

The executioner asks the prisoners for their own hat color in order, starting with P1P_1. Everyone hears every guess, and anyone who guesses wrong is executed.

The prisoners may agree on a strategy beforehand. What is the smallest number of wrong guesses they can guarantee?

#019Infinite Hats, All at Once

Same setup as the previous puzzle: infinitely many prisoners P1,P2,P3,…P_1, P_2, P_3, \ldots in a line, each wearing a white or black hat, with PiP_i able to see PjP_j 's hat exactly when i<ji < j.

This time every prisoner must name their own hat color simultaneously, so no one hears anyone else's guess. Anyone who guesses wrong is executed.

The prisoners may agree on a strategy beforehand. What is the smallest number of wrong guesses they can guarantee?

#020Boxes of Numbers

There is an infinite line of closed boxes B1,B2,B3B_1, B_2, B_3, and so on. Each box contains a real number, chosen by an adversary. You may open as many boxes as you like, in any order, as long as you leave at least one closed. When you stop, you must pick a box that is still closed and guess the real number inside it.

How well can you do?