Next Article in Journal
Evasion Differential Games in the Space of Square Summable Sequences
Previous Article in Journal
Monopoly and Quality Omission
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

On Remoteness Functions of k-NIM with k + 1 Piles in Normal and in Misère Versions

by
Vladimir Gurvich
1,2,
Vladislav Maximchuk
1,
Georgy Miheenkov
1 and
Mariya Naumova
3,*
1
Higher School of Economics, National Research University, 101978 Moscow, Russia
2
Rutgers Center for Operations Research (RUTCOR), Rutgers University, Piscataway, NJ 08854, USA
3
Rutgers Business School, Rutgers University, Piscataway, NJ 08854, USA
*
Author to whom correspondence should be addressed.
Games 2024, 15(6), 37; https://doi.org/10.3390/g15060037
Submission received: 23 September 2024 / Revised: 5 November 2024 / Accepted: 11 November 2024 / Published: 13 November 2024

Abstract

:
Given integer n and k such that 0 < k n and n piles of stones, two players alternate turns. On each move, a player is allowed to choose any k piles and remove exactly one stone from each. The player who has to move but cannot is the loser in the normal version of the game and (s)he is the winner in the misère version. Cases k = 1 and k = n are trivial. For k = 2 , the game was solved for n 6 . For n 4 , the Sprague–Grundy function was efficiently computed (for both versions). For n = 5 , 6 , a polynomial algorithm computing P-positions was obtained for the normal version. Then, for the case k = n 1 , a very simple explicit rule that determines the Smith remoteness function was found for the normal version of the game: the player who has to move keeps a pile with the minimum even number of stones; if all piles have an odd number of stones, then (s)he keeps a maximum one, while the n 1 remaining piles are reduced by one stone each in accordance with the rules of the game. Computations show that the same rule works efficiently for the misère version too. The exceptions are sparse. We list some. Denote a position by x = ( x 1 , , x n ) . Due to symmetry, we can assume wlog that x 1 x n . Our computations partition all exceptions into the following three families: x 1 is even, x 1 = 1 , and odd x 1 3 . In all three cases, we suggest formulas covering all found exceptions, but it is not proven that there are no others.

1. Introduction

We assume that the reader is familiar with basic concepts of impartial game theory (see e.g., [1,2,3,4] for an introduction) and also with the recent paper [5], where the normal version of game NIM ( n , k ) , the exact slow NIM, was analyzed for the case n = k + 1 . Here, we consider the misère version for this case.

1.1. Exact Slow NIM

Game Exact Slow NIM was introduced in [6] as follows: Given two integers n and k such that 0 < k n , and n piles containing x 1 , , x n stones each. On each move, a player is allowed to reduce any k piles by exactly one stone each. Two players alternate turns. A player who has to move but cannot is the loser in the normal version of the game and (s)he is the winner in the misère version. In [6], this game was denoted NIM = 1 ( n , k ) . Here, we will simplify this notation to NIM ( n , k ) .
Game NIM ( n , k ) is trivial if k = 1 or k = n . In the first case, it ends after x 1 + + x n moves and in the second one—after min ( x 1 , , x n ) moves. In both cases, nothing depends on the players’ skills. All other cases are more complicated.
The game was solved for k = 2 and n 6 . In [7], an explicit formula for the Sprague–Grundy (SG) function was found for n 4 , for both the normal and misère versions. This formula allows us to compute the SG function in linear time. Then, in [8], the P-positions of the normal version were found for n 6 . For the subgame where x 1 + + x n is even, a simple formula for the P-positions was obtained, allowing verifification in linear time if x is a P-position and, if not, finding a move from it to a P-position. The subgame with odd x 1 + + x n is more difficult. Still, a (more sophisticated) formula for the P-positions was found, providing a linear time recognition algorithm.
Further generalizations of exact slow NIM were considered in [9].

1.2. Case n = k + 1 , the Normal Version

In [5], the normal version was solved in case n = k + 1 by the following simple rule:
  • (o) if all piles are odd, keep a largest one and reduce all others;
  • (e) if there exist even piles, keep the smallest one of them and reduce all others.
This rule is well-defined and it uniquely determines a move in every position x. (Obviously, permuting the piles with the same number of stones, we keep the game unchanged.) The rule and the corresponding moves are called the M-rule and M-moves; the sequence of successive M-moves is called the M-sequence.
Obviously, n > 1 is required. If n = 1 , then x 1 will reach an even value in at most one M-move, after which it will stop. Since this case is trivial, we can assume that n > 1 without any loss of generality (wlog).
It is also easily seen that no M-move can result in a position whose entries are all odd. Hence, for an M-sequence, part (o) of the M-rule can be applied at most once, at the beginning; after this, only part (e) works.
Given a position x = ( x 1 , , x n ) , assume that both players follow the M-rule and denote by M ( x ) the number of moves from x to a terminal position. In [5], it was proven that M = R , where R is the classical remoteness function introduced by Smith [10]. Thus, the M-rule solves the game and, furthermore, allows a player to win as quickly as possible in an N-position and to resist as long as possible in a P-position.
A polynomial algorithm computing M = R (and in particular, the P-positions) is given, even if n is a part of the input and integers are presented in binary form.
Let us also note that an explicit formula for the P-positions is known only for n 4 , and for n = 3 , it is already quite complicated [7] and the Appendix in [5].

