Impartial games

One changed value, and a growing code repeats

Put a free split in front of the 220 short octal codes that have no certified period, and 130 of them repeat. Forty need the split at no heap larger than six — thirty-four of those are codes whose own values grow without bound, and ·564 is one: a heap of two becomes worth ∗ instead of nought, and everything after runs 1, 1, 2, 2 for ever. Whether a split settles a code turns out to be readable, most of the time, from the digit that governs taking a single counter.

Assumes: A split that settles the game it is added to · The sequence nobody has settled

A free split is a move that takes nothing and breaks a heap in two. Added to Nim it gives Lasker’s Nim, whose values have a four-clause formula, and added in front of an octal code it gives a code with an extra digit, written 4.d₁d₂d₃, the 4 standing for the split. The census of all 512 split codes asked of all 512 such codes, heap by heap, where the split decides the value, and found four codes that need it at nearly two hundred and fifty heaps and then never again, and that repeat from heap 998 while the same removals without the split show no period in thirty thousand heaps. The split had done the settling.

That suggested a question about the codes nobody has settled. Guy and Smith’s conjecture that every finite octal code eventually repeats is open, and the survey of short codes leaves 220 of up to three digits with no certified period, 178 of them with values still growing. Putting a split in front of one changes the game, so a split version that repeats settles nothing about the original. What it can do is sort the unsettled codes by a property they have never been sorted by: whether one extra move, used wherever it decides anything, is enough to make them repeat.

It is enough for 130 of the 220. For forty of those the split decides the value at no heap larger than six, and thirty-four of the forty are growing codes. Their own values climb into the hundreds within a few thousand heaps; change the value at heap two, or at two to four small heaps, and the rest of the sequence repeats from the start with a period of six or less.

The census

Each uncertified code ·d₁d₂d₃ is rerun as 4.d₁d₂d₃ to 8,000 heaps, by the mex over every legal removal and every way of breaking the heap, the split included. A period is accepted only when it has held three times over and for at least two hundred heaps, the same rule the earlier split census used.

A split settles three codes in five. The 220 uncertified octal codes of up to three digits, growing and bounded, with a free split added: 130 repeat within 8,000 heaps, 92 of them growing codes, and in 40 the split decides only heaps of six or fewer counters.
Fig. 1 The 220 uncertified codes, growing and bounded, each with a free split added. 130 repeat within 8,000 heaps: 92 of the 178 growing codes and 38 of the 42 bounded ones. In forty the split sets the value at no heap larger than six.

The split is not a cure. It settles about half the growing codes and nearly all the bounded ones, and 90 codes still show no period at 8,000 heaps with the split. But the forty with small decisive sets show how it settles the ones it does. In those forty the split’s effect is confined to the first few heaps, and the rest of the sequence repeats because of what those few heaps now hold.

A period found by observation becomes a certified one once it has held long enough. The standard window test for octal games applies unchanged to a code with a free split, since its proof needs only that every option of a heap is a single smaller heap or two smaller heaps whose sizes add to at most the original. For a code removing at most three counters, a period p from heap e is certain once it has held to heap 2e + p + 3. Every one of the forty repeats from heap four or earlier with a period of six or less, so the window is a few dozen heaps, and the observed 8,000 settles them.

One value at heap two

·564 is the clearest of the forty. As written, a heap of one counter can be taken outright, worth ∗. A heap of two has no legal move at all: the first digit, 5, lets a single counter be removed only if nothing or two heaps remain, and two counters can be removed only if one heap remains. So a heap of two is worth nought. From there ·564 grows, to 642 by heap 4,000, and nobody has found it repeating.

One changed value, and a growing code repeats. Grundy values of heaps 0 to 23 for the octal codes ·564, ·74 and ·325, as written and with a free split added, with the heaps at which the split decides the value marked. With the split, ·564 repeats 1, 1, 2, 2 from heap one after a change at heap two alone; ·74 repeats with period two; ·325 with period three after four decided heaps.
Fig. 2 Heaps 0 to 23 of ·564, ·74 and ·325, as written and with a free split, with the heaps at which the split decides the value marked. ·564’s split version differs from the original first at heap two and then runs 1, 1, 2, 2 for ever.

Add the split and a heap of two gains one move, breaking into one and one, worth ∗ + ∗, which is nought. So a heap of two is worth ∗ instead of nought. That is the only heap at which the split decides anything: at every other heap, the removals alone, with the split version’s values below them, give the same value the split does. And the split version’s values from heap one are 1, 1, 2, 2, 1, 1, 2, 2, period four, for ever.

So ·564 is one value away from a period. Its recursion, run with a single value at heap two changed from nought to one, produces a sequence of period four; run as written, it produces one of the longest-growing sequences in the survey. The two sequences agree again at heaps three and four, and part for good at heap five, which is worth ∗ with the split and ∗4 as written; everything downstream inherits the difference.

Why ∗ at heap two is enough

