English

Screw discrete dynamical systems and their applications to exact slow NIM

Combinatorics 2023-12-15 v1

Abstract

Given integers n,k,n,k,\ell such that 0<k<n,  1<0<k<n, \; 1<\ell and an integer vector x=(x1,,xn)x = (x_1,\ldots,x_n); denote by m=m(x)m = m(x) the number of entries of xx that are multiple of \ell. Choose nkn-k entries of xx as follows: if nkm(x)n-k \leq m(x), take nkn-k smallest entries of xx multiple of \ell; if nk>m(x)n-k > m(x), take all mm such entries, if any, and add remaining nkmn-k-m entries arbitrarily, for example, take the largest ones. In one step, the chosen nkn-k entries (bears) keep their values, while the remaining kk (bulls) are reduced by 1. Repeat such steps getting the sequence S=S(n,k,,x0)=(x0x1xj)S = S(n,k,\ell,x^0) = (x^0 \to x^1 \to \ldots \to x^j \to \ldots). It is ``quasi-periodic". More precisely, there is a function N=N(n,k,,x0)N = N(n,k,\ell,x^0) such that for all jNj \geq N we have m(xj)nkm(x^j) \geq n-k and range(xj)range(x^j) \leq \ell, where range(x)=(max(xii[n])min(xii[n])range(x) = (\max(x_i \mid i \in [n]) - \min(x_i \mid i \in [n]). Furthermore, NN is a polynomial in n,k,,n,k,\ell, and range(x0)range(x^0) and can be computed in time linear in n,k,n,k,\ell, and log(1+range(x0))\log(1 + range(x^0)). After NN steps, the system moves ``like a screw". Assuming that x1xnx_1 \leq \dots \leq x_n, introduce the cyclical order on [n]={1,,n}[n] = \{1, \ldots, n\} considering 1 and nn as neighbors. Then, bears and bulls partition [n][n] into two intervals, rotating by the angle 2πk/n2 \pi k /n with every \ell steps. Furthermore, after every p=n/GCD(n,k)=LCM(n,k)/kp = \ell n / GCD(n,k) = \ell LCM(n,k) / k steps all entries of xx are reduced by the same value δ=pk/n\delta = pk/n, that is, xij+pxij=δx_i^{j+p} - x_i^j = \delta for all i[n]i \in [n] and jNj \geq N. We provide an algorithm computing NN (and xjx^j) in time linear in n,k,,log(1+range(x0))n,k,\ell, \log(1 + range(x^0)) (and log(1+j)\log (1+j)). In case k=n1k=n-1 and =2\ell = 2 such screw dynamical system are applicable to impartial games.

Keywords

Cite

@article{arxiv.2312.08382,
  title  = {Screw discrete dynamical systems and their applications to exact slow NIM},
  author = {Vladimir Gurvich and Mariya Naumova},
  journal= {arXiv preprint arXiv:2312.08382},
  year   = {2023}
}

Comments

arXiv admin note: text overlap with arXiv:2311.03257