Concept

Grundy sequences — where it appears

The Grundy values of a game's heaps listed by size, whose eventual repetition is the whole question about an octal game. Two positions with the same Grundy value can take very different numbers of moves to play out, which the sequence does not record.

Named by 15 essays across 2 fields — each of them below, with the objects they name alongside it.

Grundy values for subtraction of 2, 5, 7. The Grundy value of every heap size for a take-away game, computed by the mex rule. A period, if the figure marks one, was found by searching the computed sequence rather than assumed — and where no period is marked, none was found in the range drawn, which is not the same as there being none.

The period is small and the proof does not say so

Every subtraction game repeats eventually — that is a theorem, and its proof gives a bound of sixteen thousand for a three-move set. Over 112 sets the longest period measured is twenty-two. The proof and the fact are four orders of magnitude apart, and the rule of thumb that closes the gap is broken by one set in the sweep.

impartial · Subtraction
How many different values a Grundy sequence has used. One curve per octal code: the number of distinct Grundy values among the first n heaps. A periodic game runs out of values and its curve levels off. The codes nobody has settled are still climbing at six thousand heaps.

The values that keep arriving

A Grundy sequence that repeats uses finitely many values and stops needing new ones. Six thousand heaps into ·007 the count of distinct values is 187 and still climbing, and the share of heaps carrying something outside the twenty-two commonest rises from 32% in the first thousand to 85% in the sixth. The rare values a periodicity argument needs to thin out are getting commoner.

impartial · Sparse space
Three take-and-break games, three kinds of answer. The Grundy sequences of Nim, Lasker's Nim and Kayles over the first heaps. Adding a move that removes nothing takes Nim's sequence from the identity to a four-line formula; bounding how much may be taken instead takes it somewhere with no formula at all.

Splitting is a move

Add to Nim a move that removes nothing — break a heap in two — and the Grundy sequence gets simpler, not harder. Lasker's Nim has a closed form with one clause per residue modulo four, exact on all 2,001 heaps checked: the identity with every fourth pair transposed. Kayles is the same kind of game with the taking bounded instead of the splitting, and it has no closed form at all, settling into a period of twelve only from heap 71 with fourteen values outside it for ever.

impartial · Lasker
Twenty-two codes, swept to 600 heaps. Octal codes and hexadecimal ones under the same search, which looks for a period and for a period with a constant added. The second kind occurs only in the wider family here, and a search that looks only for plain repetition reports those sequences as unsettled.

A period with a constant added

An octal code says what a player may do when removing k counters, in three bits; a hexadecimal code adds a fourth — leave three heaps — and the digits run to fifteen. Over twenty-two codes swept to six hundred heaps, five hexadecimal ones repeat with a fixed amount added each time round and no octal one does. Their values climb for ever and never repeat, so a search that looks only for repetition reports them unsettled.

impartial · Hexadecimal
A sequence with a rule and no period. The values of the subtraction game with Left taking 1 or 2 and Right taking 1 or 3, from heap 5 up. Each is the game whose only Left option is nought and whose only Right option is the value three heaps below — checked at every heap rather than asserted, and the two heaps where it fails are the two below the seeds.

A sequence with a rule and no period

The values of the subtraction game where Left takes one or two and Right takes one or three never repeat — thirty-one heaps, thirty-one different values. They are nonetheless completely described: three seeds and the rule v(k + 3) = {0 | v(k)} generate every one of them, which is what a pattern without a period looks like.

positions · Partizan subtraction
Every saltus in the two-digit family. The constant added each time round, over all 255 two-digit hexadecimal codes. Forty-eight codes add one, thirteen add two, six add four and three add sixteen — and one code adds three.

A code that climbs by three

Five hexadecimal codes were known to repeat with a constant added, and every one of the five constants was a power of two — either a fact about exclusive-or or a coincidence over five cases. Sweeping all 255 two-digit codes settles it: seventy-one climb, seventy of them by 1, 2, 4 or 16, and one by three. The exception is ·3f, whose values are 3⌊n/6⌋ + (n mod 3) on every heap to twelve hundred.

impartial · Hexadecimal
Two conditions, one of which survives. Two candidate conditions on a pair of subtraction lists, scored over all 961 pairs drawn from one to five. Translation holds on 83 pairs and every one of them repeats; all-odd holds on 49 and four of them do not.

The condition that survived the wider sweep

Which pairs of subtraction lists have a value sequence that repeats? Over the 49 pairs drawn from one, two and three, two conditions answer it identically — a translation and all-odd — and both are exactly right. Over the 961 pairs drawn from one to five, all 83 translations still repeat with no exception and four all-odd pairs do not, at heap ninety with a period as long as forty-two. Neither condition is necessary: 104 pairs repeat that satisfy neither.

positions · Partizan subtraction
Two counters, not one. The four periods of the odd-saltus class against the two base-three counters, with which each follows.

Two counters, and one displaced term

