Skip to content

Octal games, explained from the start: how I extended the tables of unsolved take-away games

ExplainerNovember 16, 2026updated Nov 20, 202628 min

A ▲ after a number means it has a note at the foot of this page.

In July I took the reference tables for a set of unsolved take-away games two to four times further. The expert who keeps them reran four, got the same numbers, and credits me by name.

In July 2026 I took the reference tables for twelve unsolved take-away games two to four times past their published ends, which had not moved since 2021, one of them past a billion heap sizes. The mathematician who keeps those tables, Achim Flammenkamp, reran four of the games on his own machines, got the same numbers, and credits me by name on his page.

  • The billion: my run of game 0.007 reached 2 to the power 30 = 1,073,741,824 heap sizes (sizes of the starting pile in the game), four times its published record, in 7.06 hours on one computer core.
  • And nothing new in it: past the last rare value (an exception to the pattern the tables are watched for), at heap 5,029,983, no new rare value appeared in more than a billion further heaps.

The games are octal games: two players take counters from heaps, and a short code such as 0.007 gives the rules. Every heap size has a number, its Grundy value, that says how to play perfectly, and Flammenkamp's web page holds the standard tables of these numbers. For game 0.007 my run went from 228 heap sizes (about 268 million) to 230 (about 1.07 billion), the furthest published computation of that game when it finished on July 5. Claude agents (Anthropic), working under my direction, wrote the program; I set the rule that every run had to reproduce the published tables before going further, ran the jobs on my laptop, and wrote to Flammenkamp. In four of the games my runs found new "rare" values past the old ends: rare values are the exceptions these tables are watched for, because if a game's rare values ever stop for good, its values must repeat forever and the game is solved. In the other eight, none appeared.

  • What: Grundy values for 12 unsolved octal games, computed July 5 to 17, 2026.
  • How far: two to four times past each published end. For 0.007, every value up to 230, in 7.06 hours on one processor core.
  • Found: new heap sizes with rare values past the old ends in four games (0.114, 0.606, 0.006 and 0.314), 196,671 new rare heap sizes in all; none in the other eight.
  • Checked: every run first reproduced the published numbers at the old end. Flammenkamp read the 0.007 solver's code and reran 4 of the games on his own machines; everything compared matched.
  • Credit: his page names me for extending the tables, from July 2026 (there by July 22 and still there on November 16, 2026).
  • OEIS: 12 entries, all published by August 5, 2026: A395248 for 0.007 is a new entry I wrote, and eleven existing entries were extended.
  • Since then: his page has taken every one of the twelve games further (since October 2026 it also credits a fast parallel program by Udo Sprute). For 0.007 it now reaches 234, about 17 billion heap sizes.

Words first

Read these in order. Each one uses only the words before it, and the plain text below uses nothing else; the boxes marked Precisely restate things in symbols for specialists. Readers who already know Grundy values and octal codes can skip to the short version.

A take-away game

Put some heaps of counters on a table. Two players take turns, and a move changes one heap according to a fixed rule. The player who cannot move loses. Both players see everything and have the same moves available; only whose turn it is differs. Games like this are called impartial, and "the player who cannot move loses" is called normal play.

Example

Nim is the best-known one: a move takes any number of counters from one heap. With two heaps of 2, the second player wins by copying: whatever the first player takes from one heap, the second takes the same from the other, so the second player always has a move and makes the last one.

Heaps and positions

A heap is one pile of counters, and its size is how many counters it holds. A position is everything on the table: a list of heap sizes. Each move turns one position into another, and every game here ends, because each move removes counters or splits a heap into smaller ones.

Example

Heaps of 8, 11 and 15 make one position. If a move takes 3 counters from the 11 and splits the remaining 8 into heaps of 3 and 5, the new position is 3, 5, 8 and 15.

An octal code

Each game is named by a short code of digits after a point. The digit in place k after the point says what may happen when a move takes k counters from one heap. Each digit is a sum of up to three switches: 1 means the move may take the whole heap (when it holds exactly k), 2 means it may leave the rest as one heap, and 4 means it may split the rest into two nonempty heaps. The largest digit is 1 + 2 + 4 = 7, so the digits run from 0 to 7, which is base 8: hence octal. A digit before the point is 0 or 4, and a 4 there means a move may also split a heap in two without taking anything, as in 4.327 and 4.004.

0
.
0
0
7
  • place 1: take 1: never
  • place 2: take 2: never
  • place 3: take 3: 7 = 1 + 2 + 4
1 take a whole heap of exactly 3, leaving nothing2 leave the rest as one heap4 split the rest into two heaps

Reading 0.007. The first two places are 0, so a move may never take one or two counters. The third is 7, so a move takes exactly three, with all three switches on.

Example

