What it costs

The ratio belongs to the family, not the game

Every growing octal code of up to three digits reaches each power of two exactly, at some heap — 1,482 crossings over 178 codes, all exact. Read the heaps where they happen and the ratio between successive crossings has a law, but not for any one code. From 64 to 512 the median across the codes sits at 2.6 to 2.7, the middle half between 2.2 and 3.4, and nothing falls below two. A code's own ratio at one power barely predicts its next, and the longest wait in the census ended in a crossing eighty-nine times further on.

Assumes: The records land on powers of two · Growing is not climbing

The records land on powers of two followed three octal games whose values grow — ·6, ·564 and ·007 — to 262,144 heaps, and found one thing that is a theorem and a great deal that is not. The theorem: each time the largest value first reaches a power of two, it lands on it exactly. Every option of a heap is a value already present or an exclusive-or of two values already present, and while every value is below 2k2^k so is every exclusive-or of them, so the mex cannot jump past 2k2^k; the first value at or above it is 2k2^k itself. What is not a theorem is when that happens. ·564 reached 512, 1,024 and 2,048 at heaps 1,185, 2,780 and 6,460, factors of 2.35 and 2.32; ·007 reached the same three at 9,168, 35,662 and 109,362, factors of 3.89 and 3.07.

A fixed factor between crossings would be a law of a kind the records themselves do not have. If ·564 crossed every power at 2.3 times the heap of the last, the next crossing could be predicted without computing the heaps between, and the growth would have a shape: a value that reaches 2k2^k at heap cρkc\rho^k grows like the heap to the power 1/log⁡2ρ1/\log_2 \rho. The earlier essay ended by asking for the census that would say whether such factors settle — the crossing heaps of every growing code, for every power it reaches.

Here it is. The factors do settle, in a sense, and not in the one that was asked for. Across the codes, the factor at each power has a stable distribution. For any one code, it does not.

One hundred and seventy-eight codes, sixty-six sequences

A repetition is a guess read every octal code of one, two and three digits and set aside 178 whose largest value was still rising at 2,400 heaps. Each of them is taken here to 2152^{15} = 32,768 heaps by the mex rule with the full split, and every crossing is recorded.

How far the growing codes get. The 178 octal codes of up to three digits whose values grow, computed to 32,768 heaps: how many reach each highest power of two, as codes and as the 66 distinct sequences they form. All 1,482 crossings land exactly on a power of two.
Fig. 1 The 178 growing octal codes, computed to 32,768 heaps, sorted by the highest power of two they reach, as codes and as the distinct sequences they form. Codes that differ only in a digit no heap in range can use give identical sequences; the largest family is sixteen codes. All 1,482 crossings land exactly on a power of two.

Many of the 178 are the same game in the range that matters, which three bits of rule would predict: of the three bits in each digit, the splitting bit decides most of what a code does, and the other two often decide nothing. A digit that only permits a move from a heap of exactly one counter, or a split that never produces a value the other options did not already provide, can be switched on or off without changing a single value, and codes that differ only in such a digit compute identical sequences. The sixteen codes ·64 to ·673 are one sequence. Eight-code families are common: ·6, ·601, ·61 and five more; ·604 and seven more; ·404 to ·427. Merged, the 178 codes are 66 distinct sequences, and everything below counts sequences rather than codes, so that a family of sixteen does not vote sixteen times.

All 1,482 crossings the 178 codes make in 32,768 heaps land exactly on their power of two. That was guaranteed, and checking it on every one is only a check that the computation is the mex rule. How far the codes get is the first real number. Four reach 2,048 — the family ·764 to ·767, at heap 14,967, the fastest-growing sequence in the census with a largest value of 3,508. Most reach 256 or 512. Three stop at 32.

Every sequence climbs more steeply than the heap

Where every growing octal code reaches each power of two. For each of the 66 distinct value sequences among the 178 growing octal codes of up to three digits, the heap at which the largest value first reaches 2, 4, 8 and so on, to 32,768 heaps. Past the first few powers the lines climb more steeply than a doubling of the heap per power of two, mostly less steeply than a quadrupling.
Fig. 2 For each of the 66 distinct sequences, the heap at which the largest value first reaches each power of two, both axes on scales of powers of two, so a fixed ratio between crossings would be a straight line. The two straight guides mark a heap that doubles per power, which is growth in proportion to the heap, and one that quadruples, which is growth like its square root. Past the first few powers the sequences climb more steeply than the first guide and mostly less steeply than the second.

On these axes a value that grows in proportion to the heap — an arithmetic climb, adding a fixed amount every period — crosses each power at twice the heap of the last, a line of slope one. A value growing like the square root of the heap would cross at four times, slope two. The 66 sequences fill the fan between those two lines, and almost none of them is straight. At small powers they bunch tightly: every sequence reaches 4 within the first fifteen heaps and 16 within the first hundred, mostly. By 256 they have spread over a factor of thirty in heap.

What the fan shows at a glance is the earlier essays’ central finding, from a new direction. Growing is not climbing found that none of the 220 uncertified codes holds a constant climb for more than six periods, and that their maxima grow more slowly than any constant climb allows. A constant climb would make a sequence run parallel to the doubling line. Past the first few powers, not one does: over its last four crossings, every one of the 51 sequences that reaches 256 climbs more steeply.

The ratio at each power

The heap where a power is first reached, divided by the heap where the previous one was, is the crossing ratio. If a code had a law, it would be a constant ratio. Read across the codes, power by power:

The crossing ratio at each power of two. For each power of two from 4 to 1,024, the spread over the distinct growing octal sequences of the ratio between the heap where that power is first reached and the heap where the previous one was. From 64 on the median sits near 2.6 to 2.7 and ratios below two vanish.
Fig. 3 For each power of two from 4 to 1,024, the spread over the distinct sequences of the crossing ratio: the box spans the middle half, the bar marks the median and the line runs from smallest to largest, on a logarithmic scale with a ratio of two marked. From 64 to 512 the median sits at 2.61, 2.59, 2.72 and 2.72, the middle half between about 2.2 and 3.4, and no ratio is below two from 256 on.

The first few powers are noisy for a reason: the heaps involved are single digits, and the ratio of 5 to 3 is a ratio of small integers. By 16 the ratios have grown — median 3.73, as the sequences pass through the early stretch where many octal games spend a few dozen heaps on small values before the splits start producing large ones — and from 32 on they settle. At 64, 128, 256 and 512 the median ratio is 2.61, 2.59, 2.72 and 2.72, and the middle half of the sequences sits between about 2.2 and 3.4 at every one of those powers. Only six sequences reach 1,024, and their median is 2.51.

So there is a law, of a kind. A randomly chosen growing sequence at a randomly chosen power from 64 on crosses the next power at about 2.7 times the heap. A ratio of 2.7 per power of two means the largest value grows roughly like the heap to the power 0.7. And the ratio is almost never below two: two sequences at 32, four at 64 and one at 128 dip just under it, and none at all from 256 on. A ratio below two means the largest value more than doubled while the heap less than doubled, which is growth faster than the heap’s own. The census finds that this happens briefly and early, and then stops happening.

Why two is a floor on average and not at each power

The near-absence of ratios below two has a reason, and it is worth separating what the reason proves from what it does not.

A heap’s Grundy value is the least value missing from its options, so it can never exceed the number of options it has. For an octal game of up to three digits, a heap of n counters has at most three moves that leave a single heap — remove one, two or three — and for each removal at most about n/2 ways to split what is left into two heaps, since a split into a and b is the same as one into b and a. So a heap of n has at most about 3n/2+33n/2 + 3 options, and its value is at most that. A sequence whose largest value is 2k2^k at heap hkh_k therefore has 2k≤3hk/2+32^k \le 3h_k/2 + 3: no code of up to three digits can reach a power of two before about two thirds of that power in heaps. The family ·764 to ·767 reached 2,048 at heap 14,967, where the bound allows anything from 1,364; the bound is loose by a factor of eleven there, and for the slower codes by far more.

