Generator

The Collatz orbit of 27

A generator in the dynamics library, called 30 times across 5 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.

collatz 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

The Collatz orbit of 27. Halve an even number, triple an odd one and add one; the sequence plotted on a logarithmic scale.

show: "stopping"

The share that provably comes down. The proportion of starting values that fall below their own start within k steps, plotted against k up to 12. The proportion rises towards one; at the largest k drawn it is 0.94.

show: "parity"

The first 5 steps, decided by the start. A table of the 32 residues modulo 32 and the parity string each produces over 5 steps of the Collatz rule. All 32 strings are distinct, and the ones that shrink the number are marked.

show: "tree"

The tree above one, 9 levels up. The reverse Collatz tree rooted at one, drawn to depth 9, holding 32 numbers. Each level doubles the numbers of the one below and adds the odd numbers whose tripling lands there.

show: "bijection"

Every parity pattern of length up to 12, and each occurring exactly once. A bar for each pattern length, showing the number of distinct parity patterns produced by all remainders of that power of two, which equals the number of remainders at every length.

show: "rationals"

64 patterns, 64 rational cycles, 2 of them whole. A table with one row per number of odd steps, giving how many patterns have that many, the denominator their solutions share, and how many of those solutions are positive whole numbers.

What it checks while it draws

Collected by running the family and recording what it asserted, not written here. The count is how many separate times the claim was put to the test while these drawings were made.

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