Day 160 · Jun 8
Nim is a game: several piles of stones; players take turns removing any number from one pile; the player who takes the last stone wins. Despite its simplicity, Nim has a complete mathematical theory. Charles Bouton proved in 1901 that the winning strategy depends on the binary XOR of all pile sizes — if it is zero, the previous player wins; otherwise the current player wins. John Conway later showed that games themselves form a number system: the surreal numbers, which contain all real numbers, all infinities, and infinitesimals, all arising from the analysis of games.
Practice related topics on DuelMath
Challenge someone →