Quoto

Learn / Library / Brainteasers

Distinct numbers on hats

BrainteasersMedium

The numbers , , , , , are written on cards. prisoners, numbered to , each draw one card without replacement and wear it as a hat; every ordered way of dealing cards is equally likely, in all. Each prisoner sees the other hats, so his own number is one of the numbers he does not see. A prisoner with an odd number guesses the larger of those numbers, and a prisoner with an even number guesses the smaller. For how many of the deals are at least of the guesses correct?

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

Let be the card nobody wears. Every prisoner is choosing between his own card and .

Solution
  1. Let be the card nobody wears. Each prisoner has candidates: are his own card and , so an odd prisoner is right exactly when his card is larger than , and an even prisoner when his card is smaller than .
  2. If , or , the number of right guesses is at most , and respectively, so no deal reaches .
  3. For the larger cards are , , , : all odd prisoners must wear larger cards and exactly of the even prisoners wears the single smaller card , which gives deals with right guesses.
  4. For all guesses are right when the odd prisoners take , , and the even prisoners take , , which gives deals; for exactly are right when one of the odd prisoners wears a smaller card, which gives deals.
  5. Adding the cases gives .

Answer: