← All projects / The Gallery of Endings

The gallery of endings

Put a number's 1 at the end, read it in a family, and keep translating the answer. It always ends somewhere. Lay the numbers out in rows and light up the ones that share an ending, and each ending draws its own picture. Here they all are, with a viewer to zoom in.

The viewer

Zoom
Row width
How many
Feed in

Drag to move around. Double click, or double tap, to zoom in on a spot. Move over the map to read off a number.

Where the patterns come from

Where a number ends depends on its 1s and 0s, and binary repeats every 2, 4, 8, 16 numbers. A row of 100 doesn't line up with that, so the repeats drift sideways from one row to the next, and seen small they can look like curves and rings. Set the row width to 64, 128 or 256 and the rows do line up: the same picture turns into slanted bands and small tiles that repeat.

What they are and aren't

The pictures are real: every lit square is a number that truly ends there. But the shapes belong to binary and to the width you chose, not to anything about primes. Each family's endings are listed on The 1 at the End.

Aligning the loops

With a power of two in each row, the picture turns into slanted lines. They can be straightened, one step at a time. This uses whichever family and ending is open in the viewer, fed with odd numbers.

Step
Row width

Move over the picture to read off a number, what its column and row add, and where it ends.

exact

Why there are lines at all

A number's reading is a sum over the places that hold a 1. With 256 to a row, the column decides the low eight places and the row decides the rest, and they never share a place. So the reading is what the column adds plus what the row adds. Every row is the same picture, pushed along by its own amount.

exact

Why sorting straightens them

Where a number ends depends only on its reading. Put the columns in order of what they add and the rows in order of what they add, and numbers with the same reading fall along the same slanted line. Stack them by reading and each line becomes one bar.

measured

The barcode is the whole story

The last step shows everything there is to know about an ending: which readings lead to it. The lit and unlit bars come in no order I can find. That is the list no formula has compressed so far, drawn as a picture.

Every ending, family by family

Each small picture is the numbers 1 to 10,000, a hundred to a row. Touch one to open it in the viewer.