1.3. Related Versions of NIM

By definition, the present game NIM ( n , k ) is the exact slow version of the famous Moore’s NIM k [11]. In the latter game, a player, by one move, reduces arbitrarily (not necessarily by one stone) at most k piles from n.
The case k = 1 corresponds to the classical NIM whose P-position was found by Bouton [12] for both the normal and misère versions.
Remark 1.
Actually, the Sprague–Grundy (SG) values of NIM were also computed in Bouton’s paper, although were not defined explicitly in general. This was completed later by Sprague [13] and Grundy [14] for arbitrary disjunctive compounds of impartial games; see also [3,10].
In fact, the concept of a P-position was also introduced by Bouton in [12], but only for the (acyclic) digraph of NIM, not for all impartial games. In its turn, this is a special case of the concept of a kernel, which was introduced for arbitrary digraphs by von Neumann and Morgenstern [15].
Also the misère version was introduced by Bouton in [12], but only for NIM, not for all impartial games. The latter was completed by Grundy and Smith [16]; see also [3,10].
Moore [11] obtained an elegant explicit formula for the P-positions of NIM k generalizing the Bouton’s case k = 1 . Even more generally, the positions of the SG-values 0 and 1 were efficiently characterized by Jenkins and Mayberry [17]; see also Section 4 in [18].
Also in [17]; the SG function of NIM k was computed explicitly for the case n = k + 1 (in addition to the case k = 1 ). In general, no explicit formula, nor even a polynomial algorithm, computing the SG-values (larger that 1) is known. The smallest open case: 2-values for n = 4 and k = 2 .
The remoteness function of k-NIM was recently studied in [19].
Let us also mention the exact (but not slow) game NIM = ( n , k ) [18] in which exactly k from n piles are reduced (by an arbitrary number of stones) in a move. The SG-function was efficiently computed in [18] for n 2 k . Otherwise, even a polynomial algorithm looking for the P-positions is not known (unless k = 1 , of course). The smallest open case is n = 5 and k = 2 .

2. Case n = k + 1 , Misère Version

Computations show that the same M-rule works pretty efficiently also for the misère version of the considered game NIM ( n , k ) with n = k + 1 , yet, not always. A position x = ( x 1 , , x n ) is called an exception if the M-move is not optimal, in other words, if R ( x ) R ( x ) 1 for the M-move x x .
In fact, R ( x ) is odd and R ( x ) R ( x ) takes values 0 or 2 for all known exceptions. ( R ( x ) and R ( x ) can be equal, but both cannot be even.) The exceptions are sparse and satisfy a regular pattern based on two parameters: n and min ( x 1 , , x n ) . However, the complete description of this pattern is open.

2.1. Monotonicity for the Entries of Positions

Recall that x 1 x n is assumed for any position x = ( x 1 , , x n ) (We order the entries x i just for convenience; their permutations do not change the game.).
However, even if this monotonicity holds for x, it may fail for x , after a move x x . In this case, we have to restore it by permuting entries of x .
Alternatively, we can make the M-rule slightly stricter, as follows. Given a position x = ( x 1 , , x n ) for which the M-rule is “ambiguous”; that is, x contains
  • (o) several smallest even entries, or
  • (e) several largest odd entries, provided all x i are odd.
In both cases, among these equal entries, keep one with the largest index reducing all others by 1. We will call such an M-move (as well as the corresponding M-sequence and M-rule) strict. It is easily seen that a strict M-move x x respects the non-decreasing monotonicity of the entries; that is, ( x 1 x n ) whenever ( x 1 x n ) . In contrast, every non-strict M-move breaks this monotonicity.

2.2. Monotonicity of Exceptions

A position is called an exception if the M-move is not optimal in it. An optimal move in such a position is called exceptional.
Proposition 1.
Given integer m n , a position x = ( x 1 , , x n , x m ) is an exception whenever x = ( x 1 , , x n ) exists; of course, not vice versa. Moreover, the exceptional moves coincide in x and x . (More precisely, the entry x i that is kept unchanged by an optimal move is the same for x and x ; furthermore, 1 i n )
Listing the exceptional position below, by default, we do not include x if x is already listed; in other words, we include only the minimal exceptions.

2.3. General Properties of Exceptions

All found minimal monotone exceptions share the following properties:
  • [ x n -monotone] x n > x n 1 ; if position x i = ( x 1 , , x n 1 , x n 1 + i ) is an exception for some i > 0 , then x i is an exception for each i > 0 .
  • x n x n 1 = 1 in every minimal exception.
  • [ x n 1 -determining] R ( x ) = f ( x n 1 ) + 1 , where f ( ) = 2 / 2 ; that is, f ( ) = if is even and f ( ) = + 1 if is odd, for all integer 0 .
    Thus, R ( x ) (and R ( x ) ) are odd (and, hence, the first player wins) in every exception. However, the M-move is losing. (It could win but would require a larger number of moves. Yet, such a case is not realized in any found exception.)
  • In every exception x, the optimal move keeps the entry x n if x n 1 is even and keeps x n 1 if it is odd. In contrast, the strict M-move, vice versa, keeps x n 1 if it is even and keeps x n if x n 1 is odd.
  • [ 0 R ( x ) R ( x ) 2 ] By definition of the remoteness function, we have R ( x ) R ( x ) = 1 for each optimal move x x in every impartial game, in particular, for every M-move in the normal version of NIM ( n , n 1 ) . In contrast, for its misère version, in every found minimal exception, R ( x ) R ( x ) takes only values 0, when x n 1 is even, or 2, when x n 1 is odd.

