This article appeared in a journal published by Elsevier. The attached copy is furnished to the author for internal non-commercial research and

Similar documents
A Family of Nim-Like Arrays: The Locator Theorem

Algebraic Structure in a Family of Nim-like Arrays

Algebraic Structure in a Family of Nim-like Arrays

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

arxiv: v2 [math.co] 9 Aug 2011

Misère canonical forms of partizan games

Slow k-nim. Vladimir Gurvich a

PLAYING END-NIM WITH A MULLER TWIST

Geometrical extensions of Wythoff s game

This article appeared in a journal published by Elsevier. The attached copy is furnished to the author for internal non-commercial research and

Theoretical Computer Science

This article appeared in a journal published by Elsevier. The attached copy is furnished to the author for internal non-commercial research and

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

Wen An Liu College of Mathematics and Information Science, Henan Normal University, Xinxiang, P.R. China

Aperiodic Subtraction Games

This article appeared in a journal published by Elsevier. The attached copy is furnished to the author for internal non-commercial research and

A misère-play -operator

One Pile Nim with Arbitrary Move Function

This article appeared in a journal published by Elsevier. The attached copy is furnished to the author for internal non-commercial research and

OPTION-CLOSED GAMES RICHARD J. NOWAKOWSKI AND PAUL OTTAWAY

This article appeared in a journal published by Elsevier. The attached copy is furnished to the author for internal non-commercial research and

This article appeared in a journal published by Elsevier. The attached copy is furnished to the author for internal non-commercial research and

SUMBERS SUMS OF UPS AND DOWNS. Kuo-Yuan Kao National Penghu Institute of Technology, Taiwan. Abstract

Impartial Games. Lemma: In any finite impartial game G, either Player 1 has a winning strategy, or Player 2 has.

(This is a sample cover image for this issue. The actual cover is not yet available at this time.)

Sprague-Grundy Values of the R-Wythoff Game

Another bridge between Nim and Wythoff

arxiv: v1 [math.co] 27 Aug 2015

Analysis of odd/odd vertex removal games on special graphs

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

PARTIAL NIM. Chu-Wee Lim Department of Mathematics, University of California Berkeley, Berkeley, CA , USA.

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


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

Poset-Game Periodicity

Single Pile (Move Size) Dynamic Blocking Nim

Introduction to Combinatorial Game Theory

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

This article appeared in a journal published by Elsevier. The attached copy is furnished to the author for internal non-commercial research and

arxiv: v2 [math.co] 23 Mar 2012

Champion Spiders in the Game of Graph Nim

arxiv: v1 [math.co] 18 May 2018

On Aperiodic Subtraction Games with Bounded Nim Sequence

Identifying Graph Automorphisms Using Determining Sets

This article appeared in a journal published by Elsevier. The attached copy is furnished to the author for internal non-commercial research and

This article appeared in a journal published by Elsevier. The attached copy is furnished to the author for internal non-commercial research and

This article appeared in a journal published by Elsevier. The attached copy is furnished to the author for internal non-commercial research and

This article appeared in a journal published by Elsevier. The attached copy is furnished to the author for internal non-commercial research and

arxiv: v1 [math.co] 21 Sep 2015

Central Groupoids, Central Digraphs, and Zero-One Matrices A Satisfying A 2 = J


This article appeared in a journal published by Elsevier. The attached copy is furnished to the author for internal non-commercial research and

COFINITE INDUCED SUBGRAPHS OF IMPARTIAL COMBINATORIAL GAMES: AN ANALYSIS OF CIS-NIM

This article appeared in a journal published by Elsevier. The attached copy is furnished to the author for internal non-commercial research and

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

Announcements. Read Section 2.1 (Sets), 2.2 (Set Operations) and 5.1 (Mathematical Induction) Existence Proofs. Non-constructive

Lecture 7 Feb 4, 14. Sections 1.7 and 1.8 Some problems from Sec 1.8

Ordinal Partizan End Nim

MATH4250 Game Theory 1. THE CHINESE UNIVERSITY OF HONG KONG Department of Mathematics MATH4250 Game Theory