That bound is on where the crossings are, not on the ratios between them. It says the crossing heaps cannot fall much below a line of slope one on the fan, so over many powers the ratios must average at least two — a long run of ratios below two would carry a sequence below the line. It says nothing about any single ratio. A sequence well above the line, as every sequence here is, has room to cross several powers at ratios below two before the bound bites, and the seven ratios below two that the census found at 32, 64 and 128 are exactly that: sequences catching up from a slow stretch, not sequences outrunning the heap. The floor at two is a theorem on average and an observation at each power, and the observation is that from 256 on, nothing in the census comes near using the room the theorem leaves.

A code does not keep its ratio

A distribution across codes is not a law for a code. The question that matters for prediction is whether each code has its own ratio — ·564 always near 2.3, ·007 always near 3 — with the distribution in the figure above being the spread of those individual constants. If so, a code’s ratio at one power would predict its ratio at the next.

A code's crossing ratio does not persist. 141 pairs of consecutive crossing ratios from the distinct growing octal sequences, from the crossing of 32 on. The points scatter widely around the diagonal: the correlation between one ratio and the next is 0.34.
Fig. 4 Each point is one sequence at one power from 32 on: its crossing ratio there against its ratio at the next power, 141 pairs in all, on logarithmic scales, with ratios beyond six drawn at the edge. If each code kept its own ratio the points would sit on the diagonal. The correlation is 0.34, and 0.39 on the logarithms.

It barely does. The 141 pairs of consecutive ratios from 32 on scatter widely about the diagonal, with a correlation of 0.34 — 0.39 measured on the logarithms, which keep the few very large ratios from dominating. A code whose last crossing came at 2.2 times the heap is about as likely to cross next at 3 as at 2.2. Within one sequence, the ratios from 32 on typically range over three quarters of a unit; ·564’s pair of 2.35 and 2.32 is the exception that made the question look answerable, and ·007’s 3.89 then 3.07 was the rule.

The ratio belongs to the family, not to the game. That is the opposite of what a period or a climb would give. A periodic sequence has its own period and an arithmetically periodic one its own increment, and both are constants of the game: computing far enough reveals them, and once revealed they predict everything. The crossings have a constant of the family and none of the game. Knowing a code’s history does not tell where it will next reach a power of two much better than knowing the census median does.

That has a practical edge. The question whether ·6 ever reaches 512 — it reached 256 at heap 10,344 and had not reached 512 by 262,144, twenty-five times further — cannot be answered by extrapolating ·6’s own earlier ratios, because its earlier ratios carry little information about its later ones. A family median of 2.7 would put the next crossing near 28,000; ·6 is already ten times past that, which says only that ·6 is in the tail of a distribution whose tail is long.

The growth the crossings imply

Each sequence’s recent crossings can still be turned into a growth rate, as a description rather than a prediction.

The growth the crossings imply. For 51 distinct growing octal sequences, the exponent of growth implied by the heaps of their last four crossings of powers of two. The exponents spread from 0.45 to 0.92 with median 0.68; none reaches 1.
Fig. 5 For the 51 distinct sequences that reach 256 or beyond, the growth exponent implied by their last four crossings: if the crossing heap multiplies by ρ per power of two, the largest value grows like the heap to the power 1 / log₂ ρ. The exponents run from 0.45 to 0.92, median 0.68. An arithmetic climb would give exactly one, and not one sequence reaches it.

Over each sequence’s last three ratios, the implied exponent runs from 0.45 to 0.92, with a median of 0.68. Not one reaches one. That is the same fact as the fan’s — every sequence above the doubling line — read as a number, and it is the cleanest statement the census makes about growth: the largest Grundy values of the growing octal games of up to three digits grow, over the range computed, like a power of the heap between about a half and nine tenths, and never as fast as the heap itself.

It is worth being careful about what the exponent is. It is a reading over three ratios that the previous figure showed are only weakly related, so it describes the recent past of each sequence and not a property it will keep. A sequence with exponent 0.9 over its last four crossings may have exponent 0.6 over its next four. The spread of exponents is real; the assignment of an exponent to a code is not stable.

The overdue codes

The longest waits in the census are worth reading on their own, because they are where the question of whether a growing code stops growing would be decided.

