Every row of prime differences starts with one
Worth reading first: The primes are what is left over · The longest wait for a prime.
Write the primes in a row: 2, 3, 5, 7, 11, 13, 17, 19, 23, 29 — the numbers that survive when the composites are crossed out. Beneath them write the differences between neighbours, ignoring sign: 1, 2, 2, 4, 2, 4, 2, 4, 6. Beneath that, the differences of the differences: 1, 0, 2, 2, 2, 2, 2, 2. And again: 1, 2, 0, 0, 0, 0, 0. Every row so far begins with 1, and if the triangle is continued for as many rows as there are primes to feed it, every row continues to begin with 1. It is the kind of pattern that appears to be an accident of small numbers and then refuses, for as far as anybody has looked, to stop — like the diagonal lines on the primes on a spiral, it is order nobody ordered.
The observation is called Gilbreath’s conjecture, after Norman Gilbreath, a mathematician and magician who noticed it in 1958 while doodling on a napkin, although François Proth had published it in 1878 together with a proof that turned out to be wrong. Andrew Odlyzko checked it in 1993 for all the primes below , more than three hundred billion of them. There is still no proof, and the figures in this essay will not supply one.
What they can do is show why the conjecture keeps being true, and what it is actually a statement about. Some of the structure is forced, by an argument short enough to give in full. The rest depends on how the gaps between primes are arranged, and comparing the primes with sequences that are not the primes shows which features of the arrangement matter: not primality, but the fact that the large gaps come late.
The triangle
The figure lays out the first fourteen rows of the triangle, with each entry placed between the two entries above it whose difference it is. The leading 1s are shaded. Two other things are visible at once. Away from the left edge, the entries are small: by the third row almost everything is 0 or 2, drawn faint, and the larger numbers that survive — a 4 here, a 6 there — sit under places where the primes above had an unusually large gap. And the small numbers have a definite parity, which nothing in the way the primes are produced, by a sieve or by a product over them, would lead one to expect: apart from the leading entry, which is odd, every entry of every row below the first is even.
The parity is not an accident, and it is the one part of the pattern that can be proved in a line. For integers, has the same parity as , so the parity of every entry of the triangle is what it would be if the differences were replaced by sums. Summing instead of differencing builds Pascal’s triangle — the entry rows down and places along is — and modulo 2 every prime except 2 is 1. An entry whose sum does not involve 2 is therefore , which is even; the leading entry is , which is odd. So the leading entry of every row is odd and every other entry is even, for every , as the figure shows.
That reduces the conjecture to a statement about sizes.
Starting from three
The parity argument also explains a variant that looks at first like a counterexample. Drop the 2 and start the row at 3, with the odd primes only. Then every entry of the first row, and of every row after it, is even, since all the numbers being compared are odd; the leading entries can no longer be 1. Computing the first five thousand rows for the odd primes below fifty thousand, the leading entry is 0 in 2,529 rows and 2 in the other 2,470 — never 4 or more. So the same pattern holds in its even form: without the 2, the leading entry is always one of the two smallest values parity permits, and the 1s of the original triangle are simply what 0s and 2s become after one more difference with an odd number at the front.
That small experiment says something about where the content of the conjecture lies. The 2 at the start is what makes the leading entries odd, by the parity argument, and it contributes nothing else: the 1s are the 0s and 2s of the odd-prime triangle, seen through a difference with an even number. The real claim, in either form, is that the entries near the front of every row are as small as parity lets them be. It is a claim about the beginning of the sequence of primes — 3, 5, 7, 11, 13, with gaps of 2 and 4 — dominating everything that comes after, which is the theme the rest of the figures develop. The leading entry is odd, so it is 1, 3, 5 or more; Gilbreath’s conjecture says it is always the smallest of those. The other entries are even, and the observation that they are mostly 0 or 2 is a statement that they are mostly the smallest evens. The whole pattern is a claim that the triangle wears its entries down to the least values parity allows, and keeps them there.
The field of 0s and 2s
Fourteen rows show the beginning of the process; the figure shows sixty rows for the first 300 primes, compressed so that every entry is a thin cell. The larger values, in blue, are concentrated in the first few rows and in thin streaks running down beneath the places where the primes had large gaps — 14 between 113 and 127, 18 between 523 and 541, and others. Each streak narrows and fades as it descends. The triangle is a kind of smoothing: a large gap introduces a large value, and successive differencing spreads it out and wears it down.
The dashed line marks the row from which nothing but 0s and 2s remain behind the leading 1. For the first 300 primes, that is row 20. Above that row the conjecture is a matter of the particular values; below it, as the next section shows, the conjecture is automatic. This is the structure Odlyzko’s computation exploited: to check the conjecture for a very long list of primes, it is not necessary to build the full triangle, with as many rows as there are primes, but only enough rows to reach the point where the pattern takes over.
The picture is also a warning about the word “eventually”. The 0s and 2s take over only within the primes considered. Extend the row of primes to the right and new large gaps enter the top row, start new blue streaks, and push the settling row further down. So the question is not whether the triangle settles for all primes at once — it cannot, since the gaps between primes are unbounded, since are all composite — but whether each new large gap is worn down before it travels far enough to the left to reach the leading place.
Why a settled row stays settled
The reason settling is permanent is a two-line argument. Suppose a row is a 1 followed only by 0s and 2s. The next row begins with , where is 0 or 2, and either way that is 1. Its later entries are differences of two numbers each of which is 0 or 2, so they are 0 or 2 as well. So the next row has the same form, one entry shorter, and by induction so does every row after it. The figure checks the step on all rows of twelve entries of that form, and every one produces another.
This makes the conjecture for any finite list of primes a finite check of a few rows: once some row is entirely 1 then 0s and 2s, every later row of the triangle, down to the bottom, begins with 1. What can go wrong is shown on the right of the figure. A 4 three places from the front, among 0s, is not worn down in time: the next row has 4s in its second and third places, the one after has a 4 in its second, and the row after that begins with . A large value that is too close to the leading place gets there before successive differences have dissolved it.
But a 4 is not always fatal. The same 4 between 2s — the row 1, 2, 0, 4, 2, 0, 2 — wears away harmlessly, because its differences with its neighbours are 2s rather than 4s. Whether a disturbance near the front breaks the pattern depends on what surrounds it, which is one reason a proof has been elusive: the conjecture is not a statement about any single gap but about how gaps of different sizes interleave.
Rows needed against the largest gap
The settling row can be computed for long lists of primes without building the whole triangle, because only the rows above it are needed. The figure does it for the first primes, from ten up to all 148,933 primes below two million. For the first thousand primes, the triangle settles at row 35; for the first ten thousand at row 65; for all the primes below two million at row 113. So a triangle with 148,932 rows has its pattern fixed by its first 113, and the remaining 148,819 begin with 1 by the induction above.
The second curve is the largest gap between consecutive primes in the same range: 34 among the first thousand primes, between 1,327 and 1,361; 72 among the first ten thousand; 132 below two million, between 1,357,201 and 1,357,333. The two curves track each other closely. That is what the mechanism predicts: a gap of size puts a value of about into the first row, and it takes a number of rows comparable to to wear that value down to 0s and 2s. The longest wait for a prime measured how the largest gaps grow — roughly like , by Cramér’s model — and the settling row inherits that slow growth.
The comparison is the heuristic case for the conjecture. The settling row grows like the square of a logarithm, while the distance from a gap at position to the leading place grows like itself. The primes near are spaced about apart on average, as the count of what has no formula says, and every interval from to contains one, as always one before the double proved, so gaps grow in a controlled way. A large gap appears far to the right, at a position proportional to its size’s exponential, and it has an enormous number of rows to be worn down before its influence can travel back to the left edge. For the leading 1 to fail, a gap of unusual size would have to appear unusually early, and the primes do not do that.
Sequences that are not the primes
If the mechanism is right, the conjecture should hold for sequences that are not the primes but have the same gap structure, and fail for sequences with the same gaps in the wrong order. The figure tests four kinds of sequence, four hundred of each, every one starting 2, 3 and running to 2,000 terms.
The primes themselves pass, as they must. Cramér’s model — the random sequence in which each odd number is kept with probability , so that its members thin out exactly as the primes do — passes 248 times out of 400, 62 per cent. Every failure happens in the first two dozen rows, among the small numbers, where the model’s random choices produce clusters and gaps near the front that the primes happen not to have; a sequence that survives its first rows survives to the end. The primes’ own gaps, with neighbouring gaps swapped at random, pass all 400 times: the gaps are rearranged locally, the sizes stay in the same regions, and the pattern does not notice. The same gaps dealt in a completely random order pass twice in 400, and almost every failure is in the second row, because a large gap dealt to the front breaks the pattern at once.
So the conjecture is not about primality. It is about a sequence that starts 2, 3 and then has gaps that are small, mostly 2s, 4s and 6s, and that grow only slowly as the sequence goes on. Odlyzko made exactly this observation and suggested that any sufficiently random sequence with prime-like gaps would satisfy the pattern with high probability; the experiment agrees, with the caveat that “high” depends on how the small numbers at the start happen to fall. The primes pass that early test by being the particular sequence they are, and pass the later ones for the structural reason the depth figure shows.
Pascal underneath, and Ducci beside
The parity argument is the place where the conjecture touches something old and unexpected. Absolute differences, taken mod 2, are sums, and repeated sums are Pascal’s triangle: the triangle of prime differences, reduced mod 2, is Pascal’s triangle mod two — the Sierpiński pattern — applied to a row that is 0 at its first place and 1 everywhere else. That is why every entry off the leading diagonal is even and the leading one is odd. The leading entry’s parity is in disguise, and the fractal that Pascal’s triangle draws mod 2 is hidden under the conjecture’s every row.
A second connection runs to differences round a ring, Ducci’s process, in which a ring of numbers is replaced by the absolute differences of neighbours, over and over. There the numbers run down to nought, because the ring has no edge and the largest value can only shrink. Gilbreath’s triangle is the same operation on a line instead of a ring, applied to an infinite sequence that keeps feeding in new values from the right; the leading entry is the edge that the ring does not have, and the conjecture is a statement that the edge stays at the smallest value parity permits.
Neither connection explains why the leading odd entry is 1 rather than 3. They explain why it is odd, and why everything else is even, which is half the content of the pattern and the half that can be proved.
Why a hundred and fifty thousand primes prove nothing
The figures show the conjecture holding for 148,933 primes and in hundreds of random sequences, and they show a mechanism that makes it plausible. They do not show that it holds for all primes, and the mechanism does not amount to a proof. The induction settles everything below the first row of 0s and 2s, but whether such a row always comes in time depends on the largest gaps among the primes not appearing too early, and nothing proved about prime gaps is strong enough. The best upper bounds on gaps allow gaps of size about , vastly larger than the the depth figure needs, and a sufficiently large early gap would break the pattern.
The random experiments have a limit of their own. They show that random prime-like sequences usually pass and that shuffled gaps usually fail, which is evidence for the mechanism. But the primes are not random, and a property that random sequences have with probability 62 per cent is not thereby certain for one particular sequence. The figures cannot say whether the primes pass because they are typical of Cramér’s model or because of some structure the model misses. Nor do they say anything about the triangle beyond two million, where the only evidence is Odlyzko’s computation to , which found the same behaviour on a much larger scale.
Still open: a proof, and the right random model
The conjecture has stood since 1958, or since 1878 counting Proth, and the obstacle is that it requires control of prime gaps over all ranges at once — not just that large gaps are rare on average, but that none is ever large enough, early enough, to reach the leading place. A proof would probably need to show that the triangle’s settling row grows more slowly than the position of the gaps that could disturb it, and the bounds on prime gaps that would make this easy are themselves unproved conjectures.
A sharper question is what exactly a sequence needs in order to satisfy the pattern. Odlyzko’s heuristic, and the experiment here, suggest a probabilistic statement: among random sequences that start 2, 3 and have gaps distributed like the primes’, the share that satisfy the pattern for ever is some definite number, and the share that fail is accounted for entirely by accidents among the small terms. Neither the number nor the statement is proved for any natural model. Nor is it known how fast the settling row grows for the primes — whether it is genuinely tied to the maximal gap, as the figure suggests, or whether it eventually falls behind.
A one that never moves
Every row of absolute differences of the primes, after the first, begins with 1 — through all 148,932 rows for the primes below two million, and through all the primes below . Parity forces the leading entry to be odd and every other entry even, because differences mod 2 are sums and the triangle mod 2 is Pascal’s. A row that is a 1 followed only by 0s and 2s produces another, so the pattern is settled once such a row appears: at row 35 for the first thousand primes and row 113 for all below two million, growing with the largest prime gap, 34 and 132. Random sequences with prime-like gaps keep the pattern 62 per cent of the time and the primes’ gaps shuffled almost never do. The conjecture is about small gaps coming first; whether the primes always oblige is unproved.
Shares its objects with
Essays that name at least two of the same things, and that neither author linked.
- A constant that holds the primes — both name prime gaps, primes
- A walk on Gaussian primes stopped by a moat — both name conjecture, primes
- An odd number of squares on every polygon — both name conjecture, parity
- Counting one rectangle, twice — both name parity, primes
- How often two generates every remainder — both name conjecture, primes
- Numbers that never make a prime — both name conjecture, primes
Named objects
A dashed tag is an object no other essay names yet.
ConjectureFinite differenceInductionParityPrime gapsPrimesRandom model