In 0.007 a move takes exactly three counters from one heap. The rest may vanish (if the heap held exactly three), stay as one heap, or be split into two heaps. Kayles is 0.77: take one or two counters, and the rest may vanish, stay or split. In 0.4 a move takes one counter and must split the rest into two heaps, so heaps of 1 and 2 have no move at all.

Winning and losing positions

A position is lost for the player about to move if every move leads to a position that is won for the opponent, and won if some move leads to a lost one. A position with no move at all is lost, since the player to move cannot move.

Example

In 0.007, a lone heap of 3 is won: take all three, and the opponent has no move. A lone heap of 2 is lost: no move takes three counters from it.

The mex

The mex of a list of whole numbers is the smallest whole number (0, 1, 2 and so on) that is missing from the list. The name is short for "minimum excluded".

Example

The mex of 0, 1 and 3 is 2. The mex of 1 and 2 is 0, because 0 is missing. The mex of an empty list is 0.

XOR, adding without carrying

XOR combines two whole numbers: write both in binary (base 2) and add each column without carrying, so 1 + 1 gives 0 in that column. It is also called the nim sum.

51013011XOR 6110
30113011XOR 0000

5 is 101 in binary and 3 is 011. Column by column without carrying: 110, which is 6. Any number XOR itself is 0.

The Grundy value of a heap

Every heap size n gets a number G(n), its Grundy value (also called its nim value). List the values of everything one move can leave; G(n) is the mex of that list. When a move leaves two heaps, the value of what it leaves is the XOR of their two values. A heap with no move has value 0.

Heap of 8take 3Leave one heapG(5) = 1Split 1 + 40 XOR 1 = 1Split 2 + 30 XOR 1 = 1

Every move from a heap of 8 in game 0.007: three counters are taken, and the remaining 5 stay as one heap or are split as 1 + 4 or 2 + 3. Each move leaves value 1, so the list is just 1, its mex is 0, and G(8) = 0.

The point of the numbers: the player to move loses against best play exactly when the XOR of the values of all the heaps on the table is 0. So a table of values, heap size by heap size, is the whole strategy for the game, as far as the table goes.

Periodic, and Guy's question

A list of values is periodic when, from some heap size on, it repeats in a fixed cycle forever. Then the game is solved: a finite table gives every value. Richard Guy asked whether every octal game with finitely many nonzero digits is eventually periodic. Nobody knows. A game is called unsolved when no repeat has been found in its values.

Example

Kayles (0.77) repeats every 12 heap sizes from heap size 71 on, and Dawson's chess (0.137) every 34 from 52 on. Officers (0.6, take one counter and leave one or two heaps) is unsolved, and so are game 0.007 and the other eleven games here: none has shown a repeat as far as anyone has computed.

Rare and common values

Flammenkamp sorts each game's values into two classes with a fixed test on their binary digits, chosen once for each game. Write the value in binary, look only at the places his page lists for that game, and count the 1s there. An even count makes the value rare; an odd count makes it common. His page lists the places for each game; the choice is part of his tables, and a good choice is one under which rare values become scarce. In these games rare values turn up less and less often as heaps grow. The split matters for two reasons, both explained further down: if a game's rare values ever stop for good, its values must repeat forever, and the split is what makes computing a billion values fast.

10240look5121look2560look1280look640skip320look161look80look40skip21skip10skip

530 = 512 + 16 + 2. Places looked at that hold a 1: 2 (512 and 16). Even, so 530 is rare.

The test for 0.007 looks at the places worth 8, 16, 32, 128 and every higher place, and skips 1, 2, 4 and 64. The value 530 has a 1 in two of the places looked at, so it is rare. It is the value of the last rare heap in 0.007, at heap size 5,029,983.

Powers of two, and the end of a table

2k means k twos multiplied together; each step up in k doubles the number. Since 210 = 1,024 is about a thousand, 220 is about a million and 230 about a billion. The end (or bound) of a table is the heap size up to which every value has been computed, and in this field it is usually a power of two.

Example

228 is about 268 million and 230 is two doublings more, four times as much: about 1.07 billion.

The OEIS and a b-file

The OEIS, the On-Line Encyclopedia of Integer Sequences, is the public database of number sequences, and its editors review every change before it goes live. An entry lists the first terms of a sequence; its b-file is a longer table of terms attached to the entry.

Example

A395248 is the entry for game 0.007. It begins 0, 0, 0, 1, 1, 1, 2, 2, 0, 3, 3, and its b-file holds the values for every heap size from 0 to 10,000.

A review and a rerun

A review of a computation means reading the code and judging whether it looks right. A rerun means computing the same thing again with a separate program and comparing the output. A careful reader can miss a mistake that produces believable numbers; a rerun catches it unless the second program makes a mistake with the same effect on what is compared.

