Three-Move Subtraction Games
- Three-move subtraction games are impartial combinatorial games defined by a fixed three-element subtraction set, exhibiting rich periodic and algebraic structures.
- Algorithms such as the Sprague–Grundy function and the PTFN procedure efficiently classify winning positions and reveal underlying recurrence relations.
- The analysis uncovers explicit formulas, connections to Beatty sequences, expansion properties, and open problems in multi-dimensional game segmentation.
A three-move subtraction game is an impartial combinatorial game where two players alternately remove a fixed, allowable number of tokens from one or several heaps. When the subtraction set contains exactly three elements, the analysis reveals rich periodic and algebraic structure. The study of these games encompasses single- and multi-dimensional settings, periodicity, explicit formulae for winning positions, expansion properties, and deep connections to Beatty sequences and combinatorial game theory.
1. Formal Definition and Structure
A classic three-move subtraction game on a single heap is played with a fixed subtraction set , where . Players alternate moves; each move consists of subtracting exactly one from the heap, provided , for heap size . The player unable to move wins under normal play convention. Every position is recursively classified as a -position (previous player wins with best play) or an -position (next player wins) via structural recurrences rooted in Zermelo's principle: all terminal positions are , and any -position admits a move to a -position, while all moves from a -position lead to -positions (He et al., 2012).
Extending to -dimensional games, a position allows subtractions by vectors with coordinatewise constraint . Normal play, periodicity, and recursive outcome classification generalize accordingly (Larsson et al., 2023).
2. Algorithms for Solving Three-Move Games
Central algorithms for identifying winning positions are the Sprague–Grundy function and the PTFN ("P-position To Find N-position") procedure. The Sprague–Grundy function assigns to each heap the nim-value
where denotes the minimum excluded value (Ho, 2012). -positions are those with .
In contrast, the PTFN algorithm employs a $0$–$1$ bit array indicating -positions ($0$) and -positions ($1$). The recurrence for three-move games (with ) is
Equivalently,
The algorithm runs in time and uses space, faster and more space-efficient than Sprague–Grundy when (He et al., 2012).
3. Periodicity and Explicit Formulas
Every fixed finite subtraction set yields an ultimately periodic sequence for both and . In numerous three-move families, one observes alternating gap patterns among -positions and closed-form formulas. For instance, in , -positions occur at with gaps repeating and closed form
Analogous patterns emerge for various arithmetic and algebraic templates, such as and , with the period and pre-period determined by explicit parameter-dependent formulas (Ho, 2012).
Moreover, in two-dimensional settings, periodicity is maintained along rows and columns. Theorem: Every finite two-dimensional set is eventually row- and column-periodic, with outcome-type repeating after some once past an initial transient or (Larsson et al., 2023).
4. Connections to Beatty Sequences and Generalizations
A significant class of three-move games produces -positions as complementary pairs of Beatty sequences: , with irrational and . Fraenkel and modified subtraction games use mex-style recurrences
where encodes move constraints, possibly derived directly from Beatty differences (2208.00041).
A necessary and sufficient "Beatty-complementarity inequality" governs which pairs arise. The Relaxed Wythoff family generalizes this further, showing that for any complementary Beatty pair, one can construct a simple three-move game whose -positions are exactly the pair, providing a solution to the Fraenkel problem and a modification of the Duchêne–Rigo conjecture. Examples include the classical golden ratio case and parameterized -Wythoff families.
5. Expansion Properties and Rigidity
The notion of an expansion set formalizes which additional moves can be added to without altering the nim-sequence. The precise characterization:
- iff for all in one period.
- For larger , periodicity governs inclusion: iff , with the period.
The expansion set can be explicitly computed for families (e.g., yields ) (Ho, 2012).
A central open conjecture asserts that ultimately bipartite games (those with tail nim-sequence ) are non-expandable; no proper superset of can maintain the same nim-sequence. This conjecture is proven for several families, supported by combinatorial obstructions and explicit counterexamples for expansion by odd moves above .
6. Multi-Dimensional Three-Move Games and Segmentation Phenomena
Three-move rulesets in two or more dimensions reveal "mosaic" and "slice" structures in the game-board segmentation. Symmetric-additive and arithmetic-additive families admit complete solutions via segmentwise coloring algorithms (termed "coloring automaton" Editor's term). In the symmetric-additive case , -positions fill segments defined by rational slopes, recursively closed under specific translation vectors.
Experimentally, for many small three-move sets, the first quadrant decomposes (modulo a finite "corner") into finitely many semi-infinite slices, each bounded by rational slope lines. The coloring automaton precisely identifies -positions with periodic patterns within each segment (Larsson et al., 2023).
Open conjectures propose that every three-move -dimensional game admits segmentation into finitely many semi-infinite slices solved by such automata, and that -move games attain at most slices. Computational complexity is open: two-move games are solvable in linear time, but the complexity for three moves remains unresolved.
7. Open Problems and Directions
Classification of the periodicity and nim-sequence behavior for all three-move sets is incomplete; several family subcases (e.g., with even ) lack explicit solution. The full structure of expansion sets and rigidity for general sets needs further exploration (Ho, 2012). In higher dimensions, a natural necessary and sufficient condition ensuring solvability by a coloring automaton remains open, as does the problem of computational complexity for decision queries in three-move games.
The inverse construction for Beatty pairs, the periodic mosaic phenomenon, and outcome segmentation remain central research themes, with implications for combinatorial game theory and algebraic combinatorics (2208.00041, Larsson et al., 2023).
Table 1: Summary of Key Algorithmic and Structural Features
| Aspect | Single-Heap | Multi-Dimensional |
|---|---|---|
| Solution Recurrence | PTFN or mex/Grundy | Coloring Automaton, mex |
| -position pattern | Ultimately periodic | Row/column periodic, slices |
| Explicit formulas | Exists for many families | Segment-wise constructions |
| Expansion set | Computable, conjectural rigidity | Yet to be classified |
| Beatty connection | Extensive via recurrences | Present in variants |
The theory of three-move subtraction games forms a nexus of combinatorial periodicity, algebraic structure, extremal rigidity, and open-ended complexity, with explicit solutions available for key families and deep connections to number theory and game dynamics.