English

On Remoteness Functions of Exact Slow $k$-NIM with $k+1$ Piles

Combinatorics 2023-04-14 v1

Abstract

Given integer nn and kk such that 0<kn0 < k \leq n and nn piles of stones, two player alternate turns. By one move it is allowed to choose any kk piles and remove exactly one stone from each. The player who has to move but cannot is the loser. Cases k=1k=1 and k=nk = n are trivial. For k=2k=2 the game was solved for n6n \leq 6. For n4n \leq 4 the Sprague-Grundy function was efficiently computed (for both the normal and mis\`ere versions). For n=5,6n = 5,6 a polynomial algorithm computing P-positions was obtained. Here we consider the case 2k=n12 \leq k = n-1 and compute Smith's remoteness function, whose even values define the P-positions. In fact, an optimal move is always defined by the following simple rule: if all piles are odd, keep a largest one and reduce all other; if there exist even piles, keep a smallest one of them and reduce all other. Such strategy is optimal for both players, moreover, it allows to win as fast as possible from an N-position and to resist as long as possible from a P-position.

Keywords

Cite

@article{arxiv.2304.06498,
  title  = {On Remoteness Functions of Exact Slow $k$-NIM with $k+1$ Piles},
  author = {V. Gurvich and D. Martynov and V. Maximchuk and M. Vyalyi},
  journal= {arXiv preprint arXiv:2304.06498},
  year   = {2023}
}

Comments

20 pages