What it costs

The wait is in the last few values

A growing octal code reaches a power of two at the first heap whose options cover every value below it, and the heaps where that happens grow by a ratio that belongs to the family, not the game. Follow the coverage itself and the ratio splits in two. Coming within four values of the power takes 1.6 to 2.6 times the previous crossing for four codes in five; the last four values take the rest, and all of the spread. The longest waits are not one value nobody can make, but dozens of heaps each missing a different one.

Assumes: The ratio belongs to the family, not the game · The records land on powers of two

The octal codes whose Grundy values grow without settling into a period share one reliable habit. Each first record at or above a power of two lands on it exactly, because a heap’s options are exclusive-ors of values already present, and no exclusive-or of values below 2ᵏ can reach past it. So every growing code has a list of crossing heaps, the first heap worth 16, the first worth 32, and so on. The ratio between successive crossings turned out to be a law of the family and not of any one code: across 178 codes the median sits near 2.7, the middle half between 2.2 and 3.4, nothing below two, and a code’s own ratio at one power barely predicts its next.

That left a statistical regularity without a mechanism. The essay that found it named where to look. A heap is worth at least 2ᵏ exactly when its options cover every value from nought to 2ᵏ − 1, so a crossing is a covering event. Follow, heap by heap, how much of that range the options cover, and the ratio ought to become the shape of a curve.

It does, and the shape is not the one expected. Coverage climbs steadily, at much the same pace whatever the power. Then the last few values are a separate matter. Coming within four values of the power is tightly scheduled across the whole family; the last four values are where every long wait and nearly all the spread of the ratio comes from. And the longest waits are not stuck on any one value. They are runs of near misses, each heap missing a different value, until one heap misses none.

Coverage, heap by heap

The census is the same family: the 178 octal codes of up to three digits that a repetition is a guess classed as growing, merged into 66 distinct value sequences. Each is computed to 4,096 heaps, and for every heap the full set of option values is listed, every legal take and every split, with the value of a split the exclusive-or of its parts. For each power from 16 to 256, the coverage of a heap is how many of the values below the power appear among its options. The running best coverage is the largest coverage of any heap so far. It reaches the full power at exactly the crossing.

Coverage at a single heap jumps about, because neighbouring heaps have different options. The running best smooths that into a staircase that can only rise, and it carries the question in its plainest form: how long, measured from the previous crossing, before some heap has covered all but four values, all but two, all but one, and all of them?

The wait is in the last few values. For 248 crossings of a power of two by growing octal codes, the heap at which a heap's options first came within four, two and one values of covering every value below the power, and the crossing itself, each over the previous crossing's heap. The spread is narrow until the last few values and wide at the crossing.
Fig. 1 248 crossings of 16, 32, 64, 128 and 256 within 4,096 heaps, with the heap at which the running best coverage first came within four, two and one values of full, each divided by the previous crossing’s heap. The rows tighten from the bottom up. The last four values carry almost the whole spread.

The table reads from the bottom. The crossing ratio itself has the spread the earlier census found: median 2.81, the middle half from 2.43 to 3.54, the ninetieth percentile at 4.85 and the largest 35.6. Move up one row, to the heap where coverage first fell one value short, and the median drops only to 2.58, but the ninetieth percentile drops to 3.53 and the largest halves. Two values short: median 2.37, ninetieth percentile 3.19. Four values short: median 2.11, the middle half from 1.85 to 2.34, ninetieth percentile 2.60.

So for four codes in five, the time to cover all but four of the values below the next power is between 1.6 and 2.6 times the previous crossing. That is a narrow band, considering that the crossing ratios themselves run from just above two to thirty-six. The family ratio of about 2.7 is mostly this band, the time needed to cover nearly everything, plus a modest wait for the last few values. The long tail of ratios is almost entirely in those last few.

One schedule for every power

The four-short row says the bulk of the coverage arrives on schedule. The next figure says what the schedule is.

Coverage climbs on one schedule. Median running coverage of the values below 16, 32, 64, 128 and 256, against the heap as a fraction of the crossing heap, over the growing octal sequences that cross each within 4,096 heaps. The curves rise steadily and nearly coincide.
Fig. 2 The median running coverage of the values below 16, 32, 64, 128 and 256, against the heap as a fraction of that crossing’s heap. The five curves rise steadily and lie nearly on top of one another: by half way the median code has covered somewhat over half the values, by nine tenths of the way nine tenths or more.

Rescale each crossing’s wait to run from nought to one, and the median coverage climbs along nearly the same curve at every power. There is no sign of the shape the earlier essay guessed, fast and then slow as the last values are hunted down. The climb is closer to steady, a little faster than proportional early on and close to the diagonal late. At 128 the median code has covered 62 per cent of the values half way to its crossing and 90 per cent eight tenths of the way. At 256 the numbers are a little lower, at 32 a little higher, and none of the five is far from the others.