The overdue codes. The eight distinct growing octal sequences that have gone furthest past their last crossing of a power of two by 32,768 heaps, as a multiple of that crossing's heap. ·167 reached 32 at heap 796 and has not reached 64 in forty-one times as many heaps.
Fig. 6 The eight distinct sequences that have gone furthest past their last crossing by 32,768 heaps, as a multiple of that crossing’s heap. ·167 last reached 32 at heap 796 and has not reached 64 in forty-one times as many heaps. A wait that long is not evidence of a stop: ·56 and its family went from 32 at heap 256 to 64 at heap 22,778, eighty-nine times further.

·167 reached 32 at heap 796, its largest value in 32,768 heaps is 52, and it has not reached 64 in forty-one times as many heaps. ·336 has waited thirty-five times its last crossing; ·374 and the ·444 family thirty. If the census median of 2.7 were a law for each code, these would be impossibly late.

But the census contains its own warning. The four codes ·56 to ·563 reached 32 at heap 256 and 64 at heap 22,778 — a ratio of 89. ·14 went from 16 to 32 with a ratio of 36. The ·404 family took 9.45 to reach 256. Long waits end. That is what the sequence nobody has settled says about the octal games in general — and what the period is small and the proof does not say so says about the periodic ones, whose certificates can arrive thousands of heaps after the last change — and what the burst of ·007 to 1,024 after a long pause showed in particular: a pause in a sequence that has no law is not evidence about its future. Whether ·167 is a code whose values are bounded — which would make it, after all, a candidate for a period — or a code with a ratio of a hundred waiting to happen, no finite census of this kind decides.

How the census was made

The codes are the 178 octal codes of one to three digits that a repetition is a guess counted as growing: no period certified within 2,400 heaps and a largest value over heaps 1,600 to 2,400 greater than over heaps 800 to 1,600. Each is computed to 32,768 heaps by the mex over every legal removal and split, under normal play — the last player to move wins — which is the convention under which Grundy values add by exclusive-or and the crossing theorem holds.

A crossing is the first heap whose value is at least 2k2^k; the census confirms that its value is exactly 2k2^k every time. Sequences are merged when the whole value sequence to 32,768 heaps is identical. A crossing ratio is the heap of one crossing divided by the heap of the crossing before; the spread figure takes, at each power, one ratio from each sequence that reaches it. The persistence pairs each sequence’s ratio at one power with its ratio at the next, from the crossing of 32 onward. The exponent is 3/log⁡2(hm/hm−3)3 / \log_2(h_m / h_{m-3}) over a sequence’s last four crossings hm−3h_{m-3} to hmh_m, for the sequences with at least eight.

What 32,768 heaps cannot settle

Whether the distribution is stationary. The median ratio sits near 2.7 from 64 to 512, but only 24 sequences reach 512 and six reach 1,024, and they are the fast growers — the ones that got there within the range. A census to a million heaps would include the slow sequences’ later crossings, and the median at 512 and 1,024 could move up as those arrive.

Whether any code has a ratio after all. A correlation of 0.34 over the range is weak, not zero. A code could have a ratio that it settles into only after a long transient, as periods often begin only after a long pre-period, and 32,768 heaps would show the transient and nothing else.

And whether the overdue codes stop. A bounded sequence would eventually become periodic and be certified by the window test; nothing in this census says whether ·167 or ·336 will.

Still open: what decides a crossing

The crossing at 2k2^k happens at the first heap whose options cover every value below 2k2^k, and that is a statement about which exclusive-ors of earlier values a heap can reach — a covering question rather than a growth question. The census shows that the heaps where coverage first completes are spread, power by power, in a stable distribution across the codes, and that a code’s own history predicts its next crossing weakly. The measurement that would explain the distribution is the coverage itself: for each sequence and each power, the fraction of values below 2k2^k that the options of the heaps just before the crossing already reach, and how that fraction grows with the heap. If coverage climbs along a curve whose shape is shared across codes — fast, then slow as the last few values below the power are found — then the family ratio is the ratio of two points on that curve, and the long waits are codes that got stuck one or two values short of full coverage for a long stretch. That would replace a statistical regularity with a mechanism, and it would say which values a code like ·167 is still missing below 64.

Part 7 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.

Exhaustive searchGrundy valueMexNim-sumOctal gamePeriodicityUnsolved game