Another bridge between Nim and Wythoff

Similar documents
Geometrical extensions of Wythoff s game

arxiv: v2 [math.co] 23 Mar 2012

Games Played by Boole and Galois

THE RALEIGH GAME. Received: 1/6/06, Accepted: 6/25/06. Abstract

NEW GAMES RELATED TO OLD AND NEW SEQUENCES

Theorem 1. Every P -position of the game can be written in the form (T n ; m 1 ; : : : ; m k?1 ), where the (k? 1)-tuples (m 1 ; : : : ; m k?1 ) range

arxiv: v2 [math.co] 9 Aug 2011

Aperiodic Subtraction Games

Algebraic Structure in a Family of Nim-like Arrays

arxiv: v1 [math.co] 27 Aug 2015

Games derived from a generalized Thue-Morse word

On the longest path in a recursively partitionable graph

INVARIANT AND DUAL SUBTRACTION GAMES RESOLVING THE DUCHÊNE-RIGO CONJECTURE.

Martin Gardner and Wythoff s Game

Hook lengths and shifted parts of partitions

A new simple recursive algorithm for finding prime numbers using Rosser s theorem

A misère-play -operator

The Accelerated Euclidean Algorithm

Sprague-Grundy Values of the R-Wythoff Game

Cutwidth and degeneracy of graphs

There are infinitely many twin primes 30n+11 and 30n+13, 30n+17 and 30n+19, 30n+29 and 30n+31

D. G. Horrocks 1 Department of Mathematics and Computer Science, University of Prince Edward Island, Charlottetown, PE C1A 4P3, Canada

#G2 INTEGERS 12 (2012) A GENERALIZED DIAGONAL WYTHOFF NIM

Algebraic Structure in a Family of Nim-like Arrays

b-chromatic number of cacti

On infinite permutations

On Newton-Raphson iteration for multiplicative inverses modulo prime powers

On path partitions of the divisor graph

Poset-Game Periodicity

On Symmetric Norm Inequalities And Hermitian Block-Matrices

arxiv: v2 [math.co] 15 Feb 2017

Easter bracelets for years

Exact Comparison of Quadratic Irrationals

A note on the computation of the fraction of smallest denominator in between two irreducible fractions

Smart Bolometer: Toward Monolithic Bolometer with Smart Functions

Axiom of infinity and construction of N

The Windy Postman Problem on Series-Parallel Graphs

Self-dual skew codes and factorization of skew polynomials

A Simple Proof of P versus NP

Efficient Subquadratic Space Complexity Binary Polynomial Multipliers Based On Block Recombination

Theoretical Computer Science

Stickelberger s congruences for absolute norms of relative discriminants

The core of voting games: a partition approach

Methylation-associated PHOX2B gene silencing is a rare event in human neuroblastoma.

Analysis of Boyer and Moore s MJRTY algorithm

Chebyshev polynomials, quadratic surds and a variation of Pascal s triangle

A Context free language associated with interval maps

Numerical Exploration of the Compacted Associated Stirling Numbers

On size, radius and minimum degree

DYNAMICAL PROPERTIES OF MONOTONE DENDRITE MAPS

A four parametric generalization of the Wythoff NIM and its recursive solution

The Mahler measure of trinomials of height 1

Completeness of the Tree System for Propositional Classical Logic

All Associated Stirling Numbers are Arithmetical Triangles

OPTION-CLOSED GAMES RICHARD J. NOWAKOWSKI AND PAUL OTTAWAY

Slow k-nim. Vladimir Gurvich a

Fixed point theorems for Boolean networks expressed in terms of forbidden subnetworks

Periodicity and Other Structure in a Colorful Family of Nim-like Arrays

Solution to Sylvester equation associated to linear descriptor systems

Full-order observers for linear systems with unknown inputs

A new approach of the concept of prime number

Avalanche Polynomials of some Families of Graphs

Paths with two blocks in n-chromatic digraphs

Question order experimental constraints on quantum-like models of judgement

On Symmetric Norm Inequalities And Hermitian Block-Matrices

Negative results on acyclic improper colorings

