Skip to content
Eight Items

Fifty notes on pointers that never lead back

The longest chain

A Formula for the Deepest Column

The factorial of the item count over the factorial of one less than the top count, with one page in the record where it does not hold.

at most 688 128 arrangements

Home · The longest chain · Reference

Of the ninety-one columns in this record, the deepest column of each page is the only kind with a closed form. It is worth setting out plainly, together with the place it breaks.

The deepest column holds the factorial of the item count divided by the factorial of one less than the top count — provided at least one item is not a top.

A research operation moving from estimates to observed effort can explore the available workflow while preserving a clear correction and explanation process. For a separate reference connected with mathematics, research practice or conference work, see BIRS.

Three pages at their deepest

LEVELSSHAPEPAGEWITH dSHARE1234568 / 3 / 6items / tops / depth688 12820 160about 1 in 3412348 / 5 / 4items / tops / depth17 9201680about 1 in 11128 / 7 / 2items / tops / depth5656all of them
  • 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. Every row has the same number of items. Which item sits where is the drawing's own choice and carries no meaning.

Twenty thousand one hundred and sixty, one thousand six hundred and eighty, fifty-six. All three come from the same division of factorials, and all three match the enumeration.

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 figures at eight items

One top: eight factorial over zero factorial, forty thousand three hundred and twenty.

Two tops: eight factorial over one factorial, forty thousand three hundred and twenty again.

Three tops: over two factorial, twenty thousand one hundred and sixty.

Four tops: over six, six thousand seven hundred and twenty.

Five tops: over twenty-four, one thousand six hundred and eighty.

Six tops: over one hundred and twenty, three hundred and thirty-six.

Seven tops: over seven hundred and twenty, fifty-six.

Every one of those matches the enumeration exactly, which is the only reason the formula is quoted here at all.

The first two entries are equal, because zero factorial and one factorial are both one. Two different pages, two different depths, the same column height — and the coincidence has a note of its own.

Where it comes from

At the ceiling, the arrangement is rigid: the tops occupy the first level, and a single chain of the remaining items hangs below, one item per level.

Count it by ordering everything and then dividing out what was over-counted. Lay all the items in a row: the factorial of the item count. Read the row as the chain, deepest last, with the tops at the front.

The chain's order matters, so nothing is divided out there. The top the chain hangs from matters, so it is kept too. What does not matter is the order of the remaining tops among themselves, since they sit side by side on the first level in no order at all, and there are one less than the top count of them.

Divide by their factorial and the count is right.

Where it breaks

On the page where every item is a top, there is no chain. The formula gives the item count; the record gives one.

Eight items with eight tops: the formula says eight, the truth is one. The division has removed the orderings of seven tops but left in a factor for choosing which top the absent chain hangs from, and that choice does not exist.

This is the only page in the record where the formula fails, and the condition attached to it — at least one item not a top — is exactly what is needed.

Why one broken case is worth a whole note

Because a formula quoted without its condition travels further than the condition does.

The deepest column is the sort of figure that gets repeated. If it were stated here as a universal truth, somebody applying it to the all-tops page would get eight where the answer is one, and nothing in the formula's appearance would warn them.

The record's habit is to state the condition with the formula every time, even where the condition is obviously satisfied. It costs a clause and saves an error.

The same formula at smaller sizes

Six items: one top gives seven hundred and twenty, two tops seven hundred and twenty, three tops three hundred and sixty, four tops one hundred and twenty, five tops thirty.

Five items: one hundred and twenty, one hundred and twenty, sixty, twenty.

Four items: twenty-four, twenty-four, twelve.

The pattern of the first two entries being equal holds at every size, for the reason given in its own note: zero factorial and one factorial are both one.

After that the figures halve, then divide by three, then by four — each step dividing by one more than the last, since the divisor is a factorial climbing by one.

So the deepest column collapses much faster than the page does. At eight items the page falls by a factor of between one and fifty-six per step while the deepest column falls by one, two, three, four, five, six. The two rates are different and the deepest column's share therefore rises steadily as tops are added.

What it does not give

Any other column. The second-deepest column has no closed form here and is enumerated like the rest.

So the record has formulas at both ends of a page — the flat column at the shallow end, the chain column at the deep end — and nothing but enumeration in the middle, where almost all the arrangements are.

Near this one