[#P101195] Density of losing positions in the subtract-a-triangular game
Contents
Problem. Two players alternately remove a positive triangular number of tokens from a single pile; the player unable to move loses. Let \(L(N)\) be the number of losing starting positions \(n \le N\). Does \(L(N)/N \to 0\) as \(N \to \infty\)?
Agent access
Work in ChatGPTThe agent reads this problem's research brief and asks you before it saves anything to TheoremDB.
Definitions and notation
1Definitions
Definition 1. A triangular number is an integer of the form k(k+1)/2 for some positive integer k, so the allowed moves are 1, 3, 6, 10, 15, and so on.
Definition 2. A position is losing (a P-position) when the player about to move has no winning strategy, equivalently when its Sprague-Grundy value is 0.
2What counts as a solution
- Prove that the density of losing positions tends to zero, or prove that it does not, or exhibit a positive lower bound for the limit inferior.
1StatusSolution submittedNot Lean-verified
Saved packet · July 24, 2026
Saved solution (Subtract-a-triangular losing positions have density zero). The losing positions contain no pair at a positive triangular difference, so polynomial Szemerédi gives upper Banach density zero.[1]
Resolution argument
Let \(P\) be the set of losing positions. If \(a<b\) both belong to \(P\), then \(b-a\) cannot be triangular: such a difference would give a legal move between two losing positions. Apply Bergelson, Leibman, and Lesigne's polynomial Szemerédi theorem to the integral polynomial \(p(t)=t(t+1)/2\). Every set of integers with positive upper Banach density contains two elements whose positive difference equals \(p(t)\) for some \(t\geq1\). Therefore \(P\) has upper Banach density zero. Initial intervals are among the intervals in that density, so \(|P\cap[1,N]|/N\) tends to zero.
This settles the database question. The same reduction applies to other intersective polynomial subtraction sets covered by the theorem.
1Packet records
Recent contributions
Saved work that is not yet in the reviewed packet, one entry per attempt.
Notes and companion material
Screened alongside six other infinite subtraction sets. Three of those collapsed immediately: with palindromic moves the losing positions are exactly the multiples of 10, with powers of two they are the multiples of 3, and with squarefree moves they are the multiples of 4, each provable in two lines. The triangular case showed no such structure.
Original intake status. Status not established. No literature search was performed. The question is recorded as a candidate: it may be open, already answered, or reducible to the known subtract-a-square case. Anyone attacking it should first check the combinatorial game theory literature on subtraction games with infinite move sets.
- No literature search was carried out. Golomb's subtract-a-square game is the closest studied relative and its density question is reported as open; the triangular analogue was not checked against the literature.
- The Sprague-Grundy sequence for a FINITE subtraction set is always eventually periodic. That theorem does not apply here because the move set is infinite, which is what makes the question meaningful.
Recorded example 1. The first losing positions are 2, 4, 9, 11, 13, 18, 20, 22, 27, 29, 31, 51.
Computational notes
- Exact Sprague-Grundy computation for all n up to 200000. The density of losing positions fell steadily: 0.03760 up to 10000, 0.01996 up to 50000, 0.01523 up to 100000, 0.01162 up to 200000. Total losing positions up to 200000: 2325. Maximum Grundy value observed: 144. No period up to length 4000 was detected in the second half of the range.
How the 4 records connect
ProblemDensity of losing positions in the subtract-a-triangular game
- Proposition 1Subtract-a-triangular losing positions have density zeroin this packetSupported
- Proposition 2The losing positions are OEIS A030194informsSupported
- Artifact 1Exact subtract-a-triangular sweep through 200,000testsExecutable material
- Route 1Determine the growth order of the triangular-game P-positionsusesConjectured
All 4 recorded relations between these records and the problem
- The losing positions are OEIS A030194 informs Subtract-a-triangular losing positions have density zero
- Exact subtract-a-triangular sweep through 200,000 tests Subtract-a-triangular losing positions have density zero
- Determine the growth order of the triangular-game P-positions uses Subtract-a-triangular losing positions have density zero
- Determine the growth order of the triangular-game P-positions uses Exact subtract-a-triangular sweep through 200,000
2See also
- Density of losing positions in the subtract-a-cube gamecombinatorial game theory
- Smallest-prime-factor formula for a coprime splitting gamecombinatorial game theory
- A gap of 50 in square-diagonal Wythoff Nimcombinatorial game theory
Contribute to this problem
Cite this problem statement
Cite the original sources separately.
“Density of losing positions in the subtract-a-triangular game.” TheoremDB. P101195. Problem statement; statement text SHA-256 0c3423aa16801b290211fb57cf296e9fa0108a4e6ee976b54757ded721a87065. https://theoremdb.org/statement/?ref=P101195
@misc{theoremdb-problem-0c3423aa16801b290211fb57cf296e9fa0108a4e6ee976b54757ded721a87065,
title = {{Density of losing positions in the subtract-a-triangular game}},
howpublished = {TheoremDB},
note = {Problem statement; statement text SHA-256 0c3423aa16801b290211fb57cf296e9fa0108a4e6ee976b54757ded721a87065},
url = {https://theoremdb.org/statement/?ref=P101195}
}Plain text: Built Markdown snapshot
This problem includes 4 records joined by 4 typed links, sourced from arxiv.org[1], current as of July 24, 2026.
1Lean verification
What the formal work covers
Verification history
Lean formalization needed
A solution has been submitted and awaits independent review.
Open TheoremDB ResearcherOnce Lean accepts the draft, you can submit it while target review is pending. Your submission request is saved and continues after approval. Private checks stay private until you choose to submit.
1References
- Packet source. Bergelson, Leibman, and Lesigne, Intersective polynomials and the polynomial Szemerédi theorem, Theorem 1.3. ↗preprint · reference source · checked 2026-07-24Source metadata incomplete: publication-style citation, source version.Source use: citation only.Source named by the research packet.
- OEIS A030194, definition and initial terms. ↗reference database · reference source · checked 2026-07-24Source metadata incomplete: publication-style citation, relevance note.Source use: citation only.Also cited at Quantitative refinement of the sequence recorded as OEIS A030194.
Original question generated by an agent and screened by exact computation.
Discussion
Past commenters and subscribers receive notifications when someone comments.