The short version

  • An octal game is a two-player game of taking counters from heaps, with rules written as a code such as 0.007. Every heap size has a Grundy value, found by the mex rule, and the values are a complete strategy.
  • Whether the values of games like 0.007 eventually repeat is an open question, asked by Richard Guy. Computing further is how people look for an answer, and the thing the long tables are watched for is new heap sizes with rare values.
  • In July 2026 I extended the reference tables for twelve such games two to four times past their published ends, after reproducing those tables exactly. Game 0.007 went to about 1.07 billion heap sizes.
  • Four games produced new heap sizes with rare values past the old ends; eight produced none.
  • The expert who keeps the tables reran four of the games and got the same numbers. His page has since taken every game further.

Small cases, by hand

Here is game 0.007 worked one heap at a time. A move takes three counters, so heaps of 0, 1 and 2 have no move, and their value is the mex of an empty list: 0. A heap of 3 can only be taken whole, leaving nothing (value 0), so its value is the mex of {0}, which is 1. A heap of 6 can leave a heap of 3 (value 1) or heaps of 1 and 2 (0 XOR 0 = 0), so its value is the mex of {0, 1}, which is 2. The table does every heap up to 10 the same way; the rows shaded are the heaps with value 0, the lost ones.

HeapEvery move (take three counters), and the value it leavesValues reachedSmallest missing
0no move: a move needs three counters{ }0
1no move: a move needs three counters{ }0
2no move: a move needs three counters{ }0
3
  • leave nothing: value 0
{0}1
4
  • leave a heap of 1: value 0
{0}1
5
  • leave a heap of 2: value 0
  • leave heaps of 1 and 1: 0 XOR 0 = 0
{0}1
6
  • leave a heap of 3: value 1
  • leave heaps of 1 and 2: 0 XOR 0 = 0
{0, 1}2
7
  • leave a heap of 4: value 1
  • leave heaps of 1 and 3: 0 XOR 1 = 1
  • leave heaps of 2 and 2: 0 XOR 0 = 0
{0, 1}2
8
  • leave a heap of 5: value 1
  • leave heaps of 1 and 4: 0 XOR 1 = 1
  • leave heaps of 2 and 3: 0 XOR 1 = 1
{1}0
9
  • leave a heap of 6: value 2
  • leave heaps of 1 and 5: 0 XOR 1 = 1
  • leave heaps of 2 and 4: 0 XOR 1 = 1
  • leave heaps of 3 and 3: 1 XOR 1 = 0
{0, 1, 2}3
10
  • leave a heap of 7: value 2
  • leave heaps of 1 and 6: 0 XOR 2 = 2
  • leave heaps of 2 and 5: 0 XOR 1 = 1
  • leave heaps of 3 and 4: 1 XOR 1 = 0
{0, 1, 2}3

Every move from each heap, from the rule of 0.007.

Carried on, the values begin as below. These are the first terms of OEIS A395248, the entry I wrote for 0.007. Values of 0 are in colour.

Heap size n01234567891011121314151617181920212223
Value G(n)000111220331110433322244

Who wins, with two heaps

Heaps of 8 and 15. Their values are 0 and 4, and 0 XOR 4 = 4, which is not 0, so the player to move can win. The winning move: take three counters from the heap of 15 and split the remaining 12 into 6 and 6. The heaps are now 8, 6 and 6, worth 0 XOR 2 XOR 2 = 0, a lost position for the opponent. From here, whatever the opponent does, there is always a reply that brings the total back to 0.

Preciselythe exact statement, for readers who want it

Sprague-Grundy theorem (Sprague 1935, Grundy 1939). Every impartial game under normal play is equivalent to a single Nim heap of size G(position) = mex{G(option)}, and the value of a sum of games is the XOR of their values. For an octal code d0.d1d2…, with bits 1, 2 and 4 of dk allowing a removal of k that leaves 0, 1 or 2 nonempty heaps,

G(n) = mex( {0 : bit 1 of dn} ∪ {G(n − k) : bit 2 of dk, n − k ≥ 1} ∪ {G(a) ⊕ G(b) : bit 4 of dk, a, b ≥ 1, a + b = n − k} ).

A position is a P-position (lost for the player to move) exactly when the XOR of its heaps' values is 0.

Does the list repeat?

Many octal games are periodic, and a computer can prove it. Guy and Smith showed in 1956 that if the values have repeated with some period from a starting heap size up to about twice that starting size plus one period, the repeat goes on forever. The exact margin also adds t, the place of the code's last nonzero digit (3 for 0.007, 2 for Kayles). The table checks this for two classical games.