Abstract. We dene the family of locally path-bounded digraphs, which is a

On The Exact Solution of Newell-Whitehead-Segel Equation Using the Homotopy Perturbation Method

Can we reduce health inequalities? An analysis of the English strategy ( )

approximation results for the Traveling Salesman and related Problems

#G03 INTEGERS 10 (2010), MIN, A COMBINATORIAL GAME HAVING A CONNECTION WITH PRIME NUMBERS

BERGE VAISMAN AND NASH EQUILIBRIA: TRANSFORMATION OF GAMES

Case report on the article Water nanoelectrolysis: A simple model, Journal of Applied Physics (2017) 122,

BEATTY SEQUENCES AND WYTHOFF SEQUENCES, GENERALIZED

Hypertree-Width and Related Hypergraph Invariants

Lower bound of the covering radius of binary irreducible Goppa codes

FORMAL TREATMENT OF RADIATION FIELD FLUCTUATIONS IN VACUUM

Norm Inequalities of Positive Semi-Definite Matrices

A note on the acyclic 3-choosability of some planar graphs

Widely Linear Estimation with Complex Data

Multiple sensor fault detection in heat exchanger system

L institution sportive : rêve et illusion

Differential approximation results for the Steiner tree problem

On a series of Ramanujan

On the Griesmer bound for nonlinear codes

Some Generalized Euclidean and 2-stage Euclidean number fields that are not norm-euclidean

Notes on Birkhoff-von Neumann decomposition of doubly stochastic matrices

On additive decompositions of the set of primitive roots modulo p

Vibro-acoustic simulation of a car window

Passerelle entre les arts : la sculpture sonore

Unbiased minimum variance estimation for systems with unknown exogenous inputs

IMPROVEMENTS ON CHOMP. Xinyu Sun Department of Mathematics, Temple University, Philadelphia, PA 19122, USA.

The FLRW cosmological model revisited: relation of the local time with th e local curvature and consequences on the Heisenberg uncertainty principle

Soundness of the System of Semantic Trees for Classical Logic based on Fitting and Smullyan

A Slice Based 3-D Schur-Cohn Stability Criterion

Some tight polynomial-exponential lower bounds for an exponential function

Finite volume method for nonlinear transmission problems

A non-commutative algorithm for multiplying (7 7) matrices using 250 multiplications

On sl3 KZ equations and W3 null-vector equations

From Unstructured 3D Point Clouds to Structured Knowledge - A Semantics Approach

Transcription:

Another bridge between Nim and Wythoff Eric Duchene, Aviezri Fraenkel, Sylvain Gravier, Richard J. Nowakowski To cite this version: Eric Duchene, Aviezri Fraenkel, Sylvain Gravier, Richard J. Nowakowski. Another bridge between Nim and Wythoff. The Australasian Journal of Combinatorics, Combinatorial Mathematics Society of Australasia (Inc.), 9,, pp.-6. <hal-8> HAL Id: hal-8 https://hal.archives-ouvertes.fr/hal-8 Submitted on 8 Jul 9 HAL is a multi-disciplinary open access archive for the deposit and dissemination of scientific research documents, whether they are published or not. The documents may come from teaching and research institutions in France or abroad, or from public or private research centers. L archive ouverte pluridisciplinaire HAL, est destinée au dépôt et à la diffusion de documents scientifiques de niveau recherche, publiés ou non, émanant des établissements d enseignement et de recherche français ou étrangers, des laboratoires publics ou privés.