2.4. Even x 1

Given x 1 = 2 i , a position x = ( x 1 , , x n , x m ) is an exception if and only if
2 i = x 1 = = x i + 2 < x i + 3 = x n x m where 1 i n 3 and n 4 .
Since x n 1 is always even, the optimal move keeps x n , while the M-move keeps x j for any fixed j < n . Since R ( x ) = 2 i + 1 is odd, the first player always wins. Note that both properties agree with Section 2.3.
Examples for x 1 = 2 , 4 , 6 , 8 are given below
2 = x 1 = x 2 = x 3 < x 4 = x n x m , R ( x ) = 3 , n = 4 ; 4 = x 1 = = x 4 < x 5 = x n x m , R ( x ) = 5 , n = 5 ; 6 = x 1 = = x 5 < x 6 = x n x m , R ( x ) = 7 , n = 6 ; 8 = x 1 = = x 6 < x 7 = x n x m , R ( x ) = 9 , n = 7 , etc .

2.5. x 1 = 1

A position x = ( x 1 , , x n , , x m ) with x 1 = 1 is an exception if and only if
1 = x 1 x 2 < x 3 x m , here 3 = n m .
Furthermore, if x 2 is even, then R ( x ) = x 2 + 1 , and the only optimal move keeps x 3 , while the M-move keeps x 2 ; if x 2 is odd, then R ( x ) = x 2 + 2 , and, in contrast, the only optimal move keeps x 2 , while the M-move keeps x i , for some i > 2 . In both cases, R ( x ) is odd and, hence, the first player always wins. It is easily seen that all these properties agree with Section 2.3.
Wlog, we could restrict ourselves by n = 3 . All exceptions with larger n are implied by monotonicity.
Thus, it remains to consider odd values of x 1 3 . Our computer analysis includes only x 1 = 3 , 5 , 7 , 9 , 11 , 13 , 15 , 17 . In each case, we observe a pattern; however, its extension to arbitrary odd x 1 remains an open problem.

2.6. Odd x 1 5 with n = 4

For any odd x 1 5 , fix an integer i 0 to obtain the following two exceptions x = ( x 1 , x 2 , x 3 , x 4 ) :
x 1 , x 2 = x 1 + 2 i , x 3 = 2 ( x 1 + i 2 ) , x 4 = 2 x 1 + 2 i 3 = x 3 + 1 ;
x 1 , x 2 = x 1 + 2 i , x 3 = 2 x 1 + 2 i 3 , x 4 = 2 ( x 1 + i 1 ) = x 3 + 1 .
In the first case, R ( x ) = x 4 , and the unique optimal move keeps x 4 , while the unique M-move keeps x 3 ; in contrast, in the second case, R ( x ) = x 4 + 1 , and the unique optimal move keeps x 3 , while the unique M-move keeps x 4 .
Furthermore, the remoteness function is given by formula R ( x ) = f ( x 3 + 1 ) , where f ( m ) = 2 m / 2 + 1 ; that is, f ( m ) = m if m is odd and f ( m ) = m + 1 if m is even, for all m 0 .
It is easily seen that R ( x ) is odd for each i; hence, the first player always wins.
Examples for x 1 = 5 , 7 , 9 , 11 are given below. Notation y + means “any number that is greater than or equal to y”.
x 1 = 5 R x 1 = 7 R x 1 = 9 R x 1 = 11 R
(5, 5, 6, 7+)7(7, 7, 10, 11+)11(9, 9, 14, 15+)15(11, 11, 18, 19+)19
(5, 5, 7, 8+)9(7, 7, 11, 12+)13(9, 9, 15, 16+)17(11, 11, 19, 20+)21
(5, 7, 8, 9+)9(7, 9, 12, 13+)13(9, 11, 16, 17+)17(11, 13, 20, 21+)21
(5, 7, 9, 10+)11(7, 9, 13, 14+)15(9, 11, 17, 18+)19(11, 13, 21, 22+)23
(5, 9, 10, 11+)11(7, 11, 14, 15+)15(9, 13, 18, 19+)19(11, 15, 22, 23+)23
(5, 9, 11, 12+)13(7, 11, 15, 16+)17(9, 13, 19, 20+)21(11, 15, 23, 24+)25
By monotonicity, any such exception x = ( x 1 , x 2 , x 3 , x 4 ) can be extended to the exceptions x = ( x 1 , , x m ) , with m 5 and x i = x i for i 4 , while x 5 , x m can be chosen arbitrary such that x 4 x 5 x m . Note also that case x 1 = 3 is considered in Section 2.9.

2.7. Odd x 1 7 with n = 5

