Skip to content
Arches Over Pegs

Fifty notes on arches over a row of pegs

How the figures were made

What this record is

Pegs stand in a line. Each arch joins two of them. Every peg is taken by exactly one arch end, and no two arches cross: one arch may sit wholly under another or wholly beside it, never half in and half out.

That is the whole object. Everything on this site counts arrangements of it.

Three numbers describe an arrangement:

  • how many arches there are, which fixes the number of pegs at twice that;
  • how many arches stand on the ground, meaning arches with nothing above them;
  • how many arches are innermost, meaning arches with nothing inside them.

A triple of those three numbers is called a shape here, and the count of arrangements answering to a shape is what every table on this site reports.

What the record covers

Arches from one to eighteen. That comes to 987 shapes spread over 171 pages, and 656 043 856 arrangements in all — every one of them written out separately at least once, which is the only reason the ceiling sits where it does.

The largest single figure anywhere in this record is 129 644 790, which is how many arrangements of eighteen arches put exactly one arch on the ground. The same number counts those that put exactly two on the ground, and that is not a coincidence; one of the parts of this record is about why.

How the figures were checked

Four ways, and they were chosen because they share as little as possible.

  1. By listing. Every arrangement is written out on its own as a row of openings and closings, and its three numbers are read back off that row. This way knows about arrangements and about no formula at all.
  2. By taking an arrangement apart. An arrangement with several arches on the ground is a line of separate parts, each part one arch with a smaller arrangement under it. Counting the ways to assemble such a line gives the same answer without ever looking at a single arrangement.
  3. By walking along the row. The same quantity comes out of a single pass from left to right, remembering only how high the walk currently stands and two tallies kept as it goes. This shares nothing with the second way except the answer.
  4. By three closed formulas at the edges. Summed one way the counts collapse to a known expression for arrangements with a given number of ground arches; summed the other way to a known expression for a given number of innermost arches; summed both ways to the plain count of all arrangements. None of the three formulas knows about the other number at all.

A figure appears on this site only if all four ways agreed on it.

What the drawings do

Every drawing is produced from the same three numbers the prose uses, and it recomputes them rather than being handed a picture. A thick footing along the ground line shows an arch that stands on the ground; a small filled square at the crown shows an arch with nothing inside it. The height of an arch follows its span and nothing else — the record never measures how far down anything sits, and the drawing is made so that it cannot seem to.

If a row given to a drawing disagrees with the recount, the drawing refuses that row and prints the reason underneath instead of quietly leaving it out.

What this record does not do

Nothing here is set against anything else, placed above anything else, or put forward as the thing to choose. Nothing on this site was tried out, weighed up or pronounced on, and no page delivers an opinion about anything whatever.

There are no boxes to type in, nothing to join, nothing to search and nothing to buy. There is no author's name, no "we", and no page about anyone. There are no links leading off this site.

Those absences are the design, not an unfinished part of it.