Martin Gardner and Wythoff s Game

This article appeared in a journal published by Elsevier. The attached copy is furnished to the author for internal non-commercial research and

(This is a sample cover image for this issue. The actual cover is not yet available at this time.)

7.5 Taking-and-Breaking Games

This article appeared in a journal published by Elsevier. The attached copy is furnished to the author for internal non-commercial research and

(This is a sample cover image for this issue. The actual cover is not yet available at this time.)

This article appeared in a journal published by Elsevier. The attached copy is furnished to the author for internal non-commercial research and

Discrete Applied Mathematics

Discrete Applied Mathematics

Toppling Conjectures

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

HW2 Solutions, for MATH441, STAT461, STAT561, due September 9th

This article appeared in a journal published by Elsevier. The attached copy is furnished to the author for internal non-commercial research and

TEMPERATURE THEORY AND THE THERMOSTATIC STRATEGY

Mathematical Olympiad for Girls

Binary dicots, a core of dicot games

RECOUNTING DETERMINANTS FOR A CLASS OF HESSENBERG MATRICES. Arthur T. Benjamin Department of Mathematics, Harvey Mudd College, Claremont, CA 91711

Research Statement. Janine E. Janoski

MAHARAJA NIM: WYTHOFF S QUEEN MEETS THE KNIGHT

This article appeared in a journal published by Elsevier. The attached copy is furnished to the author for internal non-commercial research and

DYNAMIC ONE-PILE NIM Arthur Holshouser 3600 Bullard St., Charlotte, NC, USA, 28208

TILING PROOFS OF SOME FORMULAS FOR THE PELL NUMBERS OF ODD INDEX

#G4 INTEGERS 15 (2015) IMPARTIAL CHOCOLATE BAR GAMES

arxiv: v2 [math.co] 15 Feb 2017

This article appeared in a journal published by Elsevier. The attached copy is furnished to the author for internal non-commercial research and

On binary reflected Gray codes and functions

Enumeration Schemes for Words Avoiding Permutations

Problem Set #1 solutions

A Generalized Algorithm for Computing Matching Polynomials using Determinants. Asa Scherer

Greedy Codes. Theodore Rice

The decomposability of simple orthogonal arrays on 3 symbols having t + 1 rows and strength t

This article appeared in a journal published by Elsevier. The attached copy is furnished to the author for internal non-commercial research and

Consider an infinite row of dominoes, labeled by 1, 2, 3,, where each domino is standing up. What should one do to knock over all dominoes?

C241 Homework Assignment 7

Sloping Binary Numbers: A New Sequence Related to the Binary Numbers

Minimum number of non-zero-entries in a 7 7 stable matrix

Edge colored complete bipartite graphs with trivial automorphism groups

Coloring Vertices and Edges of a Path by Nonempty Subsets of a Set

At the start of the term, we saw the following formula for computing the sum of the first n integers:

One Pile Nim with Arbitrary Move Function

ON MULTI-AVOIDANCE OF RIGHT ANGLED NUMBERED POLYOMINO PATTERNS

Transcription:

This article appeared in a journal published by Elsevier. The attached copy is furnished to the author for internal non-commercial research and education use, including for instruction at the authors institution and sharing with colleagues. Other uses, including reproduction and distribution, or selling or licensing copies, or posting to personal, institutional or third party websites are prohibited. In most cases authors are permitted to post their version of the article (e.g. in Word or Tex form) to their personal website or institutional repository. Authors requiring further information regarding Elsevier s archiving and manuscript policies are encouraged to visit: http://www.elsevier.com/authorsrights