The rung below found four Grundy sequences in the odd-saltus class and asked which term each displaces and whether the digits predict it. They do — but there are two base-three counters and not one, chosen by whether a heap of one can be taken away. And there are three sequences rather than four: the fourth is the third with three isolated values, and was counted separately because its period had not settled.

impartial · Hexadecimal
Not rare at all. How many hexadecimal codes whose sequence settles have a stretch of heaps before the pattern begins.

A pattern that has not started yet

A pre-period was supposed to be rarer in this family than a defect. Two hexadecimal codes in five have one, 321 have a pre-period longer than their own period, and the code the rung below found slow takes fifty-four heaps to settle rather than two blocks — which is also the account of three defects the rung below recorded and could not explain.

impartial · Hexadecimal
One of the two quantities is inert. The candidate predictors of a pre-period's length, each scored by correlation against the measured length.

The quantity that carried nothing

The rung below proposed predicting a pre-period's length from the saltus and the period. The saltus correlates with it at −0.03, which is nothing; the period correlates at 0.77 with a coefficient of one, so a pre-period is about one period long. The digit that predicts whether there is one predicts nothing at all about how long.

impartial · Hexadecimal
The formula as the limit of periodic games. Lasker's Nim above eight versions of it with the number of counters that may be taken bounded at one to eight. Each bounded game is periodic and agrees with Lasker's formula on its first few heaps; the region of agreement grows with the bound.

The formula is a limit

Cap the take in Lasker's Nim at k counters and the game is a finite rule table, 4.33…3, whose Grundy sequence repeats with period k + 1 rounded up to even and follows Lasker's formula until the cap bites. The formula is what those periods converge to. And the same column of codes, with a free split in front, holds Kayles itself: the rule 4.4 on a heap of n + 1 is Kayles on a row of n.

impartial · Lasker
A rare class that thins. The number of heaps of ·354 with an odd Grundy value in each block of two thousand, through twenty thousand heaps: 288, 22, 3, 1, 0, 0, 0, 4, 1, 2. The odd values fall away after the first block and keep turning up rarely to the end.

A rare class exclusive-or respects

The rare values of ·007 were measured by rank — everything outside the twenty-two commonest — and found getting commoner. A sparse-space argument needs a different split: a rare class closed under nothing and a common class closed under exclusive-or, which is to say a parity of bits. Over every parity of every bit, ·007 and ·6 have no class that thins. Across the 79 growing octal codes of up to three digits, one does: ·354, whose odd values fall from 288 in its first two thousand heaps to seven in its last ten thousand.

impartial · Sparse space
The odd values do not stop. The odd Grundy values of the octal game ·354 counted in blocks of ten thousand heaps to 100,000. The first block holds 314; every later block holds between three and eleven, and the last odd value in range is at heap 99,600.

The odd values keep coming

·354 is the one growing octal code of up to three digits whose values have a class that thins: 288 odd values in the first two thousand heaps, seven between ten and twenty thousand, the last of those at 18,908. A sparse-space argument needs that class to stop. Taken to a hundred thousand heaps it does not: 48 more odd values arrive after twenty thousand, every block of ten thousand holds some, and the last in range is at 99,600. They keep no schedule a remainder can see, their gaps are spread like arrivals, and most of them are one number, 37 — each one a heap where every split that could have reached 37 misses it.

impartial · Sparse space
Blocks of three, and a two past eight. The Grundy values of the subtraction game with takes 3 and 8, for heaps 0 to 32. The sequence has period 11 from the start; within a period the values come in blocks of three alternating 0 and 1, and the even block that reaches past 8 holds 2 instead of 0.

Two takes, one line

A subtraction game with two legal takes, a and b, has a Grundy sequence that fits in one sentence: cut the heap's remainder modulo a + b into blocks of a, alternate nought and one, and turn every even block at or past b into a two. The proof is three cases long and holds for every pair. Add a third take and the sentence has no successor — but it does not vanish. The period of a three-take game is a sum of two of its takes six times in seven, which sum is decided by the third take's remainder modulo the first two's period, and the long irregular periods cluster on the one arrangement where the third take is the other two added together.

impartial · Subtraction
A formula for the sum. The subtraction games {a, b, a + b} for every a < b ≤ 80: the period formula agrees with the exact period on all 3,160; 1,195 pairs share a factor, 1,362 coprime pairs are in the short case and 603 in the long; no pair has a preperiod; the longest period is 6,318.

The third take is the other two

A subtraction game whose third take is its first two added together was where the long irregular periods of three-take games clustered, and the question was whether that one arrangement has a formula or is where the formulas stop. It has one. Divide out any common factor and look at the heap one short of the middle take: if it would be a loss when only the smallest take is allowed, the period is the smallest take times twice the middle take plus a remainder, otherwise it is short and the whole sequence is two bands of blocks. The formula gives the exact period of every one of the 3,160 games to eighty.

impartial · Subtraction

Named alongside it

The objects these essays reach for when they reach for this one.

PeriodicityExhaustive searchEventual periodicityOctal gameGrundy valueClosed formImpartialEnumerationMexTake-and-breakCounterexampleSubtraction game

All concepts