Problem 81 medium

One hundred hats in a line

One hundred people stand in a line, one behind the other, all facing forward. Each wears a red or a blue hat. Each person sees the hats of everyone in front of them, but not their own hat and not the hats behind them.

Starting from the back of the line, each person in turn says one word, “red” or “blue”, and everyone hears it. A person is saved if the word they say is the colour of their own hat. The group agrees on a strategy before the hats are put on.

How many people can be saved for certain, whatever the hats are?

Answer

Fractions, decimals with at least 3 significant digits, and expressions such as sqrt(2)/2, e^-1 or pi/4.

Hints 0/2

h

Solution

s Shown after a correct answer. Revealing it first marks the problem as seen, not solved.