🧠 Riddle #121 of 232
Ten people stand in a line, each facing the back of the person in front, so each can see every hat ahead but not their own or any behind. Every hat is red or blue. Starting from the back, each person calls out one word — 'red' or 'blue' — and everyone hears every call. They may agree on a plan beforehand. How many of the ten can be certain to name their own hat colour correctly?
Think about it first. When you're ready:
Nine
The back person calls the parity of the red hats ahead, and each of the other nine works out their own colour from that and the calls, so only the back person can be wrong.