Problem

Source: 2022 Baltic Way p9

Tags: combinatorics, Coloring



Five elders are sitting around a large bonfire. They know that Oluf will put a hat of one of four colours (red, green, blue or yellow) on each elder’s head, and after a short time for silent reflection each elder will have to write down one of the four colours on a piece of paper. Each elder will only be able to see the colour of their two neighbours’ hats, not that of their own nor that of the remaining two elders’ hats, and they also cannot communicate after Oluf starts putting the hats on. Show that the elders can devise a strategy ahead of time so that at most two elders will end up writing down the colour of their own hat