Word & Logic · Hard

The Ten Prisoners & Parity Hat Line

Save 9 out of 10 prisoners—and maybe all 10—using one bit of binary parity communication.

The Challenge Hard

10 prisoners stand in single file facing forward; each wears a random red or blue hat they cannot see, while seeing every hat ahead of them. From back to front, each must guess their own hat color aloud (saying only 'Red' or 'Blue'). With an agreed strategy beforehand, how many prisoners can they GUARANTEE survive?

Hint 1: The backmost prisoner (#10) sees all 9 hats ahead of them and can sacrifice their own 50/50 safety to transmit one binary bit of information!
Hint 2: Suppose #10 says 'Red' if they see an ODD number of red hats ahead, and 'Blue' if EVEN.
Full Solution: At least 9 out of 10 guaranteed (with a 50% chance #10 survives too)! Prisoner #10 announces 'Red' if the count of red hats ahead is ODD, else 'Blue'. Prisoner #9 counts the 8 red hats ahead of them: if parity flipped compared to #10's announcement, #9 MUST be wearing Red; otherwise Blue! Every prisoner down the line updates the running parity similarly.
Advertisement

Why This Puzzle Matters: Intuition vs. Proof

This celebrated puzzle directly mirrors parity-check bits used in ECC computer memory and QR codes: a single checksum bit enables deterministic error recovery across an entire sequence.

Takeaway Pattern for Similar Teasers

Pause before calculating blindly when reading paradoxes like The Ten Prisoners & Parity Hat Line. Check hidden invariants, information asymmetries, and edge boundaries—the exact habits that turn tough riddles into clear insights.