The arches
Walking Along the Row
One pass from left to right, remembering three things, produces every count in this record a second time, by a route sharing nothing with the first.
1 430 arrangements
Home · The arches ·
Write an arrangement as a line of symbols: an opening where an arch begins, a closing where it ends, one symbol per peg.
When revisions make estimates hard to interpret, project owners may review the present feature set and map each setting to a real decision before collection begins. For a separate reference on forestry, ecology, field data or research practice, see Vectr.
Everything about the arrangement can be recovered by walking along that line once, and the third of the four checking methods does exactly that.
Drawing 1One page, divided
Nine arches, two on the ground
This drawing is wider than the screen — scroll it sideways to see the rest
- 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 1 430 arrangements, which is this page's whole total
Nine arches with two on the ground. The longest bar is five innermost. The longest is about 280 times the shortest. The bars drawn add to 1 430, which is this page's whole total.
Every bar here was obtained once by assembling parts and once by walking along the row, and the two ways agreed on all seven.
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.
The three things to remember
How high the walk stands. An opening lifts it by one, a closing drops it by one. It starts at the ground and ends at the ground, and the condition that no two arches cross is exactly the condition that it never goes below the ground.
How many times it has come back to the ground. Every return to the ground is the closing of an arch that nothing covered, so this tally ends up as the ground count.
How many openings have been followed immediately by closings. An arch whose opening is followed at once by its closing has nothing between its feet, which is exactly what it means to be innermost. So this tally ends up as the innermost count.
Three small numbers. Nothing else about the walk is remembered, and nothing else needs to be.
Why this counts anything
Because the walks can be counted without being carried out individually.
Keep, for each position along the line, a tally of how many walks reach that position in each possible state — a state being the height, the two running counts, and whether the last step was an opening. Step forward, and each state gives rise to at most two states. At the end of the line, the walks that finish on the ground are the arrangements, sorted by their three numbers.
The amount of work is proportional to the length of the line times the number of states, which at eighteen arches is a few hundred thousand small additions, and finishes instantly.
What it shares with the taking-apart method
The answer, and nothing else.
The taking-apart method cuts an arrangement into parts and counts the ways the parts fit together. It never walks along anything, and it has no notion of a height.
The walking method never cuts anything, never considers a part, and has no notion of an arch's inside. It knows only a height and two tallies.
If both are wrong, they are wrong in the same way for reasons that have nothing to do with each other, and the only place they could share an error is in the description of the object itself.
A detail that cost a correction
The innermost tally has to remember whether the previous step was an opening. A walk that forgets this cannot tell an arch with nothing inside it from an arch whose inside has just been emptied by the closing before.
That is a small thing to get wrong and it would have changed nearly every figure on the third number. It was caught the only way such things are caught: by the listing method disagreeing, at the smallest size where the two differ, which is three arches.
Where the walk appears on the drawings
Nowhere, which is worth saying. The drawings compute their figures by the taking-apart method, not by walking.
That means the drawings and this method are two independent copies of every figure they share, and a disagreement between them would show up as a refused line with the reason printed underneath rather than as a quietly wrong picture.
What the states look like
At any point along the line, a walk is described by four things: how high it stands, how many times it has returned to the ground, how many openings have been immediately followed by closings, and whether the last step was an opening.
At eighteen arches the height goes from nothing to eighteen, the two tallies from nothing to eighteen, and the last flag takes two values. So fewer than fifteen thousand states exist at any position, and there are thirty-six positions.
The whole walk is therefore a few hundred thousand small additions. It finishes faster than the time it takes to print the answer, and it would finish just as comfortably at a hundred arches.
Why the last flag is needed
Because an arch with nothing inside it is exactly an opening immediately followed by a closing, and that is a property of two consecutive steps rather than of either one alone.
A walk that remembered only its height and the two tallies would have to decide, at each closing, whether the arch now being closed had contained anything — and the height alone cannot tell it. The height after the closing is the same whether the arch was empty or full.
So the flag is not an optimisation. Without it the method counts something else, and what it counts disagrees with the listing at three arches, which is the smallest size where an arch can contain anything at all.
The walk and the picture
The picture of an arrangement and the walk along it are the same object seen twice: an arch is an opening and a later closing, and the height of the walk at any point is the number of arches covering that point.
That is the one place where this record's refusal to count how far down things sit brushes against something it does use. The walk's height is exactly the quantity the record declines to tabulate, and it is used here as scaffolding and discarded: nothing about the height appears in any shape, any page, any drawing or any table.
What the walk remembers
- the height — up at an opening, down at a closing, never below the floor;
- the returns to the floor — which end as the ground count;
- the openings closed at once — which end as the innermost count;
- whether the last step was an opening — without which the third tally cannot be kept at all.
Near this one
- Arches Over a Row of Pegs
Pegs in a line, joined in pairs by arches, none of them crossing. The object this whole record counts, describ - The Sizes You Can Count by Hand
One, two, five, fourteen, forty-two. The first five sizes small enough to be written out on paper, and what ea - How Many Over Thirty-Six Pegs
Four hundred and seventy-seven million six hundred and thirty-eight thousand seven hundred arrangements of eig - Growth That Never Reaches Four
Each size is a little under four times the one before it, and the ratio climbs towards four without arriving.