There are people standing in a circle. Each person is given one hat to wear. A hat is either colored or . A person cannot see his own hat color, but he can see the colors of the hats of all other people standing in the circle.
At the same time, each person is asked to guess their own hat color and all of them have to answer at the same time . They only win if all people guess their own hat color correctly.
The people are allowed to devise a strategy before they are given their hats. They agree on a strategy that maximizes their chance of winning, . If can be written as with coprime positive integers and enter your answer as the last digits of the sum .
Note: If you need a calculator to write your result in the given expression, feel free to use one ;)
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
One strategy that maximizes the chance of winning is the following:
Note that every person that wears a blue hat gives the same answer, as they see the same amount of blue hats. Someone who wears a red hat sees 1 blue hat more than a person who wears a blue hat and therefore guesses the other answer. Thus there are only two equally likely possible outcomes left: all people with blue hats guess blue and all people with red hats guess red , or all people with blue hats guess red and all people with red hats guess blue .
This yields a probability of 2 1 and therefore the answer 1 + 2 = 3 .