Theoretical Computer Science 535 (2014) 31 37 Contents lists available at ScienceDirect Theoretical Computer Science www.elsevier.com/locate/tcs A family of Nim-like arrays: The Locator Theorem Lowell Abrams a, Dena S. Cowen-Morton b, a Department of Mathematics, The George Washington University, Washington, DC 20052, USA b Department of Mathematics, Xavier University, Cincinnati, OH 45207-4441, USA article info abstract Article history: Received 21 January 2013 Received in revised form 29 September 2013 Accepted 27 March 2014 Communicated by A. Fraenkel Keywords: Nim Sequential compound We study a property shared by some members of a certain family of Nim-like arrays. The arrays are recursively generated in a manner related to the operation of Nim-addition, and the property involves a kind of self-referential relationship between entries and their indices. We conclude with some numerical evidence that the property in fact holds for only a few members of the family. 2014 Published by Elsevier B.V. 1. Introduction The game of Nim is a two person combinatorial game consisting of at least one pile of stones in which the players alternate turns removing any number of stones they wish from a single pile of stones; the winner is the player to take the last stone. Given combinatorial games G 1 and G 2, we can form a new game by taking their direct sum G 1 G 2 ;thisisthe game in which a player, on their turn, has the option of making a move in exactly one of the games G 1 or G 2 as long as that game is not yet exhausted (in Nim this simply means having several independent piles of stones). Again, the winner is thelastplayertomakeamove.wecalltwogamesg 1 and G 2 equivalent if for every game H the game G 1 H has the same winner as the game G 2 H. Nim s importance was established by the Sprague Grundy Theorem [7,8] (also developed in [6, Chapter 11]), which essentially asserts that Nim is universal among finite impartial two player combinatorial games in which the winner is the player to move last. Briefly, that is to say that every such game G is, vis-à-vis direct summation, equivalent to a single-pile Nim game. We denote by Nim s the Nim game with one pile of s stones. In [9], Stromquist and Ullman define sequential compounding, an operation on combinatorial games. In essence, the sequential compound G H of games G and H is the game in which play proceeds in G until there are no moves left, at which point play switches to H. Thus, if H = Nim 0, we have G H = G. If H = Nim 1, then G H is misère play on G (in which the last player to take a stone loses rather than wins). Stromquist and Ullman consider games of the form (G 1 G 2 ) H, where G 1, G 2, and H are independent impartial combinatorial games, but before our previous papers [1,2], little was understood about this type of sequential compounding for H equivalent to Nim s with s > 1. Such games give rise to a family A ={A s } s N0 of recursively generated arrays (we write N 0 for N {0}), and this family is the object of our study. Here, s is the Grundy-value (see [4]) of H, and for a fixed value of s the rows and columns of A s are indexed by the Grundy values of G 1 and G 2, respectively. Our papers [1,2] explore some of the algebraic, combinatorial, and graphical properties of this family. In particular, [1] discusses how each A s may be viewed as defining on N 0 the structure * Corresponding author. Tel.: +1 513 745 3674; fax: +1 513 745 3272. E-mail addresses: labrams@gwu.edu (L. Abrams), morton@xavier.edu (D.S. Cowen-Morton). http://dx.doi.org/10.1016/j.tcs.2014.03.032 0304-3975/ 2014 Published by Elsevier B.V.