GameRepeats everyFrom heapLast digit in place tMust hold for heapsChecked here
Kayles 0.771271271 to 155holds, so the repeat goes on forever
Dawson's chess 0.1373452352 to 140holds, so the repeat goes on forever

Computed from the rules of the two games.

The test only works in one direction. A computation can prove that a game repeats, once a repeat shows up and has run long enough. It can never prove that a game does not repeat, because a game that has not repeated yet might start later. That is why games like 0.007 stay open no matter how far the tables go, and why the long runs watch for something more specific.

Preciselythe exact statement, for readers who want it

Guy-Smith test (codes with d0 = 0, last nonzero digit in place t). If G(n + p) = G(n) for every n with n0 ≤ n < 2n0 + p + t, then G(n + p) = G(n) for every n ≥ n0.

Rare values: what the long tables are watched for

The rare-common split behaves like even and odd numbers under XOR: two values of the same class combine to a rare value, and one of each combines to a common value. The table shows it on values from 0.007.

First valueSecond valueXORRule
3 (rare)5 (rare)6 (rare)same class: rare
8 (common)16 (common)24 (rare)same class: rare
530 (rare)8 (common)538 (common)one of each: common
530 (rare)1,689 (common)1,163 (common)one of each: common

With the test for 0.007; values 0 to 7 are all rare in this game, since the test skips the places worth 1, 2 and 4.

Flammenkamp's page states the key fact: if a game's rare values ever stop for good, its values must eventually repeat. The reason, in steps: once rare values have stopped, every new value is common, so it is the smallest common number that no move reaches, and moves that reach a rare value make no difference to it. By the parity rule, a two-heap move reaches a common value only when one of its two parts is a rare heap, and every rare heap is no bigger than the last one. So the moves that matter for a new heap all leave one part no bigger than that last rare heap, which means the new value depends only on the values in a stretch of fixed length just behind it. And since a heap then has at most one such move for each rare heap, plus the move that leaves a single heap, the smallest missing common number can never get very large, so the values stay below a fixed bound. A rule that reads a fixed-length stretch of values from a limited set can only be in finitely many states, so it must eventually come back to one it has been in and then repeat. So a long table answers one question above all: do rare values keep appearing past the old end?

For 0.007 they stopped early. The figure counts the rare heap sizes in each doubling stretch, from the production run's full list of them. The counts rise, peak between 215 and 216, and fall away; the last rare heap is at 5,029,983, and there is none from 223 up to 230. At the old end of 228 the computed range already reached about 53 times that last rare heap size; at 230 it reaches about 213 times it.

Animation, no sound. A heap of ten counters: three from the middle lift away and the rest split into heaps of 3 and 4. Then the nim values of the game 0.007 fill a table for heap sizes 0 to 39, and a strip marks the rare positions, heap sizes whose value is of the rare kind, among the first 2,000 heap sizes; they are dense up to about 500, sparse from about 500 to 1,000, and denser again up to 2,000. Last, a log scale runs from 1 to 2 to the 30, the bound computed in July 2026. Each bar shows what share of the heap sizes in its stretch of the scale are rare. The bars fall overall, from every heap size being rare at the start to almost none past a million, with a deep dip between about 500 and 1,000 and smaller ups and downs. A ring marks the last rare position, heap size 5,029,983, and a line runs from there to the end of the scale with no rare position on it.

In the game 0.007 a move takes three counters and may split the rest into two heaps. Heap sizes with a rare value thin out: each bar on the long scale is the share of heap sizes in that stretch that are rare. The last one is 5,029,983, with none after it up to 230, the bound computed in July 2026 (not the current record).
1101001,000none from 223 to 23020210220230last: 5,029,983

Rare heap sizes of 0.007 in each doubling stretch up to 230, on a logarithmic height scale, from my run's list of all 22,476 of them.

Preciselythe exact statement, for readers who want it

