Home > Riddles > The three prisoners and the red hats

The three prisoners and the red hats

Pure logicLevel 3/5

Three prisoners see each other's hats, but not their own. The key is not only in what each person sees, but in the silence of others.

Three prisoners perfectly logical are in row. Each one can ver the hats of the that has delante, but no the suyo nor the of quienes are behind.

The guard les says that each hat is red or blue, and that at least one of ellos is red. Les question, empezando by the last of the row, if can deducir the color of its propio hat.

The last responde that no. The second also responde that no.

Then the first deduce the color of the suyo. What color has its hat and how it knows?

Hints

Show hints
  1. The first “don't know” eliminates the case in which the two hats visible to the last one were blue.
  2. The second “I don't know” eliminates another possible case.
  3. The first reasons from what the other two could not deduce.

Solution

Show full solution

Answer: his hat is red. Let us call the prisoners, from last to first, A, B and C. A sees the hats of B and C; B sees C's; C sees none. A says he doesn't know. If A had seen two blue hats, he would have known immediately that his was red, because the guard claimed that at least one was red. Since A does not know, B and C cannot both wear blue hats. B hears this and looks at C's hat. If B saw that C was wearing blue, then, since B and C cannot both be blue, B would deduce that his own hat is red. But B also says he doesn't know. Therefore, C cannot wear blue. So C deduces that his hat is red.

Related riddles

Keep practicing

If you enjoyed this one, try more pure-logic riddles, explore this theme, browse the full archive, or read the riddle-solving guide.

← Previous: The switches and the million of light bulbs · Next: Two prisoners, 64 coins and a escaque secreto →