32 L. Abrams, D.S. Cowen-Morton / Theoretical Computer Science 535 (2014) 31 37 Fig. 1. A Nim-like game. of a loop, i.e., a quasigroup with a two-sided identity, and [2] presents periodicity properties which hold in the rows and [super]-diagonals of each A s. The results here continue our exploration of the family A, concentrating on our Locator Theorem, which establishes a connection between the row and column indices and the value of an entry. More explicitly, letting a i, j denote the entry in row i, column j of the array A s and defining the operator m i : N 0 N 0 by m i ( j) := a i, j, we say the Locator Property holds at (i, j) if there is a k N 0 such that m i ( j) = k and m i (k) = j. Alternatively, the Locator Property may be formulated as asserting that, in row i, the entry equal to j is located in column a i, j.forarraysa s where s {0, 1, 2, 3, 5, 7} this Locator Property holds for all but a few specific pairs (i, j), but this seems to not be the case for any other value of s. To quantify this, we conclude with a computational result studying the failure of the Locator Property in A s for all remaining values of s between 0 and 200. In particular, for all s {4, 6, 8, 9, 10,...,200}, the Locator Property fails for at least 70% of all pairs, and frequently more often. Interestingly, the Locator Theorem gives information about a Nim-like game we now describe. Consider the arrangement of rectangles shown in Fig. 1, where each of i, j, s denotes a nonnegative integer, and suppose that each box contains the quantity of stones indicated by the corresponding variable. On each player s turn they may choose one box and remove any number of stones from that box, subject to the condition that a box may only be chosen if all the boxes directly above it in the diagram are empty. The Locator Theorem tells us that if s {0, 1, 2, 3, 5, 7}, then for all but a few values of i, j (the restrictions depending on s) the game is a second-player win. Further details are given at the end of Section 3. Another interesting application of the Locator Theorem is developed in [3]. Foreachvalueofs one can associate to A s a group of affine permutations of the integers [5]; the Locator Theorem tells us that for s {0, 1, 2, 3, 5, 7} these groups are generated by involutions. 2. Background: the arrays A s We begin by constructing a family of infinite arrays using the mex operation: Definition 2.1. For a set X N 0 ={0, 1, 2, 3,...} we define mex(x) to be the smallest non-negative integer not contained in X, i.e., mex(x) = min(n 0 \ X). Here, mex stands for minimal excluded value. Definition 2.2. For any 2-dimensional array A indexed by N 0 N 0,leta i, j denote the entry in row i, column j, where i, j 0. The principal (p, q) subarray A(p, q) is the subarray of A consisting of entries a i, j with indices (i, j) {0,...,p} {0,...,q}. Fori, j 0defineLeft(i, j) ={a i,q : q < j} to be the set of all entries in row i to the left of the entry a i, j, and define Up(i, j) ={a p, j : p < i} to be the set of entries in column j above a i, j. Observe that Definition 2.2 gives Left(i, 0) = Up(0, j) =. Definition 2.3. The infinite array A s,fors N 0, is constructed recursively: The seed a 0,0 is set to s and for (i, j) (0, 0), a i, j := mex ( Left(i, j) Up(i, j) ). See, for example, Fig. 2, which shows principal subarrays in seeds 0, 2, and 3. In all arrays the index i = 0, 1, 2,... increases down the page and j = 0, 1, 2,... increases to the right. These arrays will be useful in the calculations to come. Note that both the top row (row i = 0) and the left column (column j = 0) of A s always have entries in the order s, 0, 1, 2,...,s 1, s + 1, s + 2,... (see Property 2.8 below). The array A 0 is well known as the Nim addition table, and has been extensively studied in the setting of combinatorial game theory. We denote by Nim s the s-stone, single-pile Nim game and we denote by H the Grundy value of a game H, that is, the unique number to which H is equivalent (see [4] for details). Let G 1, G 2 be games with G 1 =i and G 2 = j (so G 1, G 2 are equivalent to Nim i,nim j respectively). Then the (i, j)-entry of A 0 is equal to the Grundy value G 1 G 2. Consideration of what is known as misère play results in the array A 1. Using the sequential compounding construction