Sparse space (Flammenkamp's convention, after Winning Ways). G(n) is rare when popcount(G(n) AND m) is even, for a fixed game-specific mask m; for 0.007, m has 1s at bits 3, 4, 5 and every bit from 7 up. The parity of popcount(x AND m) is additive under XOR. If no rare position exceeds N, then for n > N the value G(n) is common, hence the least common value not attained, and every common option of n has a rare part r ≤ N; so G(n) is determined by a window of length about N + 3 over a bounded set of values, and the sequence is ultimately periodic. A computed table cannot show that rare values never return.

The method, step by step

The plain rule, and why it gets slow

The by-hand method works for any heap, but the two-heap moves make it slow. In 0.007 a heap of 1,000 counters can be split about 500 ways, each needing an XOR, and the work per heap grows with the heap, so doubling the table roughly quadruples the work.

Heaps computed, up toTwo-heap moves the plain rule checks, in allDigits
1,000248,5026
1,000,000249,998,500,00212
22818,014,398,106,828,80217
230288,230,374,541,099,01018

The exact count of two-heap moves the plain rule must look at for 0.007, for every heap up to the given size. At 230 it is about 2.9 × 1017.

The shortcut: only rare parts matter

By the parity rule, a two-heap move can leave a common value only if one of the two heaps has a rare value. So when the value being sought is common, only splits with a rare part need checking, and in these games there are few rare heaps. A rare value is never assumed away: before settling on a common value, my solver checks each smaller rare value against all of the heap's two-heap moves, so a new rare value is found whenever one occurs, and it then joins the list of rare heaps. This shortcut is the sparse-space method of Winning Ways ("sparse space spells speed"), which Flammenkamp's tables use; my solver is a new implementation of it. It turned an out-of-reach job into a run of 7.06 hours on one core for 0.007, about 42,219 values a second.

Example

A heap of about a billion counters in 0.007 can be split about 500 million ways. To find which common values its moves reach, the solver needs only the splits in which one part is one of the 22,476 rare heaps.

Reproduce before extending

No run was allowed to report anything new until it matched the published table at its old end. For 0.007 that meant these numbers Flammenkamp published at 228 (his page also lists a depth figure, which my runs did not record):

Published at the old end, heap size 228ValueMy run
Heap sizes with a rare value22,476same
Heap size of the last rare value5,029,983same
Largest value, and the heap size where it first occurs1,689 at 248,902,927same
Heap sizes with value 0 (lost for the player to move)37same
Heap size of the last value 016,170same
First heap size with each of the values 1, 2, 4, 8, up to 1,024all elevensame

The numbers from his page for 0.007 at 228 that my run compared, all matched before it went past that point. The other eleven games matched their published numbers (rare count, last rare heap, largest value and where it sits, count of value 0) at their own old ends.

Extend, and save progress on the way

Then each run carried on to its new end (for 0.007, every value up to ▲), saving checkpoints so that a stop and restart gives the same output; that was tested before the long runs began. Each game ran on one core of my laptop.

Check afterwards

A plain mex program, written separately and without the shortcut, checked the first 100,000 values of every game. After each run, separately written code recomputed the opening values (the b-file terms) byte for byte and rescanned the finished table for every rare heap past the old end. A Claude agent wrote that checking code too.

The rerun by the keeper of the tables

I sent Flammenkamp the reproduction first and then the new range. He read the 0.007 solver's code, and he recomputed four of the games on his own machines.

My solver (Claude agents)my laptop, July 2026His runshis machines, July 2026Compare the numbers0.007, 0.006, 0.606, 0.114:the same

The rerun compares the outputs of two separate computations. For the four games he reran, every number compared was the same.

GameHe computedWithWhat was compared
0.007to 228, his old end, then on to 231Over his old range, his own program from 2001 (3 hours 20 minutes). Past it, on his machines; which program made the longer run is not on record.Rare count, heap size of the last rare value, largest value and where it sits: all the same as mine.
0.006to 227, the end of my tableHis own program, on his machinesHow many heap sizes have each value, for all 5,593 values; plus the last rare position and where the largest value sits: all the same.
0.606to 229, the end of my tableHis own program, on his machinesHow many heap sizes have each value, for all 921 values: the same.
0.114to 228, the end of my tableHis own program, on his machinesHow many heap sizes have each value: no value differed, and the rare count from his table is 322,443, the same as mine.

Who reran what, from my record of his runs and the listings he sent in July 2026. A tally means how many heap sizes have each value.

What the rerun leaves open

  • Independent of my code: his own program from 2001 for 0.007 over his old range (it uses the same sparse-space method as mine, so a slip shared in implementing the method would not show), and his own programs for 0.006, 0.606 and 0.114 over my full ranges.
  • Not independent: his longer run of 0.007, past his old range. I sent him my solver's code for review and he edited a copy, and which program made that run is not on record.
  • Not rerun: 0.314, whose single new rare value rests on my own two checks. His page now lists one more rare value for it than my count, which fits, though positions were not compared.
  • Not compared anywhere: individual values one by one. The tallies and summary numbers are strong fingerprints, but two tables that differ only by values swapped between heap sizes share them.

The fuller account is on the page about what his rerun checked.

The games, one by one

The twelve are unsolved games from Flammenkamp's page; two more on my list, 0.76 and 0.764, were set aside in July as too slow to run. Some games appear in the OEIS under a different code whose list of values is the same list shifted by a few places; the table near the end of the page names the code each entry is filed under.

GameOld endMy end, July 2026FactorRare values, old → newNew rare heap sizesLast rare heap sizeLargest value, old → new
0.0072282304×22,476 → 22,476none5,029,9831,689 → 1,689
0.1462292302×5,817 → 5,817none307,1661,521 → 1,547
0.2062292302×10,339 → 10,339none5,668,113803 → 847
4.3272282304×7,111 → 7,111none1,084,1822,247 → 2,247
4.0042282304×8,914 → 8,914none43,090,7601,996 → 1,996
0.1432282292×9,417 → 9,417none2,561,883148 → 148
0.6062282292×53,811 → 61,9738,162536,867,4681,598 → 1,610
0.2442272282×65,367 → 65,367none7,596,6176,718 → 7,230
0.1142262284×136,867 → 322,443185,576268,427,7911,610 → 1,610
0.0042262272×184,854 → 184,854none15,869,1816,279 → 6,279
0.3142262272×180,147 → 180,1481130,980,7493,105 → 3,105
0.0062262272×487,832 → 490,7642,932134,149,7646,580 → 6,580
In all196,671

The July 2026 runs. Old end: where Flammenkamp's table stopped, as last updated in May 2021, and where each run first matched his numbers. Shaded rows are the four games with new heap sizes with rare values. A larger largest value means the values are still growing; on its own it says nothing about rare values. No game produced a new value 0 in the new range.

2262272282292302312322332342352360.0070.1460.2064.3274.0040.1430.6060.2440.1140.0040.3140.006before July 2026my July 2026 endhis page, Nov 2026

The same ends on a doubling scale: each step to the right is twice as many heap sizes. The solid segment is my July 2026 extension; the dashed segment is how much further Flammenkamp's page goes as of November 16, 2026.

The games that kept moving

A new rare value past the old end shows that the game's rare values had not stopped by the old end. The four that kept moving each did so differently:

GameStretchNew rare heap sizesTheir valuesLast one at
0.114226 to 228185,576160 to 1,021268,427,791
0.606228 to 2298,1621,026 to 1,069536,867,468
0.006226 to 2272,9321,537 to 4,605134,149,764
0.314226 to 2271one value, 1,936, at heap size 130,980,749130,980,749
  • 0.114: 185,576 new rare heaps, the most in the batch, all with small values, and the last one right at my end.
  • 0.606: 8,162 new rare heaps, every one with a value in the narrow band 1,026 to 1,069. I have no explanation for the band and have asked Flammenkamp about it.
  • 0.006: 2,932 new rare heaps, with values spread widely.
  • 0.314: a single new rare heap, G(130,980,749) = 1,936, far past its previous rare heap.

The games that stayed quiet

The other eight produced no new rare value. That fits with those games eventually repeating, but a finite run cannot prove it, and 0.314 is the warning: a long silence there was broken by one late rare value. For 0.007 and 4.004 the extension lengthened a silence that was already long.

Since July

By July 22, 2026 his page credited me by name, and it still does: read on November 16, 2026, its Support section says "In July 2026, Tyler Satchel Orden from Los Angelos, USA, supports this database of octal games by extending the sgv-sequence of lots of octal games" (quoted as it appears, spelling included). He published his continuation of 0.007 to 231 on July 17, and his page has since taken every one of the twelve games past my ends:

GameMy July endHis page nowRare valuesLast rare heap sizeLargest value, first at
0.00723023422,4765,029,9831,691 at 16,147,792,901
0.1462302365,817307,1661,636 at 36,376,171,044
0.20623023610,3395,668,113870 at 23,409,412,874
4.3272302357,1111,084,1822,247 at 7,409,767
4.0042302358,91443,090,7602,002 at 19,690,197,206
0.1432292349,4172,561,883148 at 26,789,789
0.606229231112,7102,147,286,9931,637 at 1,018,462,325
0.24422823165,3677,596,6177,374 at 1,032,170,197
0.114228229549,882536,839,5121,670 at 395,200,415
0.004227231184,85415,869,1816,589 at 1,641,920,418
0.314227231180,149333,219,9103,589 at 170,683,843
0.006227230512,008832,962,2456,699 at 945,775,613

Each game's row on Flammenkamp's page as read on November 16, 2026 (his footer: last updated 2026-11-16). These are later runs on his page, not mine.

The pattern held up in his longer runs: the eight quiet games still show exactly my rare counts, and all four active games have more rare values on his page than in my July runs. And the largest value of 0.007 has grown, to 1,691 at a heap size of about 16 billion, far beyond my range, while its rare values have stayed silent through 234.

What it is part of

  • Flammenkamp's tables. Sprague-Grundy values of octal games is the field's reference data for these games; my July runs are credited there.
  • The OEIS. Game 0.007 had no entry, so I wrote one, published on July 17, 2026. The other eleven games already had entries, some under the same code and some under an equivalent code with the terms shifted (the values of 0.006 are those of A071443, filed as game .113337, shifted by three places). I extended them with comments giving the new ends, in three waves; the last was published on August 5, 2026.
GameEntryFiled asMy part
0.007A395248octal game .007New entry, written by me
0.146A071470octal games .146 and .1461Extended
0.206A071484octal game .3037Extended
4.327A125941octal game 4.327Extended
4.004A125928octal game .7007Extended
0.143A071469octal games .143 and .1431Extended
0.606A071513octal game .3737Extended
0.244A071487octal game .3077Extended
0.114A071459octal game .114Extended
0.004A071441octal game .1113337Extended
0.314A125921octal game .314Extended
0.006A071443octal game .113337Extended
  • Guy's question and Winning Ways. Whether every finite octal game is eventually periodic is on Richard Guy's list of unsolved problems in combinatorial games, and the sparse-space method is from the book Winning Ways by Berlekamp, Conway and Guy.
  • On this site. The records of the work are on the twelve-games results page and the page for game 0.007; what the expert's rerun did and did not check is on its own page.

Credit

  • The method is the sparse-space method of Winning Ways, which Flammenkamp's tables use; his 2001 program for 0.007 ran at nearly the same speed as mine.
  • The tables before July are his, last updated in May 2021, and so are the bit strings that define rare values for each game.
  • The July runs are mine: the solver and the checking code were written by Claude agents (Anthropic) under my direction; I set the reproduce-first rule, ran the jobs on my laptop, and decided what to send.
  • The reruns were done by Flammenkamp on his own machines, and the furthest values for every one of the twelve games are now on his page.
  • The OEIS editors reviewed and approved the twelve entries; that review checks that an edit belongs in the entry, which is lighter than a recomputation.

Try it

The calculator computes the Grundy values of any octal code for every heap size up to the limit, in the browser, by the plain mex rule from the start of this page. For the twelve games it marks the rare values using the test Flammenkamp's page lists for each, and it looks for a repeat that the Guy-Smith test proves. Try 0.77 for Kayles, then 0.007 to see a game whose values show no repeat in this range.

0.007: largest value 89; 616 rare values, the last at 1,999; no proved repeat in this range.

The rule
A move may take 3 (the whole heap, if it has exactly 3, or leaving one heap, or leaving two heaps).
First values
00011122033111043332224405522233050111333564410556627778019272333905448662711105593182850111222733944011333922813509122613135…

Heap sizes 0, 1, 2 and on, left to right. Filled boxes are rare values, by the bit string on Flammenkamp’s page for this game.

Largest value
89, first at heap size 1,889
Value 0
28 heap sizes from 0 to 2,000 have value 0 (lost for the player to move, if that heap is alone); the last is 1,048.
Rare values
616 of the 2,001 heap sizes (30.8 in every hundred); the last is at 1,999.
Repeats?
No repeat that the Guy-Smith test can prove within heap sizes up to 2,000. A larger limit may find one, or the game may be one of the unsolved ones.
890heap size 2,000

A heap of 15 has 7 moves. The values they leave are {0, 1, 2, 3}, so the smallest missing number is 4.

  • take 3, leave a heap of 12: value 1
  • take 3, leave heaps of 1 and 11: 0 XOR 1 = 1
  • take 3, leave heaps of 2 and 10: 0 XOR 3 = 3
  • take 3, leave heaps of 3 and 9: 1 XOR 3 = 2
  • take 3, leave heaps of 4 and 8: 1 XOR 0 = 1
  • take 3, leave heaps of 5 and 7: 1 XOR 2 = 3
  • take 3, leave heaps of 6 and 6: 2 XOR 2 = 0

Then play. The computer knows every value and plays perfectly: whenever the XOR of the heap values is not 0, it moves to make it 0. Showing the values reveals the whole strategy, and the moves that win are marked.

A new game: the player moves first. Pick a heap, then a move.

Up to 5,000 heap sizes the plain rule is quick in a browser. Pushing 0.007 to 230 took the sparse-space method and hours of computing.

What was checked

  • The July runs: every run matched Flammenkamp's published numbers at the old end before going further; a separate plain program checked the first 100,000 values of every game; afterwards the opening values were recomputed byte for byte and every new rare heap was found again by fresh code.
  • The reruns: Flammenkamp's own computations matched for 0.007 over his old range and on summary numbers past it, for 0.006 (tallies of all 5,593 values), for 0.606 (all 921) and for 0.114 (no value differed; rare count 322,443).
  • This page: the calculator and the tables use one function for the values, which matches the OEIS b-files of A395248 (0.007), A071459 (0.114), A071469 (0.143), A071470 (0.146) and A125921 (0.314) on every term, ten thousand terms each; with the rare test for 0.007 it finds exactly the rare heaps of my production run up to heap size 20,000; and it reproduces the periods of Kayles and Dawson's chess. These checks were run by the same kind of AI system that wrote the solver, so they could share a blind spot with it.
  • The extension past the 2021 ends is mine: in July 2026 my runs were the first to take these 12 games past their published tables, and the new rare heaps in four of them were first found by my runs. The longest tables now are his.
  • What the work leaves: the reruns by the keeper of the tables (independent of my code for 0.006, 0.606 and 0.114 over my full ranges, and for 0.007 over his old range), the OEIS entry A395248 for 0.007 and the extended entries, and the single late rare value of 0.314, a reminder that a long silence in a game's rare values is not proof that they have stopped.
  • Still open: whether any of the twelve games eventually repeats, why the rare values of 0.606 sit in a narrow band, and why rare values thin out at all.

Sources

  • A. Flammenkamp, Sprague-Grundy values of octal games, read November 16, 2026 (footer "last updated 2026-11-16 18:21 UTC+1"): wwwhomes.uni-bielefeld.de/achim/octal.html. Earlier versions read on July 3, September 4 and October 25, 2026.
  • OEIS A395248 (read November 16, 2026) and the eleven extended entries in the table above.
  • E. R. Berlekamp, J. H. Conway and R. K. Guy, Winning Ways for Your Mathematical Plays, Academic Press, 1982 (second edition A K Peters, 2001 to 2004): octal games, the mex rule, Guy's question and "sparse space spells speed".
  • R. K. Guy and C. A. B. Smith, The G-values of various games, Proceedings of the Cambridge Philosophical Society 52 (1956), 514 to 526.
  • R. P. Sprague, Über mathematische Kampfspiele, Tôhoku Mathematical Journal 41 (1935), 438 to 444; P. M. Grundy, Mathematics and games, Eureka 2 (1939), 6 to 8.

Notes on numbers used on this page

Each number marked ▲ on this page has its note here.

  • Unsolved take-away games whose published tables I extended in July 2026: 12. Achim Flammenkamp, who keeps the reference tables, has since taken every one of these games further, so his page (checked November 16, 2026) now has the furthest values.
  • OEIS sequences from the July 2026 take-away game tables: 12. One new entry (0.007, A395248) and eleven older entries extended; several of the older entries are filed under a related game code whose list is the same values shifted by a few places.
  • Heap sizes covered by my July 2026 run of the game 0.007 (about 1.07 billion): 2 to the power 30. This was four times the table that had stood since 2021, and further than any published table of the game when it finished on July 5, 2026. Achim Flammenkamp's tables have since gone further: to 2^31, about 2.1 billion heap sizes, published on his page on July 17, 2026, and to 2^34, about 17 billion, as listed on his page (checked November 16, 2026). The furthest values are now on his page.
  • Heap size of the last rare value known in game 0.007: 5,029,983. No rare value came after it anywhere up to 2^30 (about 1.07 billion heap sizes). Flammenkamp's table now goes to 2^34 (about 17 billion heap sizes, checked November 16, 2026) and still lists no rare value after it. Rare values could still appear further out.
  • Heap sizes in game 0.606 with rare values, newly found between the old table limit (about 268 million heap sizes) and the new one (about 537 million); their values lie in the narrow band 1,026 to 1,069: 8,162. I have no explanation for why these values fall in such a narrow band, and I have asked Achim Flammenkamp about it.

These notes appear in every version of this page.

Revision history

  1. 2026-11-20 · corrected

    The closing summary no longer calls all of the expert's reruns an independent confirmation: for the largest game the independent rerun covers his old range. The page also names the numbers compared with his table (his depth figure was not recorded), credits the method to Winning Ways, credits the later extensions to his page, which also credits a program by Udo Sprute, and uses heap sizes and new rare heaps throughout.

  2. 2026-11-16 · revised

    The opening now gives how far the longest run went, with the numbers for that run directly under it.

  3. 2026-11-16 · created

    Written as a from-the-start explainer of the octal games work, with worked tables, a value calculator and a game to play.

How to cite this

Tyler Satchel Orden (2026). Octal games, explained from the start: how I extended the tables of unsolved take-away games. Cyborg Mathematics. https://cyborgmathematics.com/writing/octal-games-from-zero (updated November 20, 2026)

This page has no DOI of its own. Cite the URL and the date; the revision history above keeps a dated citation meaningful.

BibTeX
@misc{orden2026octalgamesfromzero,
  author       = {Tyler Satchel Orden},
  title        = {Octal games, explained from the start: how I extended the tables of unsolved take-away games},
  year         = {2026},
  howpublished = {Cyborg Mathematics},
  url    = {https://cyborgmathematics.com/writing/octal-games-from-zero}
}

See also