Another bridge between Nim and Wythoff E. Duchêne, ERTé Maths à modeler, University of Liège, Belgium A. S. Fraenkel, Dept. of Computer Science and Applied Mathematics, Weizmann Institute of Science, Rehovot 76, Israel S. Gravier, ERTé Maths à modeler, Institut Fourier, Grenoble, France R. J. Nowakowski Dept of Mathematics, Dalhousie University, Halifax, Canada Abstract The P positions of both two-heap Nim and Wythoff s game are easy to describe, more so in the former than in the latter. Calculating the actual G values is easy for Nim but seemingly hard for Wythoff s game. We consider what happens when the rules for removing from both heaps are modfied in various ways. Key words: Nim, Wythoff s game, Sprague-Grundy function, impartial combinatorial game. AMS subject classification: 9A6 Abbreviated Title: Another Bridge between Nim and Wythoff. Introduction In the game of Nim, played on two heaps of tokens, the two players alternate in choosing a heap and removing any positive number of tokens from that heap. Wythoff s game is also played with two heaps, as in Nim, a player may remove any positive number from a single heap or the same positive number from both heaps, subject to the proviso that every heap remains of nonnegative size at all times. For both games, and in all other games considered in the sequel, the player first unable to move loses.

Definition For a position v of an impartial game, let Op(v) be the set of the options of v. That is Op(v) is the set of all the positions that can be reached from v in one move. Definition A P position is one in which the next player has no winning move and in an N position, the next player does have a winning move. In Wythoff and in nim, the position in which both heaps are empty is a P position and any position that has a move to a P position is an N position. Every move from a P position leads to an N position. Let U Z, U Z. The Minimum EXcluded value of U, denotd by Mex(U), is the smallest nonnegative integer not in U. In particular, Mex( ) =. The P and N classsification of positons can be refined. To each game position v of an impartial game we associate a nonnegative integer value G(v), called the G-value of v. This function G is called the Sprague-Grundy function. It can be defined recursively as follows: G(v) = Mex({G(u) : u Op(v)}). It is well-known that the s of the Grundy function constitute the P positions of a game. (See e.g. [,, ] for more information on the G- function.) Note that this function exists uniquely for any finite impartial acyclic game. In an acyclic game, each game position is reached at most once. Definition Given two positive integers a and b, a mod b denotes the smallest non-negative remainder of the division of a by b. Definition We denote the nim-sum of a and b by a b, that is, addition in binary without carries. (Also known as XOR or addition over GF() of a and b.) In two heap Nim, the G-value of (a, b) is a b and is a P position precisely when a = b. In Wythoff s game, the P positions are ( nτ, nτ ), where τ = ( + )/ is the golden ratio. The non-zero G-values appear to be difficult to calculate (cf. [, 6]), however they exhibit additive periodicity. See [6]. A much simplified proof is given in []. In the literature, several variations of Wythoff s game were investigated, some concerning its P positions, others its Sprague-Grundy function. The variations can be subdivided mainly into two categories: (i) extensions,

i.e., adjoining new rules to those of Wythoff, and (ii), restrictions, where only certain subsets of Wythoff s moves are permitted. Most investigations concern (i). Examples are [7], where the diagonal move (taking from both piles) is relaxed to taking k > from one pile, l > from the other, subject to k l < a, where a is a fixed positive integer parameter. In [8], this rule is further extended to permit diagonal moves of the form k l < (s )k + t, k Z, where s, t Z are fixed parameters. See also [, 9, ]. Still other extensions are generalizations to more than piles [], [8], [7]. Examples of (ii) are [], where m piles are considered to be components of a vector, and removals can be made only from the first and the last end piles of the vector. In [], the diagonal moves of Wythoff are restricted in certain ways. In [] the moves from a single pile are restricted, and the diagonal moves are both restricted and extended! In this paper, we define a new variation of Wythoff s game called W yt K. The rules are more restrictive than in classical Wythoff s game but are in the same spirit as [], which appears to constitute the first bridge between Nim and Wythoff s game. In [], the authors deal with games where the diagonal move (i.e., taking k > from one pile and l > from the other) is subject to a relation R(k, l). Such games are called Nimhoff games. Wythoff s game is Nimhoff s game where R(k, k) for all k >, whereas Nim is the game where no pair (k, l) satisfies R. The main objective there is to a find a closed formula for the G-values of Nimhoff games, for some particular relations R. The family of cyclic Nimhoff games is widely studied in []. This family contains games of the type R(k, l) if < k+l < h, where h is a fixed positive integer. In addition to these results, the cases R(, ) and R(k, k) for all k being a power of are investigated. A generalized Nim sum is provided to ensure the polynomiality of the G- function of such games. In the present paper, the games W yt K that we investigate are exactly the subset of Nimhoff games corresponding to restrictions of Wythoff s game. Unlike the previous paper, we here focus on the regularity of G- functions (defined in Sect. ). The set W yt K is an illustration of games having a certain regular G-function that we call p-nim regular. For that purpose, the games R(, ) and R( q, q ) of [] are also considered here as instances of W yt K having such a regular G-function. Besides, we deal with the conditions for which a game does or does not have a p-nim regular G-function. Definition Let K be a subset of the positive integers. The game Wyt K is