L. Abrams, D.S. Cowen-Morton / Theoretical Computer Science 535 (2014) 31 37 33 0 1 2 3 4 5 6 7 1 0 3 2 5 4 7 6 2 3 0 1 6 7 4 5 3 2 1 0 7 6 5 4 4 5 6 7 0 1 2 3 5 4 7 6 1 0 3 2 6 7 4 5 2 3 0 1 7 6 5 4 3 2 1 0 2 0 1 3 4 5 6 7 3 0 1 2 4 5 6 7 0 1 2 4 3 6 5 8 0 1 2 3 5 4 7 6 1 2 0 5 6 3 4 9 1 2 0 4 3 6 5 8 3 4 5 0 1 2 7 6 2 3 4 0 1 7 8 5 4 3 6 1 0 7 2 5 4 5 3 1 0 2 9 10 5 6 3 2 7 0 1 4 5 4 6 7 2 0 1 3 6 5 4 7 2 1 0 3 6 7 5 8 9 1 0 2 7 8 9 6 5 4 3 0 7 6 8 5 10 3 2 0 Fig. 2. A 0 (7, 7) (above) and A 2 (7, 7) and A 3 (7, 7) (below, left and right). 0 1 2 3 4 5 6 7 1 0 3 2 5 4 7 6 2 3 0 1 6 7 4 5 3 2 1 0 7 6 5 4 4 5 6 7 0 1 2 3 5 4 7 6 1 0 3 2 6 7 4 5 2 3 0 1 7 6 5 4 3 2 1 0 2 0 1 3 4 5 6 7 0 1 2 4 3 6 5 8 1 2 0 5 6 3 4 9 3 4 5 0 1 2 7 6 4 3 6 1 0 7 2 5 5 6 3 2 7 0 1 4 6 5 4 7 2 1 0 3 7 8 9 6 5 4 3 0 Fig. 3. Some examples of the Locator Theorem. In each array, the elements involved are boxed. Note that the relevant row and column indices are, for these examples, the corresponding entries in column 0 and row 0, respectively. of Stromquist and Ullman gives rise to the full family of arrays A s.indeed,the(i, j)-entry of A s is (G 1 G 2 ) Nim s. The arrays A s can be used to guide the actual play of a game (G 1 G 2 ) Nim s ; we direct the reader to [1, 2] for more information. A fundamental property of A s follows as an immediate consequence of the recursive construction (see [1] for details): Proposition 2.4. (See [1], Proposition 2.4.) For each s, the array A s is symmetric, and each nonnegative integer appears exactly once in each row (and, by symmetry, each column). From this proposition, it easily follows that for each i N 0, the function m i : N 0 N 0 defined by m i ( j) := a i, j is a bijection. The main focus of this paper is the exploration of the following Locator Property in the arrays A s for a variety of seeds s: Definition 2.5. For a fixed seed s we say that the Locator Property holds at (i, j) if there is an integer k such that m i ( j) = k and m i (k) = j, i.e., if, in the cycle decomposition of m i, the element j appears in a transposition. Equivalently, the Locator Property holds at (i, j) if we have a i,ai, j = j, i.e., inrowi the entry equal to j is located in column a i, j. Several related illustrations of the Locator Theorem are highlighted in each array in Fig. 3. For seed s = 0 (in the lefthand array) we have, for example, a 3,4 = m 3 (4) = 7 and a 3,7 = m 3 (m 3 (4)) = 4. Similarly, a 4,7 = m 4 (7) = 3 and a 4,3 = m 4 (m 4 (7)) = 7. Turning now to seed s = 2 (in the right-hand array) we have a 4,5 = m 4 (5) = 7 and a 4,7 = m 4 (m 4 (5)) = 5, as well as a 7,4 = m 7 (4) = 5 and a 7,5 = m 7 (m 7 (4)) = 4. The reader can easily discern additional examples among the highlighted entries. We end this section with a recapitulation of some key definitions and propositions from our papers [1,2]. Definition 2.6. By algorithm 1, we mean the algorithm described above in Definition 2.3, using the mex operation to fill in increasingly large subarrays containing the seed. Definition 2.7. By algorithm 2, which is well-defined only for principal subarrays A s (p, q), we first fill in all the 0 s, then all the 1 s, then all the 2 s, etc. To do so, we begin with just the seed s placed in the upper left hand corner. We start with k = 0 and suppose that all entries less than k have been placed (if k = 0 then nothing other than the seed has been placed). Starting with row i = 0, let m = min{ j: k / Up(i, j) and (i, j) is not yet assigned an entry}; ifm q then set the

