Paperlane

no. 22 · Wednesday 25 November 2026

Quadratic periods after adjoining one move to a fixed subtraction game

Yuwen Pan

math.CO · □ lean · 20 pp

Abstract

Zhang conjectured that adjoining one move $c$ to a fixed subtraction set $S$ gives a Grundy sequence whose least preperiod and period are both $O_S(c)$. For every $q=20+9s$ with $s\ge0$, take $S=\{3,6,q-3\}$. Along $c=qk+1$ with $k\ge2$, the Grundy and win/loss sequences are periodic from heap zero with common least period $(k+2)(c+6)-11$, asymptotic to $c^2/q$. For $\{3,6,17\}$ we determine both least periods and preperiods for every positive $c$ and verify the complete table in Lean. Fixed bases with the same entire Grundy sequence realize infinitely many distinct positive quadratic coefficients for the augmented period. A second fixed triple gives a quadratic Grundy preperiod while the win/loss sequence repeats from heap zero. A third has a quadratic Grundy period but only a linear win/loss period. For an arbitrary fixed $S$, a linear bound on both Grundy invariants implies eventual affine formulas with integer coefficients on residue classes. The same finite-state method extends four numerical tables of Zhang. We also give the entire augmented sequence for $c>\max S$ when the losing heaps of $S$ are exactly the multiples of a fixed integer.

comments
20 pages. Ancillary files include Lean proofs and verification programs
fields
Combinatorics