The following families of exceptions were found:
x 1 = 7 x 1 = 9 x 1 = 11 x 1 = 13
(7, 7, 8, 8, 9)(9, 9, 12, 12, 13)(11, 11, 16, 16, 17)(13, 13, 20, 20, 21)
(7, 7, 9, 9, 10)(9, 9, 13, 13, 14)(11, 11, 17, 17, 18)(13, 13, 21, 21, 22)
(7, 9, 10, 10, 11)(9, 11, 14, 14, 15)(11, 13, 18, 18, 19)(13, 15, 22, 22, 23)
(7, 9, 11, 11, 12)(9, 11, 15, 15, 16)(11, 11, 19, 19, 20)(13, 15, 23, 23, 24)
(7, 11, 12, 12, 13)(9, 13, 16, 16, 17)(11, 15, 20, 20, 21)(13, 17, 24, 24, 25)
x 1 = 9 x 1 = 13 x 1 = 17 x 1 = 21
(9, 9, 9, 10, 11+)(13, 13, 13, 16, 17+)(17, 17, 17, 22, 23+)(21, 21, 21, 28, 29+)
(9, 9, 9, 11, 12+)(13, 13, 13, 17, 18+)(17, 17, 17, 23, 24+)(21, 21, 21, 29, 30+)
(9, 11, 11, 12, 13+)(13, 15, 15, 18, 19+)(17, 19, 19, 24, 25+)(21, 23, 23, 30, 31+)
(9, 11, 11, 13, 14+)(13, 15, 15, 19, 20+)(17, 19, 19, 25, 26+)(21, 23, 23, 31, 32+)
(9, 13, 13, 14, 15+)(13, 17, 17, 20, 21+)(17, 21, 21, 26, 27+)(21, 25, 25, 32, 33+)
x 1 = 11 x 1 = 13 x 1 = 15 x 1 = 17
(11, 11, 13, 14, 15+)(13, 13, 17, 18, 19+)(15, 15, 21, 22, 23+)(17, 17, 25, 26, 27+)
(11, 11, 13, 15, 16+)(13, 13, 17, 19, 20+)(15, 15, 21, 23, 24+)(17, 17, 25, 27, 28+)
(11, 13, 15, 16, 17+)(13, 15, 19, 20, 21+)(15, 17, 23, 24, 25+)(17, 19, 27, 28, 29+)
(11, 13, 15, 17, 18+)(13, 15, 19, 21, 22+)(15, 17, 23, 25, 26+)(17, 19, 27, 29, 30+)
(11, 15, 17, 18, 19+)(13, 17, 21, 22, 23+)(15, 19, 25, 26, 27+)(17, 21, 29, 30, 31+)
x 1 = 15 x 1 = 17 x 1 = 19 x 1 = 21
(15, 15, 17, 20, 21+)(17, 17, 21, 24, 25+)(19, 19, 25, 28, 29+)(21, 21, 29, 32, 33+)
(15, 15, 17, 21, 22+)(17, 17, 21, 25, 26+)(19, 19, 25, 29, 30+)(21, 21, 29, 33, 34+)
(15, 17, 19, 22, 23+)(17, 19, 23, 26, 27+)(19, 21, 27, 30, 31+)(21, 23, 31, 34, 35+)
(15, 17, 19, 23, 24+)(17, 19, 23, 27, 28+)(19, 21, 27, 31, 32+)(21, 23, 31, 35, 36+)
(15, 19, 21, 24, 25+)(17, 21, 25, 28, 29+)(19, 23, 29, 32, 33+)(21, 25, 33, 36, 37+)

2.8. Odd x 1 9 with n = 6

The following families of exceptions were found:
x 1 = 9 x 1 = 11 x 1 = 13 x 1 = 15
(9, 9, 10, 10, 10, 11+)(11, 11, 14, 14, 14, 15+)(13, 13, 18, 18, 18, 19+)(15, 15, 22, 22, 22, 23+)
(9, 9, 11, 11, 11, 12+)(11, 11, 15, 15, 15, 16+)(13, 13, 19, 19, 19, 20+)(15, 15, 23, 23, 23, 24+)
(9, 11, 12, 12, 12, 13+)(11, 13, 16, 16, 16, 17+)(13, 15, 20, 20, 20, 21+)(15, 17, 24, 24, 24, 25+)
(9, 11, 13, 13, 13, 14+)(11, 13, 17, 17, 17, 18+)(13, 15, 21, 21, 21, 22+)(15, 17, 25, 25, 25, 26+)
(9, 13, 14, 14, 14, 15+)(11, 15, 18, 18, 18, 19+)(13, 17, 22, 22, 22, 23+)(15, 19, 26, 26, 26, 27+)
x 1 = 11 x 1 = 15 x 1 = 19 x 1 = 23
(11, 11, 11, 12, 12, 13+)(15, 15, 15, 18, 18, 19+)(19, 19, 19, 24, 24, 25+)(23, 23, 23, 30, 30, 31+)
(11, 11, 11, 13, 13, 14+)(15, 15, 15, 19, 19, 20+)(19, 19, 19, 25, 25, 26+)(23, 23, 23, 31, 31, 32+)
(11, 13, 13, 14, 14, 15+)(15, 17, 17, 20, 20, 21+)(19, 21, 21, 26, 27, 27+)(23, 25, 25, 32, 32, 33+)
(11, 13, 13, 15, 16, 16+)(15, 17, 17, 21, 21, 22+)(19, 21, 21, 27, 27, 28+)(23, 25, 25, 33, 33, 34+)
(11, 15, 15, 16, 16, 17+)(15, 19, 19, 22, 22, 22+)(19, 23, 23, 28, 29, 29+)(23, 27, 27, 34, 34, 35+)
x 1 = 15 x 1 = 17 x 1 = 19
(15, 15, 17, 17, 18, 19+)(17, 17, 21, 21, 22, 23+)(19, 19, 25, 25, 26, 27+)
(15, 15, 17, 17, 19, 20+)(17, 17, 21, 21, 23, 24+)(19, 19, 25, 25, 27, 28+)
(15, 17, 19, 19, 20, 21+)(17, 19, 23, 23, 24, 25+)(19, 21, 27, 27, 28, 29+)
(15, 17, 19, 19, 21, 22+)(17, 19, 23, 23, 25, 26+)(19, 21, 27, 27, 29, 30+)
(15, 19, 21, 21, 22, 23+)(17, 21, 25, 25, 26, 27+)(19, 23, 29, 29, 30, 31+)
x 1 = 13 x 1 = 15 x 1 = 17 x 1 = 19
(13, 13, 15, 16, 16, 17+)(15, 15, 19, 20, 20, 21+)(17, 17, 23, 24, 24, 25+)(19, 19, 27, 28, 28, 29+)
(13, 13, 15, 17, 17, 18+)(15, 15, 19, 21, 21, 22+)(17, 17, 23, 25, 25, 26+)(19, 19, 27, 29, 29, 30+)
(13, 15, 17, 18, 18, 19+)(15, 17, 21, 22, 22, 23+)(17, 19, 25, 26, 26, 27+)(19, 21, 29, 30, 30, 31+)
(13, 15, 17, 19, 19, 20+)(15, 17, 21, 23, 23, 24+)(17, 19, 25, 27, 28, 28+)(19, 21, 29, 31, 31, 32+)
(13, 17, 18, 20, 20, 21+)(15, 19, 21, 24, 24, 25+)(17, 21, 27, 28, 28, 29+)(19, 23, 31, 32, 32, 33+)
x 1 = 13 x 1 = 19 x 1 = 25
(13, 13, 13, 13, 14, 15+)(19, 19, 19, 19, 22, 23+)(25, 25, 25, 25, 30, 31+)
(13, 13, 13, 13, 15, 16+)(19, 19, 19, 19, 23, 24+)(25, 25, 25, 25, 31, 32+)
(13, 15, 15, 15, 16, 17+)(19, 21, 21, 21, 24, 25+)(25, 27, 27, 27, 32, 33+)
(13, 15, 15, 15, 17, 18+)(19, 21, 21, 21, 25, 26+)(25, 27, 27, 27, 33, 34+)
(13, 17, 17, 17, 18, 19+)(19, 23, 23, 23, 26, 27+)(25, 29, 29, 29, 34, 35+)
Note that the second and last families are defined only for x 1 = 4 m + 3 and x 1 = 6 m + 1 , respectively, where m 3 . This complicated pattern shows that it is hardly possible to combine all exceptions by a formula.

2.9. Odd x 1 3 with n = 1 2 ( x 1 + 1 ) + 2

For n 1 2 ( x 1 + 1 ) > 2 , no exceptions were found, while in the considered case, the exceptions are as follows. Given an integer i 0 , a position x = ( x 1 , , x n ) is an exception if and only if
x 1 + i = x 2 = = x n 1 < x n x m , i = 0 , 1 ,
Furthermore, the remoteness function is given by the formula R ( x ) = f ( x 1 + i + 1 ) , where function f was defined in Section 2.3.
Note that x 2 = = x n 1 and this number is even if and only if i is odd.
Examples for x 1 = 3 , 5 , 7 , 9 , 11 and, respectively, n = 4 , 5 , 6 , 7 , 8 are given below.
x 1 = 3 , n = 4 R x 1 = 5 , n = 5 R x 1 = 7 , n = 6 R
(3, 3, 3, 4+)5(5, 5, 5, 5, 6+)7(7, 7, 7, 7, 7, 8+)9
(3, 4, 4, 5+)5(5, 6, 6, 6, 7+)7(7, 8, 8, 8, 8, 9+)9
(3, 5, 5, 6+)7(5, 7, 7, 7, 8+)9(7, 9, 9, 9, 9, 10+)11
(3, 6, 6, 7+)7(5, 8, 8, 8, 9+)9(7, 10, 10, 10, 10, 11+)11
(3, 7 . , 7, 8+)9(5, 9, 9, 9, 10+)11(7, 11, 11, 11, 11, 12+)13
x 1 = 9 , n = 7 R x 1 = 11 , n = 8 R
(9, 9, 9, 9, 9, 9, 10+)11(11, 11, 11, 11, 11, 11, 11, 12+)13
(9, 10, 10, 10, 10, 10, 11+)11(11, 12, 12, 12, 12, 12, 12, 13+)13
(9, 11, 11, 11, 11, 11, 12+)13(11, 13, 13, 13, 13, 13, 13, 14+)15
(9, 12, 12, 12, 12, 12, 13+)13(11, 14, 14, 14, 14, 14, 14, 15+)15
(9, 13, 13, 13, 13, 13, 14+)15(11, 15, 15, 15, 15, 15, 15, 16+)17

2.10. Odd x 1 5 with n = 1 2 ( x 1 + 1 ) + 1

Given an integer i 0 , a position x = ( x 1 , , x n , , x m ) is an exception if and only if one of the following two cases holds:
x 1 , x 2 = x 1 + 2 i , x 3 = = x n 1 = x 2 + 1 < x n x m ,
x 1 , x 2 = x 1 + 2 i , x 3 = = x n 1 = x 2 + 2 < x n x m .
Furthermore, the remoteness function is given by formula R ( x ) = f ( x n ) , where function f is defined above. Again, it is easily seen that R ( x ) is odd for each i; hence, the first player wins in every exceptional position, but (s)he loses if (s)he follows the M-rule.
Finally, the unique optimal move in x is to keep x n when x n 1 is even and x n 1 when it is odd. In contrast, the unique M-move in x is to keep x n when x n 1 is odd and x n 1 when it is even. Thus, the sets of optimal moves and M-moves are disjoint in every exceptional position.
Note that x 3 = = x n 1 and this number is even if and only if i is odd.
Examples for x 1 = 5 , 7 , 9 , 11 , 13 and, respectively, n = 4 , 5 , 6 , 7 , 8 are given below.
x 1 = 5 , n = 4 R x 1 = 7 , n = 5 R x 1 = 9 , n = 6 R
(5, 5, 6, 7+)7(7, 7,8, 8, 9+)9(9, 9, 10, 10, 10, 11+)11
(5, 5, 7, 8+)9(7, 7, 9, 9, 10+)11(9, 9, 11, 11, 11, 12+)13
(5, 7, 8, 9+)9(7, 9, 10, 10, 11+)11(9, 11, 12, 12, 12, 13+)13
(5, 7, 9, 10+)11(7, 9, 11, 11, 12+)13(9, 11, 13, 13, 13, 14+)15
(5, 9, 10, 11+)11(7, 11, 12, 12, 13+)13(9, 13, 14, 14, 14, 15+)15
x 1 = 11 , n = 7 R x 1 = 13 , n = 8 R
(11, 11, 12, 12, 12, 12, 13+)13(13, 13, 14, 14, 14, 14, 14, 15+)15
(11, 11, 13, 13, 13, 13, 14+)15(13, 13, 15, 15, 15, 15, 15, 16+)17
(11, 13, 14, 14, 14, 14, 15+)15(13, 15, 16, 16, 16, 16, 16, 17+)17
(11, 13, 15, 15, 15, 15, 16+)17(13, 15, 17, 17, 17, 17, 17, 18+)19
(11, 15, 16, 16, 16, 16, 17+)17(13, 17, 18, 18, 18, 18, 18, 19+)19

2.11. Odd x 1 7 with n = 1 2 ( x 1 + 1 )

Given an integer i 0 , a position x = ( x 1 , , x n , , x m ) is an exception if and only if one of the following two cases holds:
x 1 , x 2 = x 1 + 2 i , x 3 = = x n 1 = x 2 + 3 < x n x m ,
x 1 , x 2 = x 1 + 2 i , x 3 = = x n 1 = x 2 + 4 < x n x m .
Interestingly, all further arguments can be copied from the previous subsection without any changes; however, we should remember that n is reduced by 1.
Examples for x 1 = 7 , 9 , 11 , 13 , 15 and, respectively, n = 4 , 5 , 6 , 7 , 8 follow.
x 1 = 7 , n = 4 R x 1 = 9 , n = 5 R x 1 = 11 , n = 6 R
(7, 7, 10, 11+)11(9, 9, 12, 12, 13+)13(11, 11, 14, 14, 14, 15+)15
(7, 7, 11, 12+)13(9, 9, 13, 13, 14+)15(11, 11, 15, 15, 15, 16+)17
(7, 9, 12, 13+)13(9, 11, 14, 14, 15+)15(11, 13, 16, 16, 16, 17+)17
(7, 9, 13, 14+)15(9, 11, 15, 15, 16+)17(11, 13, 17, 17, 17, 18+)19
(7, 11, 14, 15+)15(9, 13, 16, 16, 17+)17(11, 15, 18, 18, 18, 19+)19
x 1 = 13 , n = 7 R x 1 = 15 , n = 8 R
(13, 13, 16, 16, 16, 16, 17+)17(15, 15, 18, 18, 18, 18, 18, 19+)19
(13, 13, 17, 17, 17, 17, 18+)19(15, 15, 19, 19, 19, 19, 19, 20+)21
(13, 15, 18, 18, 18, 18, 19+)19(15, 17, 20, 20, 20, 20, 20, 21+)21
(13, 15, 19, 19, 19, 19, 20+)21(15, 17, 21, 21, 21, 21, 21, 22+)23
(13, 17, 20, 20, 20, 20, 21+)21(15, 19, 22, 22, 22, 22, 22, 23+)23
There exists another family of exceptions for x 1 9 with n = 1 2 ( x 1 + 1 ) .
x 1 , x 2 = x 3 = x 1 + 2 i , x 4 = = x n 1 = x 2 + 3 < x n x m ,
x 1 , x 2 = x 3 = x 1 + 2 i , x 4 = = x n 1 = x 2 + 4 < x n x m .
Examples for x 1 = 9 , 11 , 13 and, respectively, n = 5 , 6 , 7 follow.
x 1 = 9 , n = 5 R x 1 = 11 , n = 6 R x 1 = 13 , n = 7 R
(9, 9, 9, 10, 11+)11(11, 11, 11, 12, 12, 13+)13(13, 13, 13, 14, 14, 14, 15+)15
(9, 9, 9, 11, 12+)13(11, 11, 11, 13, 13, 14+)15(13, 13, 13, 15, 15, 15, 16+)17
(9, 11, 11, 12, 13+)13(11, 13, 13, 14, 14, 15+)15(13, 15, 15, 16, 16, 16, 17+)17
(9, 11, 11, 13, 14+)15(11, 13, 13, 15, 15, 16+)17(13, 15, 15, 17, 17, 17, 18+)19
(9, 13, 13, 14, 15+)15(11, 15, 15, 16, 16, 17+)17(13, 17, 17, 18, 18, 18, 19+)19