34 L. Abrams, D.S. Cowen-Morton / Theoretical Computer Science 535 (2014) 31 37 (i,m) entry to k. Now increment i and, if i p, repeat the calculation of m. Carry out this process for all k, incrementing k each time, until all entries in A s (p, q) have been filled. Algorithm 2 succeeds in correctly filling out a finite portion of A s because when computing mex(x) for a set X, only those entries less than mex( X) are actually relevant to the calculation. As proved in [2], the rows, columns, and diagonals in A s do eventually settle into distinct periodic or arithmetically periodic patterns for s 2. These patterns are frequently complicated to compute, with the behavior in the first few rows and diagonals the easiest to find by hand. As an example, we give the following properties from [1], both of which will be needed below. For the reader who wishes to consult reference [1], which makes use of an operation, wenotethatfor small values of i, j we have m i ( j) i j, butfori, j > s we do have m i ( j) = i j. Property 2.8. For all seeds s and all k, s ifk= 0 a 0,k = a k,0 = k 1 if 0 < k s k ifk> s. Property 2.9. For all seeds s 1 and all k, s ifk= 0 a k,k = 1 if k = 1 0 otherwise. Property 2.9 may easily be verified using algorithm 2. 3. The Locator Theorem We first discuss seeds 0 and 1 since these behave very differently from other seeds. Proposition 3.1. For both seeds 0 and 1, the Locator Property holds for all (i, j). Proof. As seed 0 represents two piles of stones being played in usual Nim, a i, j is found by bit-wise XOR [4]. Specifically,we can compute a i, j = i j. Since bit-wise XOR is associative, we have m i (m i ( j)) = m i (i j) = i (i j) = (i i) j = 0 j = j for all i, j, so the Locator Property holds for seed 0. Note now that A 1 differs from A 0 only in A 1 (1, 1). Thus, in seed 1, as long as either i > 1or j > 1 the same calculation as for seed 0 gives m i (m i ( j)) = j. It is simple to confirm that each of the remaining four entries in A 1 (1, 1) also satisfies the Locator Property. The proof of the remainder of our main result rests on the idea of a set of indices being Left- or Up-complete, which we define here. Even though they are similar, Left- and Up-completeness do not work quite the same. Definition 3.2. A set X of column-indices is i-left-complete if, in row i, the entries equal to the elements of X are located in the columns indexed by m i (X) ={m i ( j ): j X}. AsetY of row-indices is j-up-complete if, in the rows indexed by Y, the entries equal to j are located in the columns indexed by m Y ( j) ={m i ( j): i Y }. Before proceeding with an example, we remind the reader that rows and columns are indexed from 0. For example, in seed s = 3 (see Fig. 4), the set {0, 1, 2, 3} is 2-Left-complete because the entries in row 2 equal to 0, 1, 2, 3 are located in columns indexed by 2, 0, 1, 4 (respectively), and m 2 ({0, 1, 2, 3}) ={1, 2, 0, 4}. Similarly, the set Y = {0, 1, 2, 3, 4} is 3-Up-complete in seed s = 3 because the entries equal to j = 3inrows0, 1, 2, 3, 4 are located in columns 0, 3, 4, 1, 2 (respectively) and m {0,1,2,3,4} (2) ={1, 2, 0, 4, 3}. Note that for Left-completeness, we are looking for the column locations of several values in a single row, whereas in Up-completeness, we are looking for the column locations of a single value in several rows. We note two important properties of Up-complete and Left-complete sets that readily follow from the definitions: Property 3.3. A union of i-left-complete sets is i-left-complete and a union of j-up-complete sets is j-up-complete. Property 3.4. If the Locator Property holds at (i, j), then X ={ j} is i-left-complete and Y ={i} is j-up-complete.

