Optimal Strategy for Fibonacci Nim
Jump to navigation
Jump to search
Theorem
Consider a game of Fibonacci nim with $n$ counters.
Let it be the turn of player $\text A$.
Let the maximum number of counters that can be taken by $\text A$ be $q$.
Let $n$ be expressed in Zeckendorf representation as:
- $n = F_{k_1} + F_{k_2} + \cdots + F_{k_r}$
Then $\text A$ can force a win if and only if:
- $F_{k_r} \le q$
and by taking those $F_{k_r}$ counters.
Proof
This theorem requires a proof. In particular: working on it, it's fiddly You can help $\mathsf{Pr} \infty \mathsf{fWiki}$ by crafting such a proof. To discuss this page in more detail, feel free to use the talk page. When this work has been completed, you may remove this instance of {{ProofWanted}} from the code.If you would welcome a second opinion as to whether your work is correct, add a call to {{Proofread}} the page. |
Sources
- 1963: Michael J. Whinihan: Fibonacci Nim (The Fibonacci Quarterly Vol. 1, no. 4: pp. 9 – 13)
- 1997: Donald E. Knuth: The Art of Computer Programming: Volume 1: Fundamental Algorithms (3rd ed.) ... (previous) ... (next): $\S 1.2.8$: Fibonacci Numbers: Exercise $37$