That steadiness has a plain reading. The values a heap’s options can reach below 2ᵏ come from two places: single heaps left behind, whose values are whatever the sequence holds, and splits, whose values are exclusive-ors of pairs. Past the previous crossing at 2ᵏ⁻¹, the lower half of the range is already covered, by heaps whose options did it at the crossing and the many heaps since. The upper half has to be built out of the values from 2ᵏ⁻¹ upwards, and those appear only in heaps past the previous crossing. Each new heap adds a new value to the pool that splits draw from, and the pairs grow with the square of the heap. Coverage of the upper half grows with the stock of new values. Nothing about that process says when the last value will be found, only roughly how fast the bulk will.

Power by power

The same reading separated by power shows how the two parts of the wait move as the values grow.

Power by power. For crossings of 16, 32, 64, 128 and 256: the number of codes, the median heap at which coverage came within four values and within one value of full, the median and ninetieth-percentile crossing ratio, and the median share of the wait spent one value short.
Fig. 3 For each power, the median heap at which coverage came within four values and within one value of full, the median and ninetieth-percentile crossing ratio, and the median share of the wait spent one value short. At sixteen the last value takes a fifth of the wait. By 128 and 256 it takes a few per cent, and the ratios have come down towards two and a half.

At sixteen the last value is expensive. The median code spends 23 per cent of its wait between crossings one value short, and its crossing ratio, 3.73, is well above the four-short ratio of 1.78. By 64 the share one short has fallen to seven per cent, by 256 to two, and the crossing ratio has fallen to 2.33, close to the four-short ratio of 2.21. The bulk schedule barely moves from power to power, between about 1.8 and 2.3. What shrinks is the price of the last value. At sixteen the median crossing ratio is more than twice the median four-short ratio; at 256 the two differ by about five per cent, so that for the fastest-growing codes, the ones that reach 256 within 4,096 heaps, the crossing is almost entirely the schedule. Thirteen sequences is a small sample for that last row, and the slower codes that will reach 256 later are not in it.

There is a reason for that in the arithmetic of the ranges. Below sixteen there are sixteen values to cover and a heap has only a few dozen splits to cover them with, so a heap that happens to miss one value has a real chance of being followed by many more heaps that also miss one. Below 256 a heap has hundreds of splits, the range is covered in bulk by many of them at once, and the last value tends to arrive with the second-to-last. The larger the power, the more the crossing is decided by the steady climb and the less by luck at the end.

That is the mechanism for something the ratio census reported and could not explain: its spread of ratios was widest at the small powers and narrowed as the powers grew. The spread is the last value’s price, and that price falls as each heap’s options multiply.

Where the long waits wait

The crossings that take five times the previous one or longer are the ones the earlier census flagged as overdue. Read through coverage, they are not all of one kind.

Where the long waits wait. The 23 crossings within 4,096 heaps whose ratio to the previous crossing is five or more, with the heap at which coverage came within one value, the share of the wait spent one value short, and how many heaps before the crossing missed exactly one value. ·14's crossing of 16 took 35.6 times its previous crossing and spent about half of it one short.
Fig. 4 The 23 crossings within 4,096 heaps that took five or more times the previous crossing. For each, the heap at which coverage came within one value of full, the share of the wait spent one value short, and how many heaps before the crossing missed exactly one value. ·14’s crossing of 16, at 35.6 times its previous crossing, spent about half of it one short.

The long waits spend a median of 37 per cent of their wait one value short, against 11 per cent for crossings under four times the previous one. They also reach one short late: ·14 needed 17.7 times its previous crossing just to get within one value of sixteen, and ·776 needed 7.9 to get within one of 32. So a long wait is both. The bulk of the coverage arrives later than usual, and then the last value takes a large share on top.

The extreme case shows both parts clearly. ·14 reached eight at heap 54 and did not reach sixteen until heap 1,921. Its running best coverage of the values below sixteen reached fifteen at heap 954, and for the next 967 heaps no heap’s options covered all sixteen. A plain search that stopped at heap 1,000 would have seen ·14 apparently stuck one short of sixteen with no end in sight.

One value short for half the wait. The running best coverage of the values below a power of two, heap by heap: ·14 approaching 16, which it reaches at heap 1921, and ·776 approaching 64, reached at heap 653, both drawn against the heap as a fraction of the crossing heap.
Fig. 5 The running best coverage of the values below a power, heap by heap, for ·14 approaching 16 and ·776 approaching 64. ·14 covers fifteen of sixteen values by about half way and then waits as long again. ·776 climbs in steps all the way and finds its last value soon after its second-to-last.

·776 approaching 64 is the ordinary shape for comparison. Its staircase climbs steadily through 50, 75 and 90 per cent and arrives at 64 values shortly after it reached 63. The two curves show the two components of a crossing ratio separately. The rise is the schedule, shared across the family. The flat top is the last value, and its length is what varies.

Not one hard value

The obvious explanation for a long flat top is a value that is hard to make. Perhaps some value below sixteen needs a split whose two parts have values that rarely occur together, and the rule waits for a heap with just that split.

