Generator

necklace

A generator in the number library, called 4 times across 1 essays. Below: what it draws at its defaults and at each mode an essay asks for, what it checks while drawing, and everywhere it is used.

necklace is one function. Everything below came out of it during this build, at parameters 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 if the generator changes, this page changes with it.

At its defaults

Necklaces of 5 beads in 2 coloursEvery string of beads, grouped by the rotations that carry one onto another.1 string1 string5 strings5 strings5 strings5 strings5 strings5 strings32 strings fall into 8 necklaces32 strings in all: 2 constant ones, and 6 rings of 5so 32 − 2 = 5 × 6, and p divides a^p − a with nothing left over

show: "strings"

Every string of 5 beads in 2 coloursAll the strings, sorted so that rotations of the same necklace sit together.sorted by rotation class32 strings, sorted into 8 classes by rotationthe 2 single rows are the constant strings; every other class is exactly 5 rows

What it checks while it draws

Collected by running the family and listening to lib/verify.js, 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. That is what makes the list worth publishing rather than keeping in a check script.

The whole library · What the figures prove