L. Abrams, D.S. Cowen-Morton / Theoretical Computer Science 535 (2014) 31 37 35 Fig. 4. Illustrations in seed 3 of 2-Left-completeness (on the left) and 3-Up-completeness (on the right). On the left, the circled entries in row 2 are located in the columns whose indices are in the horizontal rectangle in row 2. On the right, the entries equal to 3 are in the columns whose indices are in the vertical rectangle in column 3. Lemma 3.5. For all seeds s 2, 1. The set {0, 1,...,s} is 0-Left-complete and 0-Up-complete, but {0, 1,...,k} for k < s is neither 0-Left-complete nor 0-Upcomplete. 2. If {0, 1,..., j 1} is 0-Left-complete, then the Locator Property holds at (0, j). 3. If {0, 1,...,i 1} is 0-Up-complete, then the Locator Property holds at (i, 0). Proof. To demonstrate the first assertion we use Properties 2.8 and 2.9 repeatedly. That {0, 1,...,k} for k < s is not 0-Left-complete when s 2 follows by noting that if k < s then in row 0, the entry k 1 occurs in column k / m 0 (X) = {m 0 (0),...,m 0 (k)}={s, 0, 1,...,k 1}. However,ifX ={0, 1,...,s} then m 0 (X) = X, so we do have 0-Left-completeness. Let Y ={0, 1,...,k}. Fork = 0wehavem Y (0) ={s}, butsinces > 1 and a 0,1 = 0, by Property 2.4, 0-Up-completeness fails. By Property 2.9, fork > 0 the entries equal to 0 in rows indexed by Y occur in the columns indexed by Y.Sincewe have Y m Y (0) for k < s and Y = m Y (0) for k = s, 0-Up-completeness holds for k = s but not for k < s. By the hypotheses of the second and third assertions, the first assertion implies that i, j s. ByProperty 2.8 we have a 0, j = j and a i,0 = i. The second assertion readily follows. By Property 2.9, the third assertion also follows. Lemma 3.6. For i, j 1, if{0, 1,...,(j 1)} is i-left-complete and {0, 1,...,(i 1)} is j-up-complete, then the Locator Property holds at (i, j). Proof. Since {0, 1,...,(i 1)} is j-up-complete, the entries in Up(i, j) ={a 0, j,...,a (i 1), j } tell us the columns in which entry j appears for rows 0 through i 1. Since j is already in each of these columns, Proposition 2.4 tells us that in row i the entry j is not in any of the columns enumerated in {a 0, j,...,a (i 1), j }. Likewise, since {0, 1,...,(j 1)} is i-left-complete, looking at Left(i, j) ={a i,0,...,a i,( j 1) }, we find the column numbers in which j cannot appear in row i since there are already other entries in these columns, namely, the entries 0,...,(j 1). We now have a list of columns in which j does not appear in row i; those arising because j is already in that column (enumerated in Up(i, j) in a row of smaller index), and those arising because an entry smaller than j is already in that column (enumerated in Left(i, j)) inrowi. If we are using algorithm 2 for filling in the mex table, so that all values appear as early as they can, then the entry j appears in the first non-forbidden column in row i i.e., in the column with the smallest non-forbidden index. But this is precisely the mex of the forbidden column numbers. Thus the entry j in row i goes into the column numbered m = mex(left(i, j) Up(i, j)) = a i, j. In other words, entry j in row i appears in column a i, j,soa i,ai, j = j, i.e., m i (m i ( j)) = j. Lemma 3.7. For seed s = 2,theset{0, 1, 2} is both i-left-complete for i = 0, 1, 2 and j-up-complete for j = 0, 1, 2. Lemma 3.8. For seed s = 3, the following hold: 1. The set {0, 1, 2, 3} is i-left-complete for i = 0, 1, 2 and 0-Up-complete. 2. The set {0, 1, 2, 3, 4} is 3-Up-complete and 3-Left-complete. 3. The set {1, 2, 3, 4, 5} is 4-Left-complete. 4. The sets {1, 2} and {i 1, i, i + 1} are i-left-complete for all i 5. 5. The set { j 1, j, j + 1} is j-up-complete for all j 4. These lemmas can readily be proven by induction using Fig. 2; the details are left to the reader, but note that the patterns are established by considering even and odd cases and that [2] provides many useful lemmas. We do not include the necessary lemmas for seeds 5 and 7, but the reader can easily surmise them.

36 L. Abrams, D.S. Cowen-Morton / Theoretical Computer Science 535 (2014) 31 37 Fig. 5. The values ρ s for seeds s {4, 6, 8, 9, 10,...}. Theorem 3.9 (The Locator Theorem). For seeds s = 2, 3, 5, 7, the Locator Property holds for all (i, j) L s where L 2 ={(i, j): i > sor j> s}, L 3 ={(i, j): (i > sor j> s) and j 1, 2 and i j > 1}, L 5 ={(i, j): (i > s + 1 or j > s + 1) and j 1, 2, 3, 4 and i j > 2}, L 7 ={(i, j): (i > s + 2 or j > s + 2) and j 1, 2, 3, 4, 5 and i j > 3}. Proof. We use Lemmas 3.5, 3.7, and 3.8, as well as their analogues for seeds 5 and 7, as base cases. Suppose (i, j) L s for s {2, 3, 5, 7}, and moreover that the Locator Property holds for all (i, j ) L s with i < i or j < j. By the base cases and Property 3.4 it follows that {0, 1,...,( j 1)} is a union of one or more sets which are i-left-complete and {0, 1,...,(i 1)} is a union of one or more sets which are j-up-complete. By Property 3.3, {0, 1,...,( j 1)} is i-leftcomplete and {0, 1,...,(i 1)} is j-up-complete. Lemma 3.6 therefore proves that the Locator Property holds at (i, j). We now return to the game described in the introduction and depicted in Fig. 1. That game can be described as [([ (Nim j Nim i ) Nim s ] Nimi ) Nims ] Nim j, and the Grundy value of this game is exactly Nim mi (m i ( j)) Nim j, where m i is defined in terms of the array A s.thus,the game is a second player win exactly when m i (m i ( j)) = j, i.e., when the Locator Property holds at (i, j). The beginning of a winning strategy for the second player would be to mirror any move by the first player in an i pile in the other i pile, and similarly for the j pile, as long as this returns the game to a configuration for which the Locator Property holds. 4. A computational result We conclude by computationally examining, for each seed from 0 to 200, the percentage of entries for which the Locator Property holds (this is expressed more precisely below). Our results suggest that the Locator Property does not hold for seeds other than s = 0, 1, 2, 3, 5, 7. Theorem 4.1. In A s,let P s = { (i, j) {0, 1, 2,...,2999} 2 : j > sands< a i, j < 3000 }, and ρ s = Q s / P s.wehave Q s = { (i, j) P s : a i,ai, j = j }, if s {0, 1, 2, 3, 5, 7} then ρ s = 1; if s {4, 6} {8, 9,...,200} then ρ s (0.155, 0.279). Thus ρ s gives a measure of the extent to which entries in A s satisfy the Locator Property. Fig. 5 displays the values of ρ s for seeds other than {0, 1, 2, 3, 5, 7}. Note that in the definition of P s the conditions j > s and a i, j > s reflect the fact that for entries with small column indices and entries near the diagonal, respectively, we only have Left-completeness for non-singleton sets (see Lemmas 3.7 and 3.8).

L. Abrams, D.S. Cowen-Morton / Theoretical Computer Science 535 (2014) 31 37 37 Acknowledgements Thomas Zaslavsky offered helpful suggestions during the writing stage. In addition, comments from the anonymous referees improved the exposition significantly. References [1] L. Abrams, D. Cowen-Morton, Algebraic structure in a family of Nim-like arrays, J. Pure Appl. Algebra 214 (2010) 165 176. [2] L. Abrams, D. Cowen-Morton, Periodicity and other structure in a colorful family of Nim-like arrays, Electron. J. Combin. 17 (2010). [3] L. Abrams, D. Cowen-Morton, A family of Nim-like arrays: stabilization, 2013, preprint. [4] E.R. Berlekamp, H.H. Conway, R.K. Guy, Winning Ways for Your Mathematical Plays, vol. 1, second edition, AK Peters, Wellesley, Massachusetts, 2001. [5] A. Björner, F. Brenti, Affine permutations of type A, Electron. J. Combin. 3 (1996). [6] J.H. Conway, On Numbers and Games, second edition, AK Peters, Wellesley, Massachusetts, 2001. [7] P.M. Grundy, Mathematics and games, Eureka 2 (1939) 6 8. [8] R.P. Sprague, Über mathematische Kampfspiele, Tohoku Math. J. (2) 41 (1935 1936) 438 444. [9] W. Stromquist, D. Ullman, Sequential compounds of combinatorial games, Theoret. Comput. Sci. 119 (1993) 311 321.