played with two heaps of tokens and Op(a, b) = {(a i, b) : < i a} {(a, b j) : < j b} {(a k, b k) : < k min{a, b}, k K}. That is, for a given K, Wyt K is Wythoff s Nim but with a restricted set K of moves along the diagonal. Specifically, we focus on the following questions:. What are the P positions for Wyt K?. For any non-negative integer j, is there an a j such that (a j, a j + j) is a P position?. What are the G-values and do they exhibit any regularity? The interest in the first question is clear. The second is an indication of how close the game is to Wythoff s game. The third is clear but needs a little explanation. Subtraction games have periodic Sprague-Grundy functions; many infinite octal games (including one-heap nim) have arithmetic periodic Sprague-Grundy functions. As noted, the rows of the Sprague- Grundy function of Wythoff s game are ultimately additive periodic [6], []. For many other games, when a player is analyzing a new game, hand calculations are usually tried first, varying the value of just one or two heaps, say of size k, and calculating the corresponding Sprague-Grundy function, call it G(k), Even though, initially, this sequence can hold the promise of regularity, the appearance of values k where G(k ) k is a typical indicator of impending chaos. This is the motivation behind our definition of nim-regularity in section, where we give an automatic test (one suitable for computers) for checking for this regularity. This test forms the basis for our positive results, but it also leads, later on, to conditions where games do not have any of the aforementioned periodicities, though it may have other regularities. This negative result does not appear (explicitly) in [,, ]. In section we show that when K = {k}, the P positions of Wyt K are nim-regular. For k even, this is (essentially) Lemma of []. We complete the picture for k odd in this section. In section we consider the case where K contains only powers of. In. we handle the case K = {}, followed by stating, in the present language, the case K = { k } for fixed k >, already given in []. We then state and prove the negative result alluded to earlier. In section.

we deal with the case where K is an infinite set of powers of. The case K = {, i, i I Z }, turns out to be equivalent to the game where K = {}. In that case, we show a surprising regularity of the G-values modulo. We wrap up with a brief final section. Closed p-nim Regularity Check Our basic definitions are the following. Definition 6 Let A be a doubly, semi-infinite matrix and A p be the finite matrix consisting of the first p rows and first p columns of A. The matrix A is called p-nim-regular if A(a, b) = p ( a p b p ) + A p (a mod p, b mod p) for a, b Z ; if, in addition, each row and each column of A p contains all the integers through p then A is called closed p-nim-regular. A game whose G-values constitute a (closed) p-nim-regular matrix, is said to be a (closed) p-nim-regular game. Figure illustrates this definition with p =. Roughly speaking, one can say that a p-nim-regular matrix is obtained by tiling the quarter-plane with copies of A p scaled according to the Nim matrix. a [b/p] b 6 7 8 9 6 6 7 8 9 6 [a/p] 6 7 8 9 6 7 7 6 6 7 7 6 8 9 9 8 9 8 7 6 6 7 7 6 8 9 8 8 9 9 8 9 8 8 9 6 7 7 6 6 7 7 6 8 9 6 7 9 8 7 9 8 8 9 9 6 7 8 9 8 7 6 9 A (p) K Figure : The first G-values of Wyt K when K = {}: an example of a closed -nim-regular matrix

