Given integers such that and an integer vector ; denote by the number of entries of that are multiple of . Choose entries of as follows: if , take smallest entries of multiple of ; if , take all such entries, if any, and add remaining entries arbitrarily, for example, take the largest ones. In one step, the chosen entries (bears) keep their values, while the remaining (bulls) are reduced by 1. Repeat such steps getting the sequence . It is quasi-periodic". More precisely, there is a function $N = N(n,k,\ell,x^0)$ such that for all $j \geq N$ we have $m(x^j) \geq n-k$ and $range(x^j) \leq \ell$, where $range(x) = (\max(x_i \mid i \in [n]) - \min(x_i \mid i \in [n])$. Furthermore, $N$ is a polynomial in $n,k,\ell,$ and $range(x^0)$ and can be computed in time linear in $n,k,\ell$, and $\log(1 + range(x^0))$. After $N$ steps, the system moves like a screw". Assuming that , introduce the cyclical order on considering 1 and as neighbors. Then, bears and bulls partition into two intervals, rotating by the angle with every steps. Furthermore, after every steps all entries of are reduced by the same value , that is, for all and . We provide an algorithm computing (and ) in time linear in (and ). In case and such screw dynamical system are applicable to impartial games.

生成讲解博客的中文版本

生成AI智能校验的中文版本