Generator

Odd numbers as square shells

A generator in the geometry library, called 35 times across 8 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.

figurate 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

Odd numbers as square shells. Nested L-shaped shells of 1, 3, 5 … 11 cells stack into a 6 by 6 square.

Numbers made of pyramids

Numbers made of pyramids. below 1000000: 241 need five; first 17, 27, 33, 52, 73, 82, 83, 103, 107, 137, 153, 162; last 343867 = 341376+1771+680+20+20.

The numbers that need five

The numbers that need five. 241 numbers: 17, 27, 33, 52, 73, 82, 83, 103, 107, 137, 153, 162, 217, 219, 227, 237, 247, 258, 268, 271, 282, 283, 302, 303, 313, 358, 383, 432, 437, 443, 447, 502, 548, 557, 558, 647, 662, 667, 709, 713, 718, 722, 842, 863, 898, 953, 1007, 1117, 1118, 1153, 1227, 1233, 1243, 1314, 1382, 1402, 1468, 1478, 1513, 1523, 1578, 1612, 1622, 1658, 1678, 1693, 1731, 1738, 1742, 1758, 1767, 1803, 1858, 1907, 1923, 1933, 2037, 2053, 2172, 2198, 2217, 2218, 2251, 2253, 2327, 2372, 2382, 2417, 2437, 2457, 2537, 2538, 2578, 2687, 2818, 2858, 2898, 2973, 3138, 3142, 3183, 3218, 3263, 3463, 3512, 3887, 4003, 4307, 4317, 4563, 4832, 4923, 5013, 5142, 5238, 5283, 5483, 5508, 5538, 5563, 5618, 5647, 5707, 6022, 6057, 6067, 6186, 6213, 6263, 6343, 6462, 6863, 7067, 7278, 7377, 7387, 7423, 7497, 7542, 7662, 7793, 7873, 8223, 8307, 8322, 8973, 9063, 9488, 9687, 9753, 9772, 9973, 10397, 10467, 10532, 10633, 10852, 11237, 11302, 11737, 11962, 12247, 12547, 12722, 12777, 12843, 12858, 13127, 13393, 13822, 14492, 15122, 15483, 15867, 16097, 16538, 16637, 16742, 17253, 17683, 17813, 17893, 18573, 18782, 19168, 19277, 20918, 21523, 22618, 22657, 23677, 24237, 24317, 24338, 25447, 25723, 26007, 27858, 28617, 28847, 29157, 29487, 29938, 30298, 31973, 33183, 36262, 36913, 37798, 38453, 38707, 38807, 39693, 39913, 41278, 41322, 41433, 44833, 47627, 48043, 56467, 56842, 58613, 59077, 62158, 64752, 65253, 65567, 71157, 74687, 78003, 78787, 83603, 84023, 85993, 91128, 106277, 113062, 134038, 148437, 343867.

Most large numbers need four

Most large numbers need four. 1e2: ≤3 0.6364, 4 0.2955; 1e2.25: ≤3 0.5897, 4 0.3462; 1e2.5: ≤3 0.5000, 4 0.4058; 1e2.75: ≤3 0.5366, 4 0.4228; 1e3: ≤3 0.5365, 4 0.4384; 1e3.25: ≤3 0.5000, 4 0.4679; 1e3.5: ≤3 0.5108, 4 0.4682; 1e3.75: ≤3 0.4990, 4 0.4925; 1e4: ≤3 0.4891, 4 0.5038; 1e4.25: ≤3 0.4814, 4 0.5150; 1e4.5: ≤3 0.4783, 4 0.5199; 1e4.75: ≤3 0.4697, 4 0.5296; 1e5: ≤3 0.4705, 4 0.5292; 1e5.25: ≤3 0.4598, 4 0.5401; 1e5.5: ≤3 0.4599, 4 0.5401; 1e5.75: ≤3 0.4557, 4 0.5443; 1e6: ≤3 0.4558, 4 0.5442; 1e6.25: ≤3 0.4541, 4 0.5459; 1e6.5: ≤3 0.4521, 4 0.5479; 1e6.75: ≤3 0.4517, 4 0.5483; 1e7: ≤3 0.4509, 4 0.5491

Ways to write a number, three against four

Ways to write a number, three against four. 1e3: three 0.646, four 2.744; 1e3.25: three 0.640, four 3.359; 1e3.5: three 0.670, four 4.155; 1e3.75: three 0.671, four 5.054; 1e4: three 0.677, four 6.175; 1e4.25: three 0.685, four 7.534; 1e4.5: three 0.689, four 9.172; 1e4.75: three 0.693, four 11.161; 1e5: three 0.696, four 13.564; 1e5.25: three 0.699, four 16.480

Each dimension costs more summands

Each dimension costs more summands. triangular, k(k + 1)/2: max 3 (1219702 numbers, last 2000000); 2: 778299, last 1999999; tetrahedral, k(k + 1)(k + 2)/6: max 5 (241 numbers, last 343867); 4: 1087275, last 2000000; four-dimensional, k(k + 1)(k + 2)(k + 3)/24: max 8 (6 numbers, last 774); 7: 1491, last 1575319

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.

Analysis

A rectangle grown on two sides

A product of two changing quantities is the area of a rectangle whose sides both move. The extra area is two strips and a corner, and the whole of the product rule is the observation that the corner is negligible and the strips are not.

Geometry

Fifteen numbers decide every number

Lagrange proved that x² + y² + z² + w² takes every whole value. Ramanujan asked which other sums of four weighted squares do, and in 1917 listed fifty-five. One of them is wrong: x² + 2y² + 5z² + 5w² misses 15. The mistake points at a theorem found eighty years later — to know whether such a form reaches every number, it is enough to check that it reaches 1, 2, 3, 5, 6, 7, 10, 14 and 15. Nine checks decide infinitely many cases, and the nine numbers come out of an escalation any one can run.

Geometry

Five pyramids for every number

Stack balls in triangular pyramids and the piles hold 1, 4, 10, 20, 35, … balls. Frederick Pollock guessed in 1850 that every whole number is a sum of at most five such piles. Seventeen needs five — 10 + 4 + 1 + 1 + 1 — and so do 240 other numbers, the largest 343,867; past that, every number up to ten million needs four or fewer. Eight is proved to be enough. Five is not, and the reason is the same one that makes the three-dimensional cousins of the classical theorems hard.

Number

Numbers that are their own parts

Six is one plus two plus three. Twenty-eight is one plus two plus four plus seven plus fourteen. Euclid explained where such numbers come from; Euler proved there are no others of that kind; and whether an odd one exists has been open for two thousand years.

Geometry

Every square is a stack of odd numbers

Add up the odd numbers in order and the running totals are 1, 4, 9, 16, 25. This is not a coincidence, and the reason fits in a single picture.

Geometry

Six numbers that need five pentagons

In 1638 Fermat wrote that every whole number is a sum of three triangular numbers, four squares, five pentagonal numbers, six hexagonal numbers, and so on for every polygon — and that he had a proof he would not write down. The claim is true; Cauchy proved it in 1813. What the claim hides is how unequal the cases are. Triangles and squares need their full count infinitely often. For pentagons, only six numbers ever need all five — 9, 21, 31, 43, 55 and 89 — and from hexagons on, two apiece.

Geometry

Sums of powers, read off a staircase

Add the first n squares, or cubes, or seventh powers, and the answer is always a polynomial in n. Its first term is the area under a curve, its second is half of the last step, and every term after that is a correction for the corners of a staircase — which is where the Bernoulli numbers come from, and why they eventually grow without bound.

Geometry

Three triangular numbers, and no fewer

On 10 July 1796 Gauss wrote in his diary: ΕΥΡΗΚΑ — num = Δ + Δ + Δ. Every whole number is a sum of three triangular numbers. Two are not enough, and not by a little: the numbers that are sums of two thin out to a share of nought. Both facts are statements about squares in disguise, and one picture translates them.

The whole library · What the figures prove