Notation For a given Wyt K and p Z, denote by A K (p) a p p matrix where A K (p)(i, j) = G(i, j), i.e. the (i, j) entry of A K (p) is the G-value of the position with heaps of size i and j, for all i, j < p. Note that if A is a closed p-nim-regular matrix, then in the matrix A k p, every row and column contains all the values through k p ; i.e., this matrix is a latin square. Theorem of [] shows that the following game is p-nim-regular: given heaps and allowing the subtraction of a i from heap i, i where a +a < p. Here, Theorem notes that not all Wyt K with K = are closed p-nimregular. We present an automatic check for closed p-nim-regularity for any finite set K. Lemma Let K Z be a finite set and A be the matrix with entries G(a, b). If there is a positive integer p > max K such that (i) each row and each column of A K (p) contains all the integers through p ; and (ii) G(a + p k, b + p k) G(a, b) for a + p k, b + p k < p, a, b < p and k K, then A is closed p-nim regular. Figure above shows the first few G-values of Wyt K for K = {}. In that case, the value p = makes A K (p) satisfy both conditions of Lemma. Proof: Assume there exists some p > max K satisfying both conditions (i) and (ii). Now, let (M n ) be the following sequence of matrices: [ M M n = n M n + n ] p M n + n p for all n. Set M = A K (p). M n We will now prove four properties about the sequence (M n ):. M n = A K ( n p).. M n (a, b) = p( a p b p )+A K(p)(a mod p, b mod p) for a, b < n p. 6

. Each row and each column of M n contains all the integers through n p.. M n (a + n p k, b + n p k) M n (a, b) for a + n p k, b + n p k < n p, a, b < n p and k K. One can check that these properties are true for M = A K (p). Now suppose that they are true for some matrix M n with n, and consider the matrix M n.. We will prove that M n = A K ( n p). Let a, b < n p. By the induction hypothesis, we have G(a, b) = M n (a, b) = M n (a, b). Now consider the position (a, b + n p). According to the rules of the game, we have G(a, b + n p) = mex({g(a i, b + n p) : < i a} {G(a, b + n p j) : < j b + n p} {G(a k, b + n p k) : < k a, k K}). One may assume inductively that G(s, t) = M n (s, t) for all the pairs (s, t) (a, b + n p) satisfying s a and t b + n p. With this hypothesis and by construction of M n, we have {G(a i, b + n p) : < i a} = {G(a i, b) + n p : < i a}. Similarly and {G(a, b + n p j) : < j b + n p} = {G(a, b + n p j) : < j b} {G(a, b + n p j) : b < j b + n p} = {G(a, b j) + n p : < j b} {,,,..., n p } {G(a k, b + n p k) : < k a, k K} = {G(a k, b + n p k) : < k a, b, k K} {G(a k, b + n p k) : b < k a, k K} = {G(a k, b k) + n p : < k a, b, k K} {G(a k, b + n p k) : b < k a, k K}. 7

