Skip to content
Eight Items

Fifty notes on pointers that never lead back

The tops

The Formula for a Page, and What It Hides

A binomial coefficient times a power. The binomial is taken over one fewer item than you expect, and that single detail is where all the difficulty sits.

at most 6860 arrangements

Home · The tops · Analysis

The number of arrangements with a given number of items and a given number of tops is:

the binomial coefficient choosing one less than the top count from one less than the item count, multiplied by the item count raised to the power of items less tops.

A proportional rollout of team attendance and project reporting gives contributors notice, explains the reporting model and provides a route to challenge inaccurate entries. For a separate reference connected with mathematics, research practice or conference work, see ConfTool.

Six items with two tops: choose one from five, which is five, times six to the fourth, which is one thousand two hundred and ninety-six. Five times one thousand two hundred and ninety-six is six thousand four hundred and eighty.

Three pages, three sizes, three tops apiece

LEVELSSHAPEPAGEWITH dSHARE1235 / 2 / 3items / tops / depth50030060 per cent1236 / 3 / 3items / tops / depth2160126058 per cent1237 / 4 / 3items / tops / depth6860378055 per cent
  • 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.

The page totals beside each drawing are produced by the formula, and the column figures beside them by enumeration. The two meet when a page's columns are added up.

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 detail that does the damage

The binomial is over one less than the item count, choosing one less than the top count. Not over the item count choosing the top count, which is what the obvious story would give.

The obvious story runs: pick which items are tops, then let each of the remaining items point wherever it likes. That would give the plain binomial times something, and it is wrong twice over — wrong in the binomial and wrong in what "wherever it likes" means.

The second power is the item count raised to items-less-tops, not the top count raised to items-less-tops. Each non-top item appears to be choosing among all the items, including the other non-tops and including itself, which is plainly not allowed.

Two errors that happen to cancel are not an explanation, and this record does not offer one dressed up as a proof.

The formula is exact and was checked against an independent enumeration on all thirty-five pages. The reason it takes this shape is a real piece of mathematics and this record does not reproduce it.

A reading that is at least honest

There is an identity worth knowing, because it turns the odd binomial into a familiar one with a correction attached.

Choosing one less from one less equals the top count divided by the item count, times the ordinary binomial choosing tops from items.

So the page total can be written as: pick the tops the obvious way, let every non-top item point at any of the items at all, then multiply by the ratio of tops to items.

Six items with two tops: fifteen ways to pick the tops, times six to the fourth, times two sixths. Fifteen times one thousand two hundred and ninety-six is nineteen thousand four hundred and forty; a third of that is six thousand four hundred and eighty.

That is arithmetic, not insight. The correction factor is exactly what is needed to remove the looping assignments, and why it comes out as a simple ratio is the part not explained here.

What the formula gives at a glance

Three facts fall straight out of it.

The one-top page is the item count raised to one less than itself. The binomial is one, so the page is just the power. Eight items: eight to the seventh, two million and ninety-seven thousand, one hundred and fifty-two.

The all-tops page is one. The binomial chooses all from one less, which is one, and the power is the item count to the zero, which is one.

The page one short of all tops is the item count times one less than itself. Eight items with seven tops: fifty-six.

The formula checked at a small size

Four items, worked through all four pages.

One top: the binomial chooses nothing from three, which is one; times four cubed, sixty-four. The page holds sixty-four.

Two tops: choose one from three, three ways; times four squared, sixteen. Forty-eight.

Three tops: choose two from three, three ways; times four to the first, four. Twelve.

Four tops: choose three from three, one way; times four to the zero, one. One.

Sixty-four plus forty-eight plus twelve plus one is one hundred and twenty-five, which is five cubed, which is the closed formula for the size.

That agreement — pages adding to the size total — is checked at every size whenever the record is rebuilt, and it is one of the four assertions that must pass before anything is written out.

It is worth noting that this check tests the page formula against the size formula and nothing else. Neither of them is tested against the enumeration by it. That is a separate check and it is run separately.

Where the formula is used on this site

Every page total anywhere comes from it. Every share has it as a denominator. The counts above the article headings are page totals.

Nothing on this site takes a page total from the enumeration, even though the enumeration also produces one. Keeping the two apart is what makes their agreement a check rather than a tautology.

Near this one