2.12. Odd x 1 9 with n = 1 2 ( x 1 + 1 ) 1

Exceptions for x 1 = 9 , 11 , 13 , 15 and, respectively, n = 4 , 5 , 6 , 7 follow:
x 1 = 9 , n = 4 R x 1 = 11 , n = 5 R x 1 = 13 , n = 6 R
(9, 9, 14, 15+)15(11, 11, 13, 14, 15+)15(13, 13, 13, 13, 14, 15+)15
(9, 9, 15, 16+)17(11, 11, 13, 15, 16+)17(13, 13, 13, 13, 15, 16+)17
(9, 11, 16, 17+)17(11, 13, 15, 16, 17+)17(13, 15, 15, 15, 16, 17+)17
(9, 11, 17, 18+)19(11, 13, 15, 17, 18+)19(13, 15, 15, 15, 17, 18+)19
(9, 13, 18, 19+)19(11, 15, 17, 18, 19+)19(13, 17, 17, 17, 18, 19+)19
x 1 = 13 , n = 6 R x 1 = 15 , n = 7 R
(13, 13, 15, 16, 16, 17+)17(15, 15, 15, 15, 16, 16, 17+)17
(13, 13, 15, 17, 17, 18+)19(15, 15, 15, 15, 17, 17, 18+)19
(13, 15, 17, 18, 18, 19+)19(15, 17, 17, 17, 18, 18, 19+)19
(13, 15, 17, 19, 19, 20+)21(15, 17, 17, 17, 19, 19, 20+)21
(13, 17, 19, 20, 20, 21+)21(15, 19, 19, 19, 20, 20, 21+)21

2.13. Odd x 1 11 with n = 1 2 ( x 1 + 1 ) 2

For n = ( x 1 + 1 ) / 2 2 , we obtained the following exceptions:
x 1 = 11 , n = 4 R x 1 = 13 , n = 5 R x 1 = 15 , n = 6
(11, 11, 18, 19+)19(13, 13, 20, 20, 21+)21(15, 15, 22, 22, 22, 23+)
(11, 11, 19, 20+)21(13, 13, 21, 21, 22+)23(15, 17, 23, 23, 23, 24+)
(11, 13, 20, 21+)21(13, 15, 22, 22, 23+)23(15, 17, 24, 24, 24, 25+)
(11, 13, 21, 22+)23(13, 15, 23, 23, 24+)25(15, 19, 25, 25, 25, 26+)
(11, 15, 22, 23+)23(13, 17, 24, 24, 25+)25(15, 19, 26, 26, 26, 27+)
In addition, the following exceptions were found:
x 1 = 13 , n = 5 R      x 1 = 15 , n = 6      x 1 = 17 , n = 7
(13, 13, 13, 16, 17+)17(15, 15, 23, 23, 23, 24+)(17, 17, 17, 17, 17, 18, 19+)
(13, 13, 13, 17, 18+)19(15, 17, 24, 24, 24, 25+)(17, 17, 17, 17, 17, 19, 20+)
(13, 15, 15, 18, 19+)19(15, 17, 25, 25, 25, 26+)
(13, 15, 15, 19, 20+)21(15, 19, 26, 26, 26, 27+)
(13, 17, 17, 20, 21+)21(15, 19, 27, 27, 27, 28+)

2.14. Odd x 1 13 with n = 1 2 ( x 1 + 1 ) 3

Exceptions for x 1 = 13 , 15 , 17 and, respectively, n = 4 , 5 , 6 follow:
x 1 = 13 , n = 4 x 1 = 15 , n = 5 x 1 = 17 , n = 6
(13, 13, 22, 23+)(15, 15, 24, 24, 25+)(17, 17, 26, 26, 26, 27+)
(13, 13, 23, 24+)(15, 15, 25, 25, 26+)(17, 17, 27, 27, 27, 28+)
(13, 15, 24, 25+)(15, 17, 26, 26, 27+)(17, 19, 28, 28, 28, 29+)
(13, 15, 25, 26+)(15, 17, 27, 27, 28+)(17, 19, 29, 29, 29, 30+)
(13, 17, 26, 27+)(15, 19, 28, 28, 29+)(17, 21, 30, 30, 30, 31+)

