Skip to content
Arches Over Pegs

Fifty notes on arches over a row of pegs

Nine hundred and eighty-seven shapes

Arches over a row of pegs

Set thirty-six pegs in a line, join them in pairs with arches, and forbid any two arches from crossing. There are four hundred and seventy-seven million six hundred and thirty-eight thousand seven hundred ways to do it. Sort those by how many arches stand on the ground and how many have nothing inside them, and what comes out is this record.

Drawing 1Arrangements, drawn

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

ARRANGEMENTSHAPEPAGETHIS SHAPESHARE9 / 1 / 1arches / on the ground / innermost1 4301ABOUT 1 IN 14309 / 3 / 5arches / on the ground / innermost1 001420ABOUT 1 IN 29 / 9 / 9arches / on the ground / innermost11
  • 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

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

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.

To connect a technical record with day-to-day project coordination, teams can review the platform on its official site and map each setting to a real decision before collection begins. For a separate reference on forestry, ecology, field data or research practice, see Adobe.

50

notes on arches over a row of pegs

987

shapes of three numbers, every figure checked four ways

171

pages: an arch count and a count of arches on the ground

656 043 856

arrangements across the whole record

656 043 856

arrangements written out one at a time to check them

Three things here are settled rather than counted: that no two arches cross, that a row read backwards is a different arrangement, and that how far down an arch sits is never measured. All three are declared on the pages that lean on them. Every figure was produced four ways — by writing out all six hundred and fifty-six million arrangements one at a time, by assembling them from parts, by walking along the row, and by three closed formulas at the edges — and the four agree everywhere.

The largest single page in this record holds 129 644 790 arrangements.

Pegs in a line, arches over them

Set an even number of pegs into the ground in a straight row. Join them in pairs with arches, so that every peg carries exactly one arch end. Allow an arch to sit wholly under another arch or wholly beside it, and forbid the half-and-half case where two arches cross.

With two pegs there is one way. With four pegs there are two: two small arches side by side, or one arch over the pair. With six pegs there are five, with eight fourteen, with ten forty-two. The numbers climb, and the ratio between neighbouring sizes climbs with them, creeping towards four without ever arriving.

By eighteen arches — thirty-six pegs — there are 477 638 700 arrangements. Every one of them was written out separately while this record was being built, which took longer than everything else on this site put together.

Two more numbers, both of them flat

An arrangement is more than a count of arches, and this record asks two further questions of it.

The first: how many arches stand on the ground? An arch stands on the ground when nothing covers it. There is always at least one, and there can be as many as there are arches, which happens when they all sit side by side in a row.

The second: how many arches are innermost? An arch is innermost when nothing sits inside it. Again there is always at least one, and the two counts are tied together more tightly than they look: the innermost count is never smaller than the ground count, for a reason that takes one sentence to state and a little longer to believe.

Both questions are flat ones. Neither asks how far down an arch is buried under others. That omission is deliberate and it is kept carefully: the drawings here set the height of an arch by its span alone, so that nothing on the page can be mistaken for a measure of how far down something sits.

Where the counting stops, and why

At eighteen arches.

Three of the four ways this record checks its figures would carry on cheerfully to a hundred arches. The fourth — the one that writes out every arrangement separately — takes over half an hour at eighteen and more than two hours at nineteen. So eighteen is where it stops.

That is worth stating plainly rather than burying. A ceiling chosen because the drawing stopped being legible is a matter of taste. A ceiling forced by the slowest honest check is a matter of record. This one is the second kind, and the part called Where it stops says so at the top rather than at the bottom.

Scope of the method

Nothing here is set against anything else, placed above anything else, or put forward as the thing to choose. Nothing was tried out and nothing is pronounced upon. Nothing to type into, nothing to join, nothing to search, nothing to buy. No author, no "we", no page about anybody. No links leading away from this site, not one.

A record of counts needs none of those, and this one has none of them.

The six parts

Read in any order. Every part rests on the same three conventions and on three whole numbers.

Drawing 2Arrangements, drawn

The first two pages of a size

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

ARRANGEMENTSHAPEPAGETHIS SHAPESHARE16 / 1 / 8arches / on the ground / innermost9 694 8452 760 615ABOUT 1 IN 416 / 2 / 8arches / on the ground / innermost9 694 8452 760 615ABOUT 1 IN 4
  • 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.

One arch on the ground and two arches on the ground, each with eight innermost. The two pages hold the same total, nine million six hundred and ninety-four thousand eight hundred and forty-five apiece, and at an even size they agree in this one column as well.

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.

Drawing 3One arrangement, in full

The largest shape in the record

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

18 ARCHES, 36 PEGS1 ON THE GROUNDAARCHES18PEGS36ON THE GROUND1INNERMOST9THIS SHAPE34 763 300WHOLE PAGE129 644 790
  • 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
  • a letter stands over the crown of each arch on the ground, A onwards

One of 34 763 300 arrangements with these three numbers. Its page holds 129 644 790, so about 1 in 4. The drawing picked one of them and the choice carries no meaning.

Eighteen arches over thirty-six pegs, one of them on the ground, nine of them with nothing inside. Thirty-four million seven hundred and sixty-three thousand three hundred arrangements answer to those three numbers, more than any other shape here, and the drawing shows one of them.

One of the arrangements this shape allows, drawn in full. Which of them the drawing picked is its own choice; every arrangement of this shape counts the same.

Drawing 4One page, divided

Eighteen arches, one on the ground, by innermost

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

INNERMOSTARRANGEMENTS11213635 440495 2005866 32064 504 864714 158 144827 810 640934 763 3001027 810 6401114 158 144124 504 864
  • one bar for each number of innermost arches the page allows
  • the scale is linear and starts at nothing, always
  • a bar drawn the full width would be 34 763 300 arrangements

18 arches with one on the ground. The longest bar is nine innermost. The longest is about 34 763 300 times the shortest. The bars drawn add to 128 677 693, against 129 644 790 on the whole page.

The panel refuses five further lines past the limit this drawing can hold.

Seventeen bars, one for each number of innermost arches this page allows. They add to the page's whole total, because an arrangement has one innermost count and no other. The bars at the two ends hold a single arrangement apiece.

Each bar counts the arrangements whose innermost arches number exactly that. The bars of one page add to the page's own total, and the drawing checks it.

Practical software guides

Three ways to compare tools for technical teams

Choose a compact visual toolkit, a workflow comparison or a broader time-and-capacity catalog.