Since {G(a k, b + n p k) : b < k a, k K} {,,,..., n p }, we have that G(a, b + n p) = mex({g(op(a, b)) + n p} {,,,..., n p }) = G(a, b) + n p. Now consider the position (a + n p, b + n p). Then G(a + n p, b + n p) = mex({g(a + n p i, b + n p) : < i a + n p} {G(a + n p, b + n p j) : < j b + n p} {G(a + n p k, b + n p k) : < k min(a + n p, b + n p), k K}). As previously, suppose that G(s, t) = M n (s, t) for all the pairs (s, t) (a+ n p, b+ n p) satisfying s a+ n p and t b+ n p. Then we have: {G(a + n p i, b + n p) : < i a + n p} = {G(a i, b) : < i a} { n p,..., n p } {G(a + n p, b + n p j) : < j b + n p} = {G(a, b j) : < j b} { n p,..., n p } {G(a + n p k, b + n p k) : < k min(a + n p, b + n p), k K} Hence = {G(a k, b k) : < k min(a, b), k K} {G(a + n p k, b + n p k) : k > min(a, b), k K}. G(a + n p, b + n p) = mex({g(op(a, b)} { n p,..., n p } {G(a + n p k, b + n p k) : k > min(a, b), k K}). We already know that G(a, b) / { n p,..., n p }, since G(a, b) M n. Moreover, G(a, b) / {G(a+ n p k, b+ n p k) : k > min(a, b), k K}. Indeed, if a + n p k n p or b + n p k n p, then 8

G(a + n p k, b + n p k) n p > G(a, b). Otherwise, if a+ n p k < n p and b+ n p k < n p, it is true since M n satisfies Property (). Therefore, we conclude that G(a + n p, b + n p) = G(a, b).. Let a, b < n p. We will prove that the formula M n (a, b) = p( a/p b/p ) + A K (p)(a mod p, b mod p) is satisfied. If a, b < n p, then it is true by induction. If n p a, b < n p, then by construction of M n, we have M n (a, b) = M n (a n p, b n p). (A) By the induction hypothesis, we expand (A): M n (a, b) = M n (a n p, b n p) = p( a/p n b/p n ) + A K (a mod p, b mod p) = p( a/p b/p ) + A K (a mod p, b mod p). If a n p and b < n p, then by construction: M n (a, b) = M n (a n p, b) + n p. (B) By the induction hypothesis, we know that M n (a n p, b) = p( a/p n b/p ) + A K (a mod p, b mod p). Finally, since a n p and b < n p, and according to the properties of the nim-sum, we get from (B) M n (a, b) = n p + p( a/p n b/p ) + A K (a mod p, b mod p) = p( a/p b/p ) + A K (a mod p, b mod p). If b n p and a < n p, then we reduce to the previous case by symmetry.. By construction of M n from M n, and since M n satisfies property () by the induction hypothesis, one can easily check that each row and each column of M n contains all the integers through n p. 9

. We will show that M n (a + n p k, b + n p k) M n (a, b) for a + n p k, b + n p k < n p, a, b < n p and k K. The condition a + n p k, b + n p k < n p implies a, b < k. And since k < p, we now consider that a, b < p. We now define two integers A and B such that: A = a + ( n )p B = b + ( n )p. By the formula proved in (), we have M n (a, b) = M n (A, B). Let (X, Y ) be a position defined as follows: X = a + n p k Y = b + n p k. Thus M n (X, Y ) = M n (A + p k, B + p k) = M n (a + p k, b + p k) according to the formula. It now suffices to prove that M n (a + p k, b + p k) M n (a, b). Since a + n p k, b + n p k < n p, we have a k + p, b k + p < p, which means that the positions (a, b) and (a + p k, b + p k) both belong to the square [,..., p ] [,..., p ]. As A K (p) satisifes condition (ii), we deduce that M n (a + p k, b + p k) M n (a, b). P positions Theorem Let K = {k}. Then in Wyt K,. For k = j, the P positions are (i + kp, i + kp), i =,,..., k, p Z and (k +i+kp, k +i+kp+), i =,,..., j, p Z.. For k = j +, the P positions are (i + (k + )p, i + (k + )p), i =,,..., k, p Z and (k+i+(k+)p, k+i+(k+)p+), i =,,..., j, p Z. Proof: Denote by S Z the set of positions described by the theorem. Denote by A the set Z \ S. We must prove that any move from S lands in a

position of A, and that from any position of A, there exists a move leading to a position of S. For any subset T of Z, denote by T x the set {(i, j) T : i, j < x}. Denote by B the value k (resp. k + ) if k is even (resp. odd). Figure depicts the set S, which is the diagonal concatenation, modulo B, of the pattern S B. k k or k+ B B k or k+ k B B Figure : A view of the structure S. We first remark that there is exactly one position of S in each row and in each column. It is then straightforward to see that it is not possible to move from a position of S B to another one. Besides, from each position of A B, one can move to a position of S B. Therefore, from any position of the sets {(i, j) : i B, j < B} and {(i, j) : j B, i < B}, one can reach a position of S B. Now consider a position of S {(i, j) : B i, j < B}. Moves in a single heap clearly land in A. A move of length k in both heaps may

land in Z B, but not in S B (see figure ). Also, from any position of A {(i, j) : B i, B j < B B j, B i < B}, one can move to a position of S {(i, j) : B i, j < B}. It now suffices to iterate the result for the sets S {(i, j) : pb i, j < (p + )B} and A {(i, j) : (pb i, pb j < (p + )B) or (pb j, pb i < (p + )B)}, with p >. Remark When K = {k}, this result ensures that the only integers j for which there exists an a j such that (a j, a j + j) is a P position are and. This remark leads us to the following conjecture: Conjecture Let K be a finite set, then there exists an integer J K > such that if (a, b) is a P position for Wyt K then a b < J K. G-Values. K is finite Theorem Let K = {}. Then in Wyt K G(m + i, n + j) = (m n) + A K ()(i, j), i, j <, m, n Z where, A K () =. Figure illustrates this result by depicting the table of the first G-values. Proof: One can check that A K () contains the first G-values of the game Wyt K with K = {}. With p = > max K, it is now straightforward to see that the conditions of Lemma are satisfied. For completeness, we report the cases where K = { j } since the language used in [] does not immediately lend itself to this interpretation. Theorem Let K = { k } for fixed k >. Then in Wyt K G( k+ m + i, k+ n + j) = k+ (m n) + A K ( k+ )(i, j), and, as a array of matrices, i, j < k+, m, n Z

m n j i 6 7 8 9 6 7 8 9 7 8 6 9 8 6 7 9 9 6 7 8 9 7 8 6 6 9 8 6 7 7 6 7 6 7 8 7 8 6 9 9 8 9 Figure : The first G-values of Wyt K for K = {}. A K ( k+ ) = [ A K ( k ) A K ( k ) k ] A K ( k ) k A K ( k, ) where A K ( k ) is the k k matrix of the G-values of Nim with two heaps of sizes lower than k. As an illustration of that case with k =, one can refer to Figure. Theorem Let K = {k : k q k + q Z } (for any integer q > ). Then there is no p such that A K (p) satisfies Lemma, condition (i), i.e. Wyt K is not closed p-nim-regular for any p. Proof: We suppose that such a p exists. First, let K = {j}, j q. From Theorem, the P-positions repeat with period j, consequently, then p would be also be a multiple of j. There exists an i such that i < j and with the property that i j = i + j. Moreover, since j is not a power of then i+ < j also holds and there is no diagonal move available from ( i+, j ). Hence the G-value of the position is i+ j this is -heap nim. Then we have i+ j = i+ + j j. Therefore, since A K (j) contains a number greater than j not every row and column can contain all the numbers through j. For K = {j + }, the argument is similar. From Theorem, p would be a multiple of j +. Since j + is not a power of then there exists i j +, < i < j + so that i j + = i + j +. Therefore,

i+ j + = i+ + j + > j +. The position ( i+, j + ) has a G-value equal to i+ j +. Therefore, since A K (j + ) contains a number greater than j + not every row and column can contain all the numbers through j +.. K is an infinite set of powers of When K is a subset of the powers of two including, we show that the G-values of Wyt K are those described by Theorem (see Figure ). Theorem 6 Let K = {, i : i I Z }. Then in Wyt K, G(m+i, n+j) = (m n)+a K ()(i, j), i, j <, m, n Z, where A K () is as defined in Theorem. Proof: Denote by G (a, b) the G-value of the position (a, b) for Wyt K with K = {}. The function G is described in Theorem. We aim at proving that G and G for Wyt K where K = {, i : i I Z } are identical. Since the moves of Wyt K with K = {} are included in those of Wyt K with K = {, i : i I Z }, it suffices to check that G (a, b) G (a k, b k) for all k in { i : i I Z }. Suppose that there exists a position (a, b) and an integer k = i, i such that G (a, b) = G (a k, b k). Then we also have G (a, b) mod = G (a k, b k) mod. According to Theorem, we can assert that G (x, y) mod = A K ()(x mod, y mod ) for any position (x, y). This implies that A K ()(a mod, b mod ) = A K ()((a k) mod, (b k) mod ). When looking at the matrix A K (), we notice that each value,, appears exactly once in each diagonal (fig. ). Therefore, A K ()(a mod, b mod ) = A K ()((a k) mod, (b k) mod ) if and only if a mod = (a k) mod and b mod = (b k) mod. These equalities now imply k mod =, which is impossible since k is a power of. Remark From Theorem 6, one can see that in Wyt K with K = { i : i }, we have G(m+i, n+j) = (m n)+a K ()(i, j), i, j <, m, n Z. Conjecture Let K = { i : i > }. Then for all non-negative integers j, there is an a j such that (a j, a j + j) is a P position.

Figure : The three diagonals of A K () modulo Concluding remarks As we pointed out in the Introduction, this work is about restrictions of Wythoff s game. Most previous papers about Wythoff concerned extensions thereof. The Wythoff variation defined in [] contains both a restriction and an extension. It depends on two given positive integer parameters a, b: (i) Remove a positive multiple of b tokens from a single pile (restriction), or (ii) remove k >, l > tokens from the piles, subject to the constraints k l (mod b) (restriction), k l < ab (extension). Other games that are both an extension and a restriction of Wythoff are suggested by the present paper. For example, let a Z, K Z. The diagonal move is extended as follows: take k > from one pile and l > from the other subject to k l < a (extension see [7]) and k K (restriction). The extension [8] can be restricted similarly. (Although in [] there are m piles, this is not a genuine extension, since all moves are restricted to taking from at most piles.) References [] E.R. Berlekamp, J.H. Conway and R.K. Guy, Winning Ways for Your Mathematical Plays (in volumes), nd edition, A K Peters, Wellesley, MA(-). [] U. Blass and A.S. Fraenkel, The Sprague-Grundy function for Wythoff s game, Theor. Comput. Sci. 7 (99), -. [] Blass, U.; Fraenkel, A. S. & Guelman, R., How far can Nim in diguise be stretched? J. Combin. Theory (Ser. A) 8 (998), -6

[] I.G. Connell, A generalization of Wythoff s game, Canad. Math. Bull. (99), 8-9. [] J.H. Conway, On Numbers and Games, nd edition, A K Peters, Wellesley, MA,. [6] A. Dress, A. Flammenkamp and N. Pink, Additive periodicity of the Sprague-Grundy function of certain Nim games, Adv. in Appl. Math. (999), 9 7. [7] A.S. Fraenkel, How to beat your Wythoff games opponent on three fronts, Amer. Math. Monthly 89 (98), -6. [8] A.S. Fraenkel, Heap games, numeration systems and sequences, Annals of Combinatorics (998), 97-. [9] A.S. Fraenkel, Euclid and Wythoff games, Discrete Math. (), 6 68. [] A.S. Fraenkel and I. Borosh, A generalization of Wythoff s game, J. Combin. Theory (Ser. A) (97), 7 9. [] A.S. Fraenkel and D. Krieger, The structure of complementary sets of integers: a -shift theorem, Internat. J. Pure and Appl. Math. (), -9. [] A.S. Fraenkel and M. Lorberbom, Nimhoff games, J. Combin. Theory (Ser. A) 8 (99), -. [] A.S. Fraenkel and E. Reisner, The game of End-Wythoff, to appear in Games of No Chance III. [] A.S. Fraenkel and Y. Yesha, The generalized Sprague-Grundy function and its invariance under certain mappings, J. Combin. Theory (Ser. A) (986), 6-77. [] H. Landman, A simple FSM-based proof of the additive periodicity of the Sprague-Grundy function of Wythoff s game, in: More Games of No Chance, Proc. MSRI Workshop on Combinatorial Games, July,, Berkeley, CA, MSRI Publ. (R.J. Nowakowski, ed.), Vol., Cambridge University Press, Cambridge,, pp. 8 86. [6] Gabriel Nivasch, More on the Sprague Grundy function for Wythoff s game, to appear in Games of No Chance III. 6

[7] X. Sun, Wythoff s sequence and N-heap Wythoff s conjectures, Discrete Math. (), 8 9. [8] X. Sun and D. Zeilberger, On Fraenkel s N-heap Wythoff s conjectures, Ann. Comb. 8 (), 8. [9] W. Wythoff, A modification of the game of Nim, Nieuw Arch. Wisk. 7 (97), 99-. 7