A cube root that looks like chance
Worth reading first: Why the expansion has to repeat · A fraction that never closes.
Why the expansion has to repeat proved that the continued fraction of every square root is periodic: , and it has no choice, because each step’s state is a pair of whole numbers trapped in a small box. Every equation in the preceding essays on Pell’s equation rested on that periodicity. The fundamental solution is the product of one period’s complete quotients, the sign of is the period’s parity, and the whole theory of the equation is a theory of one repeating block.
That essay ended on the next simplest kind of number: the root of a cubic, such as . Its expansion begins , and it is not known whether its terms stay bounded. This essay computes the expansion properly, to six hundred terms and beyond, looks at what comes out, and measures it against the one theory that predicts anything about it — which is a theory not of cube roots but of numbers chosen at random.
The contrast is the point. For a square root there is a box, and so a period, and so everything. For a cube root the same argument has nowhere to start: the state of the expansion is a cubic polynomial whose coefficients grow without limit, so no pigeonhole ever closes. What replaces the law is a set of statistics, and whether they are laws or only habits is unknown.
Seventeen terms from a calculator, and then noise
The obvious way to compute a continued fraction is the definition. Take , record its integer part 1, replace by , record 3, and repeat. The trouble is that each step subtracts two nearly equal numbers and then divides by the small difference, which multiplies the error already present by roughly the square of the new complete quotient.
Starting from the best value an ordinary computer can hold — about sixteen correct digits — this procedure gives exactly seventeen correct terms of , and then diverges from the truth. The eighteenth term it produces is wrong, and every term after that is noise dressed as a continued fraction. Nothing in the output warns of the moment it happens: a wrong term looks exactly like a right one.
More digits postpone the failure without removing it. Each term consumes, on average, a little over one decimal digit of precision — the reason is the growth rate of the denominators, measured below — so six hundred terms need about six hundred correct digits at the start, and there is no way to know in advance how many the large terms will eat. A term of 7,451 costs about eight digits on its own.
A cubic for every step
Lagrange found a way out in the 1760s, and it avoids decimals entirely. Instead of carrying an approximation of the current complete quotient, carry the polynomial it is a root of.
is the root of . That cubic is negative at and positive at , so the root lies between them and its integer part is . Now write , where is the next complete quotient, and substitute: becomes, after multiplying through by , the cubic . That cubic has one root above 1, it changes sign between 3 and 4, so the next term is 3. Substitute , clear fractions, and the cubic for is , whose root lies between 1 and 2.
Every step is whole-number arithmetic: a shift of the polynomial by the integer part, which is a table of binomial coefficients, and a reversal of the coefficient list, which is the . Nothing is rounded, so every term the method produces is exactly right, however far it runs. The cost has moved from precision to size. The coefficients grow: after three thousand terms they have about 1,526 digits each. But whole numbers of that size are cheap, and three thousand terms take a fraction of a second.
What does not happen is the thing that happens for square roots. For the analogous state was a pair that could take only fourteen values, so it had to repeat. For the state is a cubic whose coefficients grow roughly in step with the denominators of the convergents. It never repeats, and it never could: a repeating expansion would make the root of a quadratic, which it is not.
The invariant that survives, and the box that does not
The failure of periodicity can be pinned down more exactly than “the coefficients grow”, and doing so shows what the square-root argument really used.
Each of Lagrange’s cubics can be read as a binary cubic form, , and the step is a change of variables with whole-number coefficients and determinant . Such a change preserves the form’s discriminant, . For it is . For it is again. Computed exactly for each of the first six hundred cubics in the expansion, it is every time, while the leading coefficient grows from one digit to four by the tenth step and to fifty-seven by the hundredth.
The square roots had exactly this invariant. The quadratic whose root is each complete quotient of has the same discriminant at every step, . What made the expansion repeat was a second fact: the quadratic’s other root always lies between and , and a quadratic with a fixed discriminant and its two roots so placed has bounded coefficients. Finitely many quadratics qualify, so one recurs. That is the box why the expansion has to repeat drew, and it is also why sixty needs two digits and sixty-one needs ten could read the fundamental solution off one period’s complete quotients.
A cubic’s other two roots are a complex pair, and nothing holds them apart. As the expansion runs they crowd together, and a cubic can keep its discriminant fixed while its roots crowd and its coefficients grow without limit. The invariant survives; the box does not. The field still has infinitely many units — units that form a lattice found them all as powers of — but in a quadratic field the period and the unit are the same object, and here there is a unit with no period attached to it.
Six hundred terms, and a 7,451
Most of the terms are small. In the first six hundred, about four in ten are 1, and more than half are 1 or 2. Then, at the thirty-fifth place, comes a 534, and at the 571st a 7,451. Running the method further, to three thousand terms, finds a 4,941 at place 619 and a 12,737 at place 1,990, and above a hundred about fifty times in all.
There is no visible rhythm in where they fall. The gaps between the terms above 100 run 6, 50, 23, 261, 45, 90, 61 and on, with no two alike and no drift. A sequence built by drawing each term at random from a fixed distribution would look like this — and a sequence built by a rule with a hidden period of a few thousand would also look like this for its first few thousand terms, which is why no amount of looking settles anything.
Lang and Trotter published tables of this expansion in 1972, and computations since have pushed it to millions of terms. Very large terms keep appearing, at intervals that stretch as the expansion lengthens, as they do for a number chosen at random.
Four numbers, three kinds of expansion
Set beside other familiar numbers, the cube root’s expansion falls into a clear place.
is : the periodic case, which a fraction that never closes first drew. is , which Euler found in 1737 — not periodic, but perfectly regular, with the pattern running forever. is , and is the fourth row. Their terms were computed differently — ’s and ’s from four hundred correct digits, keeping only the terms that the error interval fixes; 's from cubics — and they look alike.
That kinship is strange, because the two numbers could hardly be more different. is transcendental: no polynomial with whole-number coefficients has it as a root. is the root of , about as simple a polynomial as exists. Yet for every quantity anyone has measured on their continued fractions, the two behave the same, and both behave like a random number. , which is transcendental like , is the one that stands out, because its terms follow a formula.
What a large term buys
A large partial quotient is not merely a large number in a list. It is a record of an unusually good fraction.
If the next partial quotient is , the convergent just before it satisfies . A term of 7,451 means the convergent before it is about 7,451 times better than the typical approximation with a denominator of that size. These convergents are the best approximations there are — each closer than every fraction with a smaller denominator, as the fractions that beat every smaller one showed by walking down the tree of fractions — and a large term is a best approximation that is also unusually good. The notches in the figure are those convergents: times the error drops below a few times and to about once.
So asking whether the terms are bounded is asking whether can be approximated unusually well infinitely often. Here the answer is partly known. Approached too fast to be algebraic followed the story from Liouville to Roth: in 1955 Klaus Roth proved that for any algebraic irrational and any , the inequality has only finitely many solutions. In the language of the figure, apart from finitely many notches, none goes below . For the terms, that means eventually, for every .
That is a real constraint and a weak one. It allows the terms to grow — like , or like — without limit. Roth’s theorem forbids to be approached as fast as a Liouville number; it does not forbid it the occasional very good fraction forever. And Roth’s theorem is ineffective: it says the exceptions are finite and gives no way to find the last one.
The denominators themselves grow at a rate that, again, is the random rate. Paul Lévy proved in 1936 that for almost every number tends to . For , after 1,200 terms the denominator has 614 digits and . That rate is also why each term costs about one decimal digit of precision. The $n$th convergent is accurate to about , and has about digits, so pinning down terms takes about correct digits at the start.
The statistics of a number chosen at random
Almost every real number — every number except a set of total length zero — has a continued fraction with the same statistics. Gauss found the first of them, and Rodion Kuzmin proved it in 1928: the proportion of terms equal to tends to , which is about 41.5% for 1, 17.0% for 2, 9.3% for 3, and falls off like .
The cube root follows it closely. Among the first 1,200 terms, 42.5% are 1, 15.8% are 2, 8.8% are 3 and 6.5% are 4, against the law’s 41.5%, 17.0%, 9.3% and 5.9%. The differences are the size that sampling 1,200 terms from the law would produce.
A second statistic is the geometric mean of the terms. Alexander Khinchin proved in 1935 that for almost every number it converges to the same constant, about , whatever the number. A square root fails this: ’s mean is 2 forever. fails it the other way, because the terms grow and its geometric mean grows with them.
For the running mean swings early — the 534 at place 35 and the 372 at place 114 lift it above 3 — and then settles. At 600 terms it is 2.773, at 1,200 it is 2.656, at 3,000 it is 2.631. Khinchin’s constant is 2.685. The mean of a random sequence with the Gauss–Kuzmin distribution converges slowly, because the distribution has a heavy tail — a single term of 12,737 moves the logarithm’s running sum by more than nine — and these readings sit inside the spread such a sequence would show.
No proof connects any of this to . The theorems of Gauss–Kuzmin, Khinchin and Lévy are about almost every number, and a set of measure zero can contain anything: every rational, every quadratic irrational, , and possibly every algebraic number of degree three. How close a fraction can get made the same point about Khinchin’s constant from the side of approximation. For no number that can be written down independently of its expansion has anyone proved that it obeys any of these laws.
Still open: whether the terms are bounded
For — and for every other real algebraic number of degree three or more — it is unknown whether the partial quotients are bounded. It is not even known whether any one such number has unbounded terms, or whether any one has bounded terms; both classes could be empty for all anyone can prove.
The expectation is that they are all unbounded, with the Gauss–Kuzmin statistics, because the terms of a random number are: a term above appears with probability roughly , and those probabilities add up to infinity, so large terms keep coming. The figures agree with the expectation as far as they go. A bounded expansion would have to stop producing 534s and 7,451s at some point, and within three thousand terms it has shown no sign of doing so — the largest so far is the 12,737 at place 1,990.
The difficulty is that every tool that sees continued fractions works either for quadratic irrationals, where periodicity gives everything, or for almost every number, where measure theory gives everything. is in neither world. Roth’s theorem is the deepest result that applies to it, and it limits how fast the terms can grow without saying whether they grow. The coefficients of Lagrange’s cubics hold, in principle, the whole answer — each term is decided by where a cubic with known integer coefficients changes sign — and still nobody knows how to read a long-run pattern out of them.
What the computation shows and what it cannot
Every term drawn here is exact. The method never rounds, and its first dozen terms agree with a decimal expansion wherever the decimals are still reliable. Six hundred terms in one figure, 1,200 in the statistics, and three thousand in the prose, all come from the same whole-number recursion.
What no computation can show is a limit. The Gauss–Kuzmin frequencies, Khinchin’s mean and Lévy’s rate are statements about infinitely many terms, and the agreement after 1,200 is evidence of the kind that when minus one can be reached warned about: a quantity approaching its limit in the data is not a proof, and there the data sat twenty points from the limit that was eventually proved. Here the data sits almost on the predicted values, which is either a sign that the prediction is right or a sign that whatever makes special shows only on scales nobody can compute.
The contrast with the square roots is the thing to keep. For a finite computation proved everything, because the period closed. For an unlimited computation proves nothing about the pattern, because there is no period to close — only a cubic that keeps growing, and a sequence of terms that looks, from every angle anybody has tried, like chance.
Shares its objects with
Essays that name at least two of the same things, and that neither author linked.
- A method that is allowed to miss — both name algorithm, continued fractions
- Matching as they arrive — both name algorithm, randomness
- One solution that makes all the others — both name continued fractions, quadratic irrational
- The pattern in e's continued fraction — both name continued fractions, periodicity
Named objects
A dashed tag is an object no other essay names yet.
Algebraic numberAlgorithmContinued fractionsCubicPeriodicityQuadratic irrationalRandomness