TOPICS
Search

Chessboard Coin Puzzle


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 n=2^k squares, label them with the k-bit strings, including the all-zero label. Let s be the bitwise XOR of the labels of the coins showing heads, with empty XOR defined as zero. If the chosen square has label t, flip the coin labeled s xor t. Flipping toggles its label in the XOR, so the new value is s xor (s xor t)=t. If s=t, 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.

ChessboardCoinPuzzle

The figure shows an 8×8 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 19 xor 42=57. The second player reads the target from the resulting XOR of the heads-up labels.

Conversely, suppose a strategy works on n squares. Among the n arrangements reachable by one flip from any given arrangement, the decoder must report each of the n squares exactly once. Fix a square and let C be the set of arrangements the decoder assigns to it. Every starting arrangement leads to exactly one member of C by a flip, and each member of C has n possible predecessors. Counting these pairs gives n|C|=2^n, so n must be a power of 2 (3Blue1Brown 2020).


See also

Chessboard, Hamming Code, Parity Check Matrix, XOR

Explore with Wolfram|Alpha

References

3Blue1Brown. "The Impossible Chessboard Puzzle." YouTube. Jul. 5, 2020. https://www.youtube.com/watch?v=wTJI_WuZSwE.Kada, M. and Shizuma, S. "Devil's Infinite Chessboard Puzzle under a Weaker Choice Principle." RIMS Kôkyûroku 2164, 92-96, 2020. https://www.kurims.kyoto-u.ac.jp/~kyodo/kokyuroku/contents/pdf/2164-06.pdf.Stand-up Maths. "The Almost Impossible Chessboard Puzzle." YouTube. Jul. 5, 2020. https://www.youtube.com/watch?v=as7Gkm7Y7h4.

Cite this as:

Weisstein, Eric W. "Chessboard Coin Puzzle." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/ChessboardCoinPuzzle.html

Subject classifications