Quoto

Learn / Library / Brainteasers

Minority colour guesses

BrainteasersMedium

Each of prisoners sits at a round table and gets a red or a black hat, all patterns equally likely. Each prisoner sees the other hats and guesses that his own hat has the colour that is rarer among the he sees. How many of the patterns make all guesses correct? (With hats seen there are no ties.)

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

Compare what a prisoner sees when the hats are split evenly with what he sees when they are not.

Solution
  1. Suppose the pattern has red hats. A red prisoner sees red and black hats, so he guesses red exactly when , that is when .
  2. A black prisoner sees red and black hats, and he guesses black exactly when , that is when .
  3. If a black prisoner exists and is wrong, and if a red prisoner exists and is wrong, so everyone is right only for .
  4. The number of patterns with red hats among is .

Answer: