Generator

How many ways a map folds

A generator in the flat-folding library, called 19 times across 9 essays. Below: what it draws at its defaults and at the arguments the essays give it, what it checked while drawing, and everywhere it is used.

map-foldings is one function. Everything below came out of it during this build, at arguments taken from the essays rather than invented for this page — so a figure here is the same figure a reader meets in an essay, and when the generator changes, this page changes with it.

At its defaults

How many ways a map foldsThe number of distinct flat foldings of a ruled rectangle, on a logarithmic scale. The filled bars were counted by exhaustive search during this build; the open one is Lunnon's published value, past what a build can reach. There is no formula for any of them, and the next term is not known.1 × 4161 × 5501 × 61442 × 282 × 3602 × 43203 × 31,3684 × 4300,608filled — counted here, by exhaustive search over stacking ordersopen — Lunnon's published count, quoted rather than computed

view: "strip"

The strip is the same problem, one dimension downHow many ways a strip of unit squares folds into a pile, for every length a build can count exhaustively, with the ratio to the previous length beside each bar. The counts rise and the ratios do not settle, so no geometric formula describes the sequence — which is why the one-dimensional case is not the easy case.1 × 221 × 36× 3.001 × 416× 2.671 × 550× 3.131 × 6144× 2.881 × 7462× 3.211 × 81,392× 3.011 × 94,536× 3.261 × 1014,060× 3.10stripratiothe ratio moves between 2.67 and 3.26 and does not settlea sequence with a constant ratio would have a formula, and this problem would be finished

view: "dimension"

The same paper, folded in one dimension and in twoThree sizes of map, each drawn twice: as a strip, and as the two-row rectangle with the same number of squares. The strip folds more ways every time, so the count depends on the shape of the ruling and not only on how many squares it has.4 squares1 × 4162 × 28× 2.06 squares1 × 61442 × 360× 2.48 squares1 × 81,3922 × 4320× 4.3folding the same paper in two directions instead of one takes foldings away rather than adding them

shapes: [1,4, 1,5, 1,6, 1,7, 2,2, 2,3]

How many ways a map foldsThe number of distinct flat foldings of a ruled rectangle, on a logarithmic scale. The filled bars were counted by exhaustive search during this build; the open one is Lunnon's published value, past what a build can reach. There is no formula for any of them, and the next term is not known.1 × 4161 × 5501 × 61441 × 74622 × 282 × 3604 × 4300,608filled — counted here, by exhaustive search over stacking ordersopen — Lunnon's published count, quoted rather than computed

What it checked while it drew

Collected by running this generator with a listener on the assertions, not written here. The count is how many separate times this build put that claim to the test.

Where it is called

Changing this generator changes every figure on this list, which is what makes the list worth publishing rather than keeping in a check script.

A map with no edges

Counting the ways a rectangular map folds is the oldest open problem in the subject, and every version of it assumes the map has an edge. Join the map's opposite edges and the question changes shape: half the sizes have no folded state at all, and the ones that do have no bottom layer to count from.

More than one way to lie flat

A crease pattern with its mountains and valleys marked is spoken of as though it named a folded object. It does not. The legal stackings can be counted exactly in one dimension, the count is routinely more than one, and its size is a property of the pattern that nobody quotes.

The count counts labels

One, two, six, sixteen, fifty, a hundred and forty-four: the oldest sequence in the subject counts foldings of a strip of numbered stamps. A folded strip of blank paper has no first stamp and no top side, and neither of those operations ever leaves a folding alone — so the count of objects is 1, 2, 5, 14, 38, 120, and it is not the count over four.

The gadgets that make it hard

Flat-foldability is NP-hard, and the proof is a construction rather than an obstruction: a machine for turning any satisfiability problem into a sheet of paper that folds exactly when the problem has an answer.

The map counted from the layers

The classical map-folding counts are computed from a rule that never places a panel: work out which edge of the folded square each fold wraps around, and refuse the orderings that interleave two folds at one edge. Place the panels instead and order them by the general non-crossing rules, and the same numbers come out — 2, 6, 16, 50, 144, 8, 60, 320, 1368 — on nine sizes, by machinery that shares no line of code with the first.

The map that is not a rectangle

Take one square out of a three-by-three map and the number of ways it folds does not go down by an eighth. It goes up — to 848 if the square came from a corner, and to 8,016 if it came from the middle. Two maps of eight squares in the same box, differing by nearly a factor of ten, and no function of the box tells them apart.

The oldest open problem

In how many ways can a map be folded? The question needs no notation to state, the answer is a small integer for small maps, and after sixty years there is still no formula — only a list of numbers, each one found by searching every possibility.

The tube a map makes

Join one pair of a map's edges and the result is a tube — a real object, foldable in the hand, and neither the strip's problem nor the torus's. It has one loop that cannot be shrunk instead of two, it keeps its bottom layer because it keeps half its rim, and half its sizes are refused by a parity the flat map does not have.

Two directions that will not separate

A map has rows and columns, and a strip of stamps is a map with one row. The obvious hope is that the two-dimensional count is built from the one-dimensional one — fold the rows, then fold the columns. It is not: a two-by-three map folds 60 ways against a product of 12, and the discrepancy grows from a factor of two to a factor of thirty-eight over the counts anybody has.

Every generator · The flat-folding field · The patterns a reader can fold