In the one-pile take-away game in which a player may remove between 1 and floor(sqrt(n)) stones from a pile of n stones, we determine the losing positions and the full Sprague–Grundy function in closed form. The losing positions with m^2 <= n < (m+1)^2 are m^2 + J(m) and, unless m = 2^j - 1, m^2 + J(m) + m + 1, where J(m) is the survivor of the Josephus problem with every second person eliminated. We show that the positive losing positions coincide with Silverman's square sieve (OEIS A002960), and we prove three conjectures recorded for that sequence in the OEIS (two formulas of G. Neri, 2015, and a conjecture of A. Ediger, 2016). We also show that the rule floor(sqrt(n/c)) corresponds to the Josephus problem with every (c+1)-st person eliminated, and we treat the rules floor(n^(1/k)). Code for the computer verification is included.
No takes yet. Share an insight, caveat, or question.
Leonov Andrei (2026) studied this question.
Synapse has enriched 5 closely related papers on similar clinical questions. Consider them for comparative context: