Today is Math Puzzle Friday (MPF), Yay! Every Friday I'll describe a riddle, game, logic puzzle, etc., that I find interesting and want to share with you. Some of you will surely have heard of the puzzles discussed and may already know the solutions, but to those who haven't, I hope you find them enjoyable!
Today's puzzle: Try to make sense of the above comic. Why did they all say damn at the same time? What ARE the odds? Why? How? What? Who? When? Where?
Context: Okay fine! I'll provide some context. This is the
hats puzzle for three people:
"Three people enter the room, each with a hat on their head. There are two colors of hats: red and blue; they are assigned randomly. Each person can see the hats of the two other people, but they can't see their own hats. Each person can either try to guess the color of their own hat or pass. All three do it simultaneously, so there is no way to base their guesses on the guesses of others. If nobody guesses incorrectly and at least one person guesses correctly, they all share a big prize. Otherwise they all lose.
One more thing: before the contest, the three people have a meeting during which they decide their strategy. What is the best strategy?" (Text source: http://www.relisoft.com/science/hats.html)
Problem 1 (medium): Solve the hats puzzle for three people (i.e., maximize their chance of winning).
Problem 2 (hard): Solve the hats puzzle for 2^N - 1 people.
Recently, hat problems have become a hot topic in mathematics, ever since it was discovered that Hamming codes can be applied to the puzzle (this is a hint for a possible solution to Problem 2).
Problem 3 (easier): The following puzzle (submitted by
Florian) might be more manageable:
"Four dwarfs are buried to the head in sand by some sadistic and cruel man, but he gives them a chance to escape the otherwise inescapable death, if one of them can find out the color of his hat. They are positioned as follows:
A || B C D
Above, A looks towards the wall ||, as do B, C and D. The wall is neither mirrored nor transparent, A sees exactly the wall and nothing else.Each dwarf has a hat on his head, there are 2 white hats and 2 black ones.The dwarfs cannot see their own hats, nor are they allowed to get it down from their head. Speaking, signaling with hands etc is not allowed, and punishable by instant death for everyone.
Assuming that every dwarf thinks logically and every dwarf knows that the others think logically, who would know the color of his hat?"
More...