The chessboard coin puzzle asks how one player can communicate a chosen square of a chessboard by flipping exactly one coin. Each square holds one coin in an arbitrary orientation. The first player sees the board and the chosen square, then flips a coin. The second player must identify the square from the resulting arrangement alone (3Blue1Brown 2020, Kada and Shizuma 2020).
For
squares, label them with the
-bit strings,
including the all-zero label. Let
be the bitwise XOR of the labels of
the coins showing heads, with empty XOR defined as zero.
If the chosen square has label
, flip the coin labeled
. Flipping toggles its label in the XOR,
so the new value is
. If
, the zero-labeled coin still gives the required flip.
The labels are the columns of a binary matrix, so the
XOR is computed like a syndrome. The matrix
includes the zero column in addition to the nonzero columns used by a Hamming
code.
The figure shows an board with labels written in decimal. The initial XOR of the heads-up labels is 19 and the target label is 42,
so the first player flips the coin on square
. The second player
reads the target from the resulting XOR of the heads-up labels.
Conversely, suppose a strategy works on squares. Among the
arrangements reachable by one flip from any given arrangement,
the decoder must report each of the
squares exactly once. Fix a square and let
be the set of arrangements the decoder assigns to it. Every
starting arrangement leads to exactly one member of
by a flip, and each member of
has
possible predecessors. Counting these pairs gives
, so
must be a power of 2 (3Blue1Brown 2020).