Tricky twist on hat problem!

Logic Level 3

There are 100 100 people standing in a circle. Each person is given one hat to wear. A hat is either colored blue \color{royalblue}{\text{blue}} or red \color{#D61F06}{\text{red}} . 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 100 100 people guess their own hat color correctly.

The 100 100 people are allowed to devise a strategy before they are given their hats. They agree on a strategy that maximizes their chance of winning, P P . If P P can be written as P = m k P=\frac{m}{k} with coprime positive integers m m and k k enter your answer as the last 5 5 digits of the sum m + k m+k .

Note: If you need a calculator to write your result in the given expression, feel free to use one ;)


The answer is 3.

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.

1 solution

Simon Kaib
Feb 28, 2019

One strategy that maximizes the chance of winning is the following:

If you see an even amount of blue \color{royalblue}{\text{blue}} hats, guess blue \color{royalblue}{\text{blue}} . If not, guess red \color{#D61F06}{\text{red}} .

Note that every person that wears a blue \color{royalblue}{\text{blue}} hat gives the same answer, as they see the same amount of blue \color{royalblue}{\text{blue}} hats. Someone who wears a red \color{#D61F06}{\text{red}} hat sees 1 1 blue \color{royalblue}{\text{blue}} hat more than a person who wears a blue \color{royalblue}{\text{blue}} hat and therefore guesses the other answer. Thus there are only two equally likely possible outcomes left: all people with blue \color{royalblue}{\text{blue}} hats guess blue \color{royalblue}{\text{blue}} and all people with red \color{#D61F06}{\text{red}} hats guess red \color{#D61F06}{\text{red}} , or all people with blue \color{royalblue}{\text{blue}} hats guess red \color{#D61F06}{\text{red}} and all people with red \color{#D61F06}{\text{red}} hats guess blue \color{royalblue}{\text{blue}} .

This yields a probability of 1 2 \frac{1}{2} and therefore the answer 1 + 2 = 3 1+2=\boxed{3} .

I have actually asked myself a similiar question before. Wonderful solution !

Robin Wal - 2 years, 3 months ago

very nice solution, tho how do we know this strategy maximizes the chance of winning?

Mehdi K. - 2 years, 3 months ago

Log in to reply

If there was a strategy with a higher chance of winning, the chance would be greater than 1 2 \frac{1}{2} . However, this would mean that the average probability that someone guesses their own hat color correctly is greater than 1 2 \frac{1}{2} , which is impossible as every single guess is a coin flip. Whenever someone guesses their color, it is equally likely to be the other color. You cannot gain any information about your own hat color from the other hats.

Simon Kaib - 2 years, 3 months ago

Log in to reply

does this mean if there are 3 colors instead of 2, there is a strategy that has a 1 3 \frac{1}{3} chance of winning?

Mehdi K. - 2 years, 3 months ago

I think there is a typo 'red hat sees 1 blue hat less' it should be more. Excellent problem and solution.

Mr. India - 2 years, 3 months ago

Log in to reply

I corrected it. Thanks!

Simon Kaib - 2 years, 3 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...