Author Contributions

Methodology, V.G.; Software, V.G., V.M., G.M. and M.N.; Writing—original draft, V.G. and M.N. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Data Availability Statement

The original contributions presented in the study are included in the article, further inquiries can be directed to the corresponding author.

Acknowledgments

This research was prepared within the framework of the HSE University Basic Research Program.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Albert, M.H.; Nowakowski, R.J.; Wolfe, D. Lessons in Play: An Introduction to Combinatorial Game Theory, 2nd ed.; A. K. Peters Ltd.: Wellesley, MA, USA, 2007. [Google Scholar]
  2. Berlekamp, E.R.; Conway, J.H.; Guy, R.K. Winning Ways for Your Mathematical Plays, 2nd ed.; A.K. Peters: Natick, MA, USA, 2001–2004; Volumes 1–4. [Google Scholar]
  3. Conway, J.H. On Numbers and Games; Academic Press: London, UK; New York, NY, USA; San Francisco, CA, USA, 1976. [Google Scholar]
  4. Siegel, A.N. Combinatorial Game Theory; American Mathematical Society: Providence, RI, USA, 2023; Volume 146. [Google Scholar]
  5. Gurvich, V.; Martynov, D.; Maximchuk, V.; Vyalyi, M. On remoteness functions of exact slow k-NIM with k + 1 piles. Integers 2024, #G1. [Google Scholar] [CrossRef]
  6. Gurvich, V.; Ho, N.B. Slow k-Nim. RUTCOR Res. Rep. 2015, 3, 5777. [Google Scholar] [CrossRef]
  7. Gurvich, V.; Heubach, S.; Ho, N.B.; Chikin, N. Slow k-nim. Integers 2020, 20, #G3. [Google Scholar]
  8. Chikin, N.; Gurvich, V.; Knop, K.; Paterson, M.; Vyalyi, M. More about exact slow k-nim. Integers 2021, 21, #G4. [Google Scholar]
  9. Gurvich, V.; Naumova, M. Screw Discrete Dynamical Systems and their Applications to Exact Slow NIM. Discrete Appl. Math. 2024, 358, 382–394. [Google Scholar] [CrossRef]
  10. Smith, C.A.B. Graphs and composite games. J. Comb. Theory 1966, 1, 51–81. [Google Scholar] [CrossRef]
  11. Moore, E.H. A generalization of the game called Nim. Ann. Math. 1910, 11, 93–94. [Google Scholar] [CrossRef]
  12. Bouton, C.L. Nim, a Game with a Complete Mathematical Theory. Ann. Math. 1901–1902, 3, 35–39. [Google Scholar] [CrossRef]
  13. Sprague, R. Über mathematische Kampfspiele. Tohoku Math. J. 1936, 41, 438–444. [Google Scholar]
  14. Grundy, P.M. Mathematics of games. Eureka 1939, 2, 6–8. [Google Scholar]
  15. von Neumann, J.; Morgenstern, O. Theory of Games and Economic Behavior; Princeton University Press: Princeton, NJ, USA, 1944. [Google Scholar]
  16. Grundy, P.M.; Smith, C.A.B. Disjunctive games with the last player losing. Math. Proc. Camb. Philos. Soc. 1956, 52, 527–533. [Google Scholar] [CrossRef]
  17. Jenkyns, T.A.; Mayberry, J.P. The skeletion of an impartial game and the nim-function of Moore’s nimk. Int. J. Game Theory 1980, 9, 51–63. [Google Scholar] [CrossRef]
  18. Boros, E.; Gurvich, V.; Ho, N.B.; Makino, K.; Mursič, P. Sprague–Grundy function of matroids and related hypergraphs. Theor. Comput. Sci. 2019, 799, 40–58. [Google Scholar] [CrossRef]
  19. Boros, E.; Gurvich, V.; Makino, K.; Vyalyi, M. Computing Remoteness Functions of Moore, Wythoff, and Euclid’s Games. Int. J. Game Theory 2023, 22, 02685. [Google Scholar] [CrossRef]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Gurvich, V.; Maximchuk, V.; Miheenkov, G.; Naumova, M. On Remoteness Functions of k-NIM with k + 1 Piles in Normal and in Misère Versions. Games 2024, 15, 37. https://doi.org/10.3390/g15060037

AMA Style

Gurvich V, Maximchuk V, Miheenkov G, Naumova M. On Remoteness Functions of k-NIM with k + 1 Piles in Normal and in Misère Versions. Games. 2024; 15(6):37. https://doi.org/10.3390/g15060037

Chicago/Turabian Style

Gurvich, Vladimir, Vladislav Maximchuk, Georgy Miheenkov, and Mariya Naumova. 2024. "On Remoteness Functions of k-NIM with k + 1 Piles in Normal and in Misère Versions" Games 15, no. 6: 37. https://doi.org/10.3390/g15060037

APA Style

Gurvich, V., Maximchuk, V., Miheenkov, G., & Naumova, M. (2024). On Remoteness Functions of k-NIM with k + 1 Piles in Normal and in Misère Versions. Games, 15(6), 37. https://doi.org/10.3390/g15060037

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop