Skip to content
Arches Over Pegs

Fifty notes on arches over a row of pegs

The arches

Counting by Taking the Line Apart

An arrangement with several ground arches falls into parts with a single cut. Counting the ways to assemble the parts gives every figure here.

No. 08 of the record

at most 1 430 arrangements

Home · The arches · Method

The second of the four checking methods is the one that does most of the work on this site, and it rests on a single observation.

For work distributed across several contributors, it helps to explore the service directly then test a normal week, a correction and one completed reporting cycle. For a separate reference on forestry, ecology, field data or research practice, see Sketch.

Drawing 1Arrangements, drawn

One part against three

This drawing is wider than the screen — scroll it sideways to see the rest

ARRANGEMENTSHAPEPAGETHIS SHAPESHARE9 / 1 / 5arches / on the ground / innermost1 430490ABOUT 1 IN 39 / 3 / 5arches / on the ground / innermost1 001420ABOUT 1 IN 2
  • every peg carries exactly one arch end, and no two arches cross
  • a thick footing on the ground line means the arch stands on it
  • a small filled square at the crown means nothing is inside

Two arrangements are drawn. Every row has the same number of arches. Which arrangement the drawing picked is its own choice and carries no meaning.

Nine arches with one on the ground, so a single part; and nine arches with three on the ground, so three parts side by side. The second is fewer arrangements than the first, which is not what most people guess.

Both figures are recomputed from the three numbers by the drawing itself, by breaking an arrangement into the arches that stand on the ground. Nothing is looked up.

The cut

Take an arrangement and look only at the arches standing on the ground. Each of them covers a stretch of the row — its own two feet and everything between — and those stretches do not overlap, because nothing crosses.

So the row falls into as many parts as there are ground arches, each part consisting of one ground arch and everything under it, and the parts stand side by side in order from left to right.

That is the whole observation. An arrangement with k arches on the ground is a line of k parts.

What a part looks like

A part is one arch with an arrangement under it — any arrangement at all, of any size, with any number of its own ground arches.

Note that the inner arrangement's ground arches are not ground arches of the whole: they sit under the outer arch. What comes through the cut untouched is the inner arrangement's innermost count: laying something across the top of the whole cannot fill anything that was empty.

That asymmetry is why the two extra numbers behave so differently under this method, and it is the reason the first of the three numbers and the third travel together while the second does not.

Assembling

To count the arrangements with n arches, k on the ground and e innermost: choose how the n arches are shared out among the k parts, choose how the e innermost arches are shared out among them, and multiply the counts of the parts together. Add that up over every way the sharing can fall.

It sounds laborious and it is, but a machine does not mind, and nothing in it ever looks at an arrangement. The method knows only how arrangements fit together from smaller ones.

A result that surprises people

Nine arches with one on the ground: four hundred and ninety arrangements have five innermost arches.

Nine arches with three on the ground: four hundred and twenty.

Most readers guess the second is larger, on the grounds that three ground arches sounds like more freedom than one. It is not. A single ground arch leaves eight arches to be arranged underneath it with no constraint at all, and that one wide hollow turns out to admit more arrangements than three narrow ones side by side.

The same pattern holds all over the record. Pages shrink as the ground count climbs, from the very first step onward, and the note on pages shrinking fast makes the shrinkage precise.

Where the method is used

Everywhere. Each drawing on this site recomputes its own page total and its own shape total by this method, from the three numbers it was handed, and refuses to draw a line whose numbers disagree.

The record itself was checked by it as well — which means the drawings and the record agree because both were computed, not because one copied the other.

What the method cannot do

It cannot say whether the description of an arrangement is right. It takes the description as given and counts what follows from it.

If the first page of this part had described a different object, the taking-apart method would have counted that object instead, just as confidently. That is why the description is written in sentences, sits on a page of its own, and comes before any arithmetic.

Why the method needs both extra numbers at once

The cut at the ground line treats the two extra numbers quite differently, and that asymmetry is the whole reason the method works on three numbers rather than two.

The ground count of the whole arrangement is simply the number of parts: one per ground arch, and nothing inside a part contributes.

The innermost count of the whole arrangement is the sum of the innermost counts of the parts, because an arch with nothing inside it keeps that property wherever it sits.

So one of the two numbers is a count of parts and the other is a sum over parts. The assembly therefore has to track them in different ways, and a method that treated them alike would get one of them wrong.

What the parts look like at a given size

At nine arches, the parts available have between one and nine arches each, and a part with m arches has between one and m minus one innermost arches — except the part with a single arch, which has exactly one.

A page with three arches on the ground is built from three such parts whose arch counts add to nine, which can happen in twenty-eight ways, and whose innermost counts add to whatever the shape requires.

Counting the assemblies over all of those is a few hundred small multiplications, and the whole page of one thousand and one arrangements comes out at the end of it.

Where the method is slowest

Nowhere that matters. The number of assemblies to consider grows with the square of the size and the cube of nothing else, so even at eighteen arches the whole record is produced in a fraction of a second.

That is exactly why this method does not decide the ceiling. The listing does, and the part on where this record stops gives the timings.

Near this one