For ·564 the period can be proved in a paragraph, and the proof shows exactly what the changed value buys. With the split, suppose every heap from one up to n − 1 is worth ∗ or ∗2. Look at what a heap of n can reach. Breaking it, with or without first removing one or three counters, leaves two heaps, worth the exclusive-or of two values from {1, 2}, which is nought when they are equal and ∗3 when they differ. Removing two counters may leave one heap, worth whatever heap n − 2 is worth. Removing one counter can leave nothing only from a heap of one. Those are all the moves.

So a heap of n reaches nought or ∗3 through its splits, and the value of heap n − 2 through its one single-heap move. If heap n − 2 is worth ∗2, the options are nought, ∗2 and perhaps ∗3, and the heap is worth ∗. If heap n − 2 is worth ∗, the options are nought, ∗ and perhaps ∗3, and the heap is worth ∗2. Either way it is worth ∗ or ∗2 again, provided some split reaches nought, which needs two parts of equal value and is always available here. Each heap is worth the other value from the heap two below it, and from 1, 1 at heaps one and two that rule writes out 1, 1, 2, 2, 1, 1, 2, 2 for ever.

The whole induction rests on every positive heap being worth ∗ or ∗2, and as written ·564 breaks that at once, because its heap of two is worth nought. A nought among the values lets a split reach the value of a single part, an exclusive-or with nought, and from there the options spread and the values climb. One move at heap two, worth nothing more than ∗ + ∗, keeps the values inside {1, 2}, and inside {1, 2} the exclusive-or has only two answers. The same argument, with different digits, is what the Sprague–Grundy values of every short-period code in the list are doing: a small set of values closed under the moves the rule allows.

·74 does the same with period two, again from one decisive heap at two. ·325 needs four decided heaps, two, three, four and six, and then repeats with period three. The full list is the next figure but one.

The digit that governs one counter

The forty, and the 130 more broadly, are not spread evenly over the codes. Read the first digit, the one that says what removing a single counter may leave, and most of the pattern is there.

The first digit decides most of it. The 220 uncertified octal codes grouped by their first digit, with how many settle when a free split is added and in how many the split decides only small heaps. Codes with an odd first digit settle 72 times in 77; codes with an even first digit 58 times in 143.
Fig. 3 The 220 uncertified codes by first digit, with how many settle with a split and in how many the split decides only small heaps. With an odd first digit, which lets a lone counter be taken outright, 72 of 77 settle; with an even one, 58 of 143. Every code with first digit 1, 5 or 7 settles.

An odd first digit means a heap of one counter can be removed entirely, so a heap of one is worth ∗. Every uncertified code with first digit 1, 5 or 7 settles when a split is added: 23 of 23, 8 of 8 and 20 of 20. With first digit 3, 21 of 26. With an even first digit, where a lone counter cannot be taken outright and a heap of one is worth nought, the split settles 58 of 143, and none of the forty small-decisive codes has an even first digit except two codes beginning with 0.

There is a plausible mechanism, offered as one. When a heap of one is worth ∗, a free split can always peel a single counter off any heap, so every heap of n has an option worth ∗ ⊕ g(n − 1). That ties each value to its predecessor by a fixed rule, a constraint that every heap of the sequence must satisfy, and strong local constraints tend to force short periods. When a heap of one is worth nought, peeling off a counter gives g(n − 1) itself, which the ordinary removals often supply already, and the split adds far less.

Even first digits are also the majority: 143 of the 220 uncertified codes have one, against 77 with an odd first digit, which is itself a sign that the codes allowing a lone counter to be taken are the easier ones to settle in the first place. That is a description of what the split offers, not a proof that it settles anything. It does not explain why five codes with first digit 3 hold out. A 3 lets a counter be taken leaving nothing or one heap, exactly like 7 except that 7 also allows a split after the removal. Why that difference matters to five codes and not to the other twenty-one is not visible in the digit.

Forty codes a small change from a period

Forty codes one small change from a period. The forty uncertified octal codes whose free-split version is decided by the split only at heaps of six or fewer, with whether the rule as written grows, the decisive heaps, and the period of the split version. Thirty-four grow as written; every split version repeats with period two to six from heap one to four.
Fig. 4 The forty codes the split settles by deciding only heaps of six or fewer, with whether each grows as written, the decisive heaps, and the period the split version repeats with. Thirty-four grow as written; every split version repeats from heap one to four with period two to six.

The list is dominated by two families. All eight codes beginning ·56, from ·56 to ·567, settle with period four or five after the split decides heap two alone. All eight beginning ·74 settle with period two, again after heap two alone. These are among the growing codes of the survey, ·564 and ·74 included, and as written their values run into the hundreds. With the split they are among the simplest sequences in the subject.

The pattern within the families is suggestive. The third digit, which governs removing three counters, barely matters: ·560 through ·567 differ only in it and all settle with period four or five, and the whole ·74 family settles identically. In these codes, once heap two has changed, the first two digits have already fixed the period, and the third digit adds options that the period’s values already cover.

Twenty-four of the forty need the split at heap two only. The rest need it at two to four heaps, all six or smaller, and the largest decisive heap is six. That is the same boundary a split matters at four heaps or at all of them found for two-digit codes, where every code needed the split at no heap past four or at a share of every heap: a split that matters only at small heaps is a perturbation of the initial values, and the codes here are the unsettled ones for which that perturbation is enough.

How the others repeat

The forty are the striking cases. The other ninety codes that settle do it with the split deciding at many heaps, and their periods look like ordinary octal periods.

How the split versions repeat. The 130 uncertified octal codes whose free-split version repeats within 8,000 heaps, grouped by period, with the number of codes, the latest pre-period and examples.
Fig. 5 The 130 settled split versions grouped by period, with the number of codes, the latest pre-period, and examples. Most repeat with period six or less from the first few heaps; a tail repeats with periods from 12 to 79, some after pre-periods of over a hundred heaps.

Sixty of the 130 settle with period five or less, and sixty-five with six or less. Thirty-two settle with period 24 and pre-periods up to 143, eight with period 60, and the rest with periods of 12, 20, 21, 51, 62 and 79. These longer periods are the split doing what the earlier essay saw it do for the four late codes: deciding the value at a share of all heaps, and in doing so pulling the sequence into a period it would never have had. ·776 settles with period 20 from heap 19, ·005 with period 79 from heap 31, ·444 with period 24 from heap 143.

What the split does not settle

What a split does not settle. The ninety uncertified octal codes whose free-split version has no period within 8,000 heaps, grouped by first digit, with how many grow as written, the largest value the split version reaches and examples.
Fig. 6 The ninety uncertified codes whose split version has no period within 8,000 heaps, by first digit, with how many grow as written and the largest value the split version reaches. Every one has an even first digit or a first digit of 3.

Ninety codes still show no period with the split. All but five have an even first digit. They include ·007 and ·004, long runs of ·2xx codes, and longer runs of ·4xx and ·6xx, the digits that let a single counter be removed only when what remains is split or left whole. Their split versions grow too, some faster than the originals: ·004’s split version reaches 750 by 16,000 heaps against 202 as written.

For these the split is not a small perturbation. It decides the value at most heaps, as it does for most of the 512 codes, and what it decides is another growing sequence. Whether any of these split versions eventually repeats is the same kind of question as whether the original does, and 8,000 heaps cannot say.

The convention, and what was counted

Normal play, so Grundy values add by exclusive-or. A code’s digits say what removing one, two or three counters may leave: nothing, one heap or two heaps, by bits 1, 2 and 4. The free split breaks a heap into two non-empty heaps without removing anything. The uncertified codes are those of up to three digits that the survey of short octal codes could not certify as periodic, so the list is a fact about that survey’s window and test as much as about the codes. A split is decisive at a heap when the mex over removals alone, with the split version’s values below that heap, differs from the split version’s value there.

What this census cannot show

Anything about the codes as written. ·564 is still unsettled. That its split version repeats with period four says that ·564’s recursion is one changed initial value away from a period, which is a fact about how fragile its growth is, not about where it goes.

Why the first digit sorts the codes. The odd-digit pattern is 72 of 77, and the mechanism suggested for it is a description. A proof would have to show that peeling single counters off with the split forces a period, and five codes with first digit 3 show that it does not always.

Whether the ninety eventually repeat. A window of 8,000 heaps decides nothing about sequences whose values are still climbing at the end of it, and the count is already moving. Run to 16,000 heaps, the split versions of ·374 and ·376, both bounded, show periods they did not show at 8,000, so the 130 is a floor. The growing holdouts are a different matter: ·004’s split version is still climbing at 16,000, faster than the original, and nothing about a longer window suggests it will stop.

Whether the forty are special among all codes. The census asks only about codes the survey left unsettled. A settled code with a split in front may also be decided by the split at heap two alone, and in that case the split merely moves it from one period to another. What makes the forty notable is the starting point, growth, and not the size of the change.

Still open: how few changed values settle a code

The forty codes here are settled by changing between one and four initial values, and every change came from the same source, a free split. The cleaner question drops the split. For a growing code, what is the smallest set of initial values that, changed to anything at all, makes the rule’s own recursion repeat? For ·564 the answer is at most one, at heap two. For a code whose split version does not settle, the answer might still be small, with the right change being something no split produces. If every growing short code is a handful of changed values from a period, then the codes the conjecture is about sit close to periodic ones in a precise sense, and their growth is a property of their first few heaps rather than of their rules. A period is a proof gives the test that would certify each candidate, and the census would be a search over small perturbations of the first ten heaps of each code, a few thousand recursions per code.

Part 8 of 8

One argument about Lasker. The parts either side of it:

The objects named here

The third axis, after the field and the series: the games, values and theorems themselves, and every essay that touches each one.

Eventual periodicityExhaustive searchGrundy valueMexOctal gamePeriodicityTake-and-breakUnsolved gameXOR