Quoto

Learn / Library / Brainteasers

Guess only when sure

BrainteasersHard

prisoners each get a red or a blue hat, all patterns possible. Each prisoner sees the other hats but not his own. At the same moment, without communicating, each does the following: if he sees at least red hats he guesses blue; if he sees at least blue hats he guesses red; otherwise he passes. The prisoners are freed if at least one of them guesses and every guess made is correct. For how many of the patterns are they freed?

Checking an answer needs JavaScript. The hint and the solution open without it.

A whole number, a decimal, a fraction like 3/8 or a percent.

Hint

Count by the number of red hats in the whole pattern, and check what a red-hatted and a blue-hatted prisoner each see.

Solution
  1. Let the pattern have red hats. A red prisoner sees red hats and a blue prisoner sees red hats, and the rule says guess blue on or more red, guess red on or fewer red.
  2. For and a blue prisoner guesses red and is wrong, and for and a red prisoner guesses blue and is wrong.
  3. For every prisoner sees or red hats and passes, so nobody guesses and they are not freed.
  4. For the red prisoners see red hat and guess red correctly while the blue ones pass, and for the blue prisoners see red hats and guess blue correctly while the red ones pass.
  5. The freed patterns number .

Answer: