Skip to content
Eight Items

Fifty notes on pointers that never lead back

Limits

Two Routes to the Same Number

Every count here was produced twice, once by spreading items across levels and once by trying every possible assignment of pointers. The two agree everywhere.

at most 1 835 008 arrangements

Home · Limits · Recount

An enumeration is a promise that nothing was missed. The promise is worth as much as the method behind it, and there is a standard way to raise its worth: count the same thing twice, by two routes that could not fail in the same way.

That is what was done here, for every one of the ninety-one shapes.

A research coordinator can use research coordination time data to relate project time to review stages while preserving notes about delays, dependencies and exceptions. For a separate reference connected with mathematics, research practice or conference work, see Overleaf.

Three shapes, each counted twice

LEVELSSHAPEPAGEWITH dSHARE12345 / 1 / 4items / tops / depth62530048 per cent12346 / 2 / 4items / tops / depth6480252039 per cent12345678 / 2 / 7items / tops / depth1 835 00840 320about 1 in 46
  • one band for each level, counted from the top down
  • one cell for each item, sitting inside the cell of the item it points at
  • a hairline where one cell ends and the next begins
  • the number of bands is the longest chain, which is the third of the three numbers

Three arrangements are drawn. Rows differ in how many items. Which item sits where is the drawing's own choice and carries no meaning.

Each of these column figures was reached by two methods that share no working. Agreement across all ninety-one shapes is the only evidence offered that the figures are right.

Both figures are recomputed from the three numbers by the drawing itself: the page from a binomial coefficient and a power, the column by summing over level profiles. Nothing here is looked up.

The first route: spread the items across levels

Forget the individual items for a moment and look only at how many sit on each level.

An arrangement with a depth of four has items on four levels. Say there are two on the first, three on the second, one on the third and two on the fourth. Call that a spread. Every arrangement has exactly one spread, and every spread with the right first level and the right number of levels belongs to exactly the page and depth we want.

For a given spread, the arrangements it allows can be counted directly. First decide which items go on which level — a multinomial, since the levels are distinguishable and the items are. Then give each item below the first level a pointer to any item on the level above it, which multiplies in a power for each level after the first.

List every spread, count each one, add them up. That is the whole method, and it knows nothing about individual items: it works entirely in terms of how many sit where.

The two routes share no working, no variable and no idea. One thinks in levels and cannot see items; the other thinks in items and has never heard of a level.

The second route: try every assignment

Forget levels entirely. Give the items numbers and write down every possible assignment of pointers: each item points at one of the others or at nothing, independently of the rest. For eight items that is nine choices each, nine to the eighth power, forty-three million forty-six thousand seven hundred and twenty-one assignments in all.

Most of those are not arrangements at all, because following the pointers comes back round. So each assignment is tested: start at each item in turn and climb, and if the climb has not reached a top after as many moves as there are items, there is a loop and the assignment is thrown out.

What survives is sorted by how many tops it has and how deep it runs, and the buckets are counted.

This route is slow and stupid, which is its virtue. It makes no claim that could be wrong except that it tried everything, and trying everything is the one claim a computer is good at.

What agreement does and does not prove

The two routes agree on every shape, every page total, and every grand total. For eight items the grand total reached both ways is four million seven hundred and eighty-two thousand nine hundred and sixty-nine, which is also what the closed formula gives — a third check, independent of both.

What that establishes is that the figures are not the product of an arithmetic slip, an off-by-one in a loop, or a miscounted spread. Those are the errors a single method makes silently.

What it does not establish is that the object is the right object, or that the question is worth asking. Two methods can agree perfectly about a thing nobody needed counted. Agreement is evidence about arithmetic and nothing else, and it is offered here as exactly that.

What each route is bad at

The spread method is fast and almost free at every size in the record, but it is intricate. It involves a multinomial coefficient, a product of powers, and a decision about what counts as a valid spread. Each of those is a place where an off-by-one can hide without changing the answer's plausibility.

The brute method has no intricacy to speak of and a different weakness: it grows by a factor of roughly ten with every item added, and it depends on the loop test being correct. A loop test that missed some loops would silently inflate every figure.

Those are different ways of going wrong, which is the property that matters. Two methods that could break together prove nothing by agreeing.

Why the agreement is worth stating

Three further checks run over this record whenever it is rebuilt. The spread method must match the page formula on every page. The page formulas must add to the closed total on every size. And the brute method must match the spread method on every shape and in total.

A reader has no way to verify any of this by eye, and saying so is more honest than implying otherwise. What can be said is that the checks exist, that they are run, and that the record would not build if one of them failed.

The practical consequence shows up in the next note: because the slow route is the binding one, the record stops exactly where the slow route stops being possible, and not one item further.

Near this one