Generator

φ as a continued fraction

A generator in the number library, called 47 times across 11 essays. Below: what it draws with nothing chosen and at each mode an essay asks for, what it checks while drawing, and everywhere it is used.

continued 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.

With nothing chosen

φ as a continued fraction. The nested fraction, one quotient per step, descending to the right.

Lagrange's method: a cubic for each complete quotient of ∛2

Lagrange's method: a cubic for each complete quotient of ∛2. x³ − 2: integer part 1; x³ − 3x² − 3x − 1: integer part 3; 10x³ − 6x² − 6x − 1: integer part 1; 3x³ − 12x² − 24x − 10: integer part 5; 55x³ − 81x² − 33x − 3: integer part 1.

The first 600 terms of the continued fraction of ∛2

The first 600 terms of the continued fraction of ∛2. Partial quotients of ∛2 computed exactly: 1, 3, 1, 5, 1, 1, 4, 1, 1, 8, 1, 14, 1, 10, 2, 1, 4, 12, 2, 3 …; the largest in the first 600 is 7451.

Continued fractions of √2, e, π and ∛2 side by side

Continued fractions of √2, e, π and ∛2 side by side. √2: 1,2,2,2,2,2,2,2,2,2,2,2 …; e: 2,1,2,1,1,4,1,1,6,1,1,8 …; π: 3,7,15,1,292,1,1,1,2,1,3,1 …; ∛2: 1,3,1,5,1,1,4,1,1,8,1,14 ….

How close each of the first 600 convergents of ∛2 comes, for its size

How close each of the first 600 convergents of ∛2 comes, for its size. q² |∛2 − p/q| for 600 convergents; smallest 1.34e-4 at place 570 before the term 7451; (ln q)/n = 1.2109, Lévy 1.1866.

How often each term appears in ∛2, against the Gauss–Kuzmin law

How often each term appears in ∛2, against the Gauss–Kuzmin law. 1: 42.5% (law 41.5%); 2: 15.8% (law 17.0%); 3: 8.8% (law 9.3%); 4: 6.5% (law 5.9%); 5: 4.2% (law 4.1%); 6: 3.8% (law 3.0%); 7: 2.0% (law 2.3%); 8: 1.6% (law 1.8%); 9: 1.5% (law 1.4%); 10: 1.7% (law 1.2%).

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

Every figure on this list is drawn by the same rule, so a change to the rule changes all of them at once. That is why the list is published.

Number

A cube root that looks like chance

The continued fraction of √61 repeats after eleven terms, and every square root's must. The cube root of 2 obeys no such law. Computed exactly, by a method of Lagrange's that never leaves the whole numbers, its terms run 1, 3, 1, 5, 1, 1, 4 … and throw up a 534 at the thirty-fifth place and a 7,451 at the 571st — and in every statistic anyone has measured, they look like the terms of a number picked at random.

Number

A fraction that never closes

Euclid's algorithm throws away everything except the number of squares it peeled at each step. Those counts are a second name for the number it started from — one that terminates exactly when the ratio is a ratio.

Number

A method that is allowed to miss

Bhāskara's cyclic method solves x² − Dy² = 1 by aiming at the wrong target. It keeps a pair a, b with a² − Db² = k for some small k, combines it with a helper chosen so that k can be divided out, and repeats until k is 1. For D = 61 it reaches the ten-digit fundamental solution in 13 steps, where walking the convergents of √61 takes 22 — and for every D up to 100 it is faster.

Number

Every fraction, exactly once

Take two fractions, add the tops and add the bottoms. That is not how fractions are added, it is not an average, and repeating it produces every positive rational exactly once, already in lowest terms.

Number

How close a fraction can get

Drop eight points into seven boxes and two of them share. That one line, applied to the multiples of an irrational number, proves that every irrational has infinitely many astonishingly good rational approximations — and no construction is needed anywhere.

Number

One solution that makes all the others

The equation x² − 2y² = 1 has infinitely many whole-number solutions, and every one of them is a power of the smallest. The multiplication that produces them is what multiplying two numbers of the form a + b√2 comes to when the √2 terms are collected — so an equation about a hyperbola turns out to carry a group.

Number

Sixty needs two digits and sixty-one needs ten

The smallest solution of x² − 60y² = 1 is x = 31. For x² − 61y² = 1 it is x = 1,766,319,049. The jump is not an accident of 61: the solution is exactly the product of one period's complete quotients, so its size is set by how long the continued fraction takes to come home — and for the cattle problem Archimedes is said to have posed, that product has 103,273 digits.

Number

The square that cannot shrink

The usual proof that the square root of two is irrational is about even and odd numbers. There is a proof about squares instead, in which a supposed solution is folded into a smaller one — and the folding is a drawing.

Number

Two families of solutions, and a box that holds both

Replace the 1 in Pell's equation by 7 and x² − 2y² = 7 still has infinitely many solutions — but they fall into exactly two families, each one an orbit of the same multiplication, and every family has a member inside a box whose size is fixed in advance. How many families there are is then a count of factors, and 3 has none.

Number

When minus one can be reached

x² − Dy² = 1 always has a solution. Put −1 on the right and it sometimes does and sometimes does not. A remainder rules out most D at a glance, every prime of the form 4k + 1 is guaranteed one, and between the two lies a set of D decided by arithmetic several layers deep — of which, a million numbers in, 78% are solvable, on the way to a limit of 58% that was proved only in 2022.

Number

Why the expansion has to repeat

The continued fraction of √61 runs 7; 1, 4, 3, 1, 2, 2, 1, 3, 4, 1, 14 and then starts again. It must: each step's state is a pair of whole numbers trapped in a small band, and only 14 pairs fit. The expansion of √61 visits 11 of them in a cycle, the other 3 form a cycle of their own, and the period reads the same backwards before its last term, which is twice the first.

The whole library · What the figures prove