Problem

Source: Tuymaada 2015, Day 1, Problem 8, Junior League

Tags: Tuymaada, logic, combinatorics



Four sages stand around a non-transparent baobab. Each of the sages wears red, blue, or green hat. A sage sees only his two neighbors. Each of them at the same time must make a guess about the color of his hat. If at least one sage guesses correctly, the sages win. They could consult before the game started. How should they act to win?