Not one hard value but many near misses. The ten crossings with the most heaps whose options miss exactly one value below the power, with how many such heaps there were, how many different values they missed, and the values. Every one misses at least three different values across its near misses.
Fig. 6 The ten crossings with the most near misses, heaps whose options cover every value below the power but one, with how many such heaps there were, how many different values they missed, and which. In every case the missing value changes from heap to heap, between five and eleven different values.

That is not what happens. ·14 had 42 heaps before its crossing whose options covered all but one of the values below sixteen, and between them they missed five different values: eight fifteen times, five ten times, ten seven times, twelve six times and fourteen four times. ·172 had 32 near misses spread over ten different values. Every one of the ten crossings with the most near misses was missing at least five different values across them.

The near misses are also rarer than the flat top makes them look. During ·14’s 967 heaps one value short of sixteen, only 42 heaps actually missed exactly one value. The other 925 missed two or more, so the running best sat at fifteen because of those 42, and most heaps along the stretch were not close at all. A heap’s coverage is not a quantity that creeps upward; it scatters from heap to heap around a typical level, and the running best records the luckiest heap so far. The flat top is the stretch during which the luck needed for the last value did not come.

So a long wait is not a value that no option can make. Every value below sixteen is made by many heaps along the way, often by most of them. The wait is for one heap that makes all of them at once. The near misses are heaps that came within one value and missed a different one each time. In the language of chance, a crossing is the first success in a sequence of trials, each heap a trial that succeeds only if its options happen to cover the whole range. When the trials are already succeeding on all but one value, it is still possible for hundreds of them in a row to fail, each on a different value.

That reading fits the falling price of the last value at larger powers too. With more splits per heap, each value is covered many times over, and a heap that misses any one value is less likely. The trials get easier as the heaps grow.

The convention, and the census

Normal play throughout, so that Grundy values add by exclusive-or and the crossing theorem holds. A heap’s options are every legal take and every legal split under its octal code, and an option’s value is the exclusive-or of the parts left. Coverage of a power 2ᵏ at a heap is the number of distinct option values below 2ᵏ; the running best is its largest value at any heap so far. A crossing ratio is the crossing heap over the previous crossing heap, and the four-, two- and one-short ratios use the first heap at which the running best came within that many values of full.

The crossing theorem itself is why the question is a covering question at all. The exclusive-or of two numbers below 2ᵏ is below 2ᵏ, since it has no binary digit the two parts lack, so a heap’s options can only include a value at or above 2ᵏ if some earlier heap already holds one. Until the first heap reaches 2ᵏ, then, every option of every heap lies below it, and the first heap to reach it is exactly the first whose options fill the whole range below. That makes the crossing a statement about a set of values at a single heap, which is what the running best follows.

The census uses 4,096 heaps, a quarter of the earlier census’s range, because listing the options of every heap costs the square of the range. That excludes the crossings above 256 and the slowest crossings of the lower powers. The 248 crossings here are the ones within that range.

What 4,096 heaps cannot show

The long waits that are still waiting. ·167 has not reached 64 by 32,768 heaps, and nothing in this census reaches far enough to see whether it is one value short or many. The same is true of every crossing that the earlier census found and this one’s range excludes.

Whether the bulk schedule is a law. The four-short ratio has a narrow distribution on these 248 crossings, and the coverage curves nearly coincide across five powers. That is a regularity of the family on this range, and it has no proof. The splits’ exclusive-ors are not random, and a code could in principle cover its lower values quickly and its upper ones slowly, or the reverse.

What makes a near miss more or less likely. The chance reading of the long waits is a description, not a derivation. It would need the distribution of each heap’s coverage, which depends on which values the rule’s earlier heaps happen to hold, and nothing here models that.

Still open: what sets the pace of the bulk

The ratio between crossings is now two quantities: a schedule for covering nearly everything, about two times the previous crossing for four codes in five, and a wait for the last few values that is long at small powers and short at large ones. The second has a plausible explanation in the number of splits per heap. The first does not. Why the coverage of the values below 2ᵏ should reach all but four at about twice the heap where the values below 2ᵏ⁻¹ were covered is a question about how quickly new values above 2ᵏ⁻¹ appear in the sequence and how quickly their exclusive-ors with older values fill the upper half of the range. A ratio of two is suggestive, since the upper half is exactly as large as the lower half, so twice the heaps might supply roughly twice the values. If that argument can be made exact, then the family ratio of the records landing on powers of two is two for the bulk plus a decreasing premium for the last value, and the long-run growth of these sequences, which the ratio census found to be steeper than the heap’s own, would follow. Growing is not climbing is where these codes were first separated from the ones that settle into a period with a constant added. The sequence nobody has settled is the reminder that none of these codes is known to keep growing at all, and a period is a proof is the reminder of what it would take for one of them to stop.

Part 8 of 8

One argument about Periodicity. 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.

CoveringEventual periodicityExhaustive searchGrowth rateGrundy valueMexOctal gamePower of twoXOR