Fibonacci Nim Created 2026-10-20 Updated 2026-11-05
Fibonacci Nim is a normal play impartial game on one heap. Start with counters. The first move removes between and counters; thereafter a move removes at least one and at most twice the number just removed by the opponent, without exceeding the remaining heap. Taking the last counter wins.
For a position with counters and permitted maximum , let be the smallest Fibonacci number appearing in the Zeckendorf representation of , using the sequence . The position is losing exactly when . If , removing is a winning move. When this does not empty the heap, the next smallest summand exceeds , so the opponent's new limit is too small. Conversely, the Zeckendorf subtraction lemma gives whenever , so every legal move from a losing position leaves a winning one.[ref]
Initially , so the losing initial heap sizes are precisely the Fibonacci numbers. For example, : take , leaving the opponent counters and a limit of , a losing position. The move limit is part of the state; heap size alone does not determine later positions.
Michael J. Whinihan 2026-11-05
Michael J. Whinihan published an analysis of Fibonacci Nim in 1963. His paper connects a take-away game with the unique decomposition of an integer into nonconsecutive Fibonacci numbers.[ref]
After the opening move, a player may remove at most twice the preceding player's removal. The smallest summand in the heap's Zeckendorf representation identifies the strategic threshold. Thus a numerical representation becomes operational information about a winning strategy: the relevant feature is not the heap's size alone but its least Fibonacci component.[ref]