The pattern in e's continued fraction
Worth reading first: The fraction Lambert built for the tangent · A fraction that never closes.
Several earlier essays have quoted the continued fraction of without proving it. A fraction that never closes listed it beside and π; approached too fast to be algebraic used its growing terms to explain why is hard to approximate in one sense and easy in another; the tail too small to be a whole number noted that Euler proved the pattern with a Riccati equation and that the proof belonged here and was not here.
This is that proof, in a modern form so short it fits on a page, and it turns out to be a story about integrals as much as about fractions.
Reading the terms off without assuming them
The figure’s terms were not typed in. A continued fraction of a number is found by repeatedly taking the whole part and inverting what is left, and that process can be run on any exact fraction. The trick is to run it on two fractions, one known to be just below and one just above: every term on which the two expansions agree is a term of ’s expansion too, because lies between them. The lower bound is a partial sum of and the upper bound adds a strict overestimate of the remaining tail, so both are exact and both are certain.
With eighty terms of the series the bounds agree for more than thirty terms of the fraction, and those terms are exactly the pattern: , then for . The figure checks each term against the rule. That is evidence for the pattern at the start, and evidence is all a finite computation can give — the pattern could in principle break at term forty. What rules that out is a proof.
The comparison puts in its place among familiar numbers. A continued fraction that eventually repeats belongs to a root of a quadratic equation with whole-number coefficients — that is Lagrange’s theorem, and why the expansion of a square root has to repeat is its proof. The golden ratio and are the simplest periodic cases. π’s terms follow no known pattern at all, and its early 292 is the reason is such a remarkable approximation. is between the two: a pattern as regular as a square root’s, but growing rather than repeating. So once the pattern is proved, is not a quadratic irrational — a result that needs nothing else.
The fractions the pattern produces
The pattern is easier to feel through the fractions it makes. The convergents of — the fractions obtained by stopping the continued fraction after each term — begin
alternately below and above , each closer than the last. The ones just before a large term are the notably good ones: comes before the and is already right to three figures; comes before the ; comes before the and is right to seven figures with a four-digit denominator.
Every one of them is a best approximation: no fraction with a smaller denominator is closer to . That is the general property of convergents that the fraction that never closes established, and it means the list above is the complete record of the record-breaking fractions for — the best approximations anyone could find by searching, produced instead by a pattern of ones and even numbers.
The same pattern also explains why decimal digits of look irregular while its continued fraction does not. Decimal digits are a record of base ten, a choice made for human convenience, and in that base shows no structure at all. The continued fraction is a representation that belongs to the number itself, with no base chosen, and in it the structure of — a structure it inherits from being the exponential of — is on display.
Three integrals that are e’s own errors
The proof is due to Henry Cohn, who published it in 2006, and it replaces Euler’s differential equation with three definite integrals. For each let
The integrands are polynomials times , and the polynomials vanish at both ends of the interval to high order, so every integration by parts moves a derivative onto the polynomial with no boundary terms. Doing that once gives three relations that step from to :
The third is just the observation that the two integrands differ by . The coefficient in the second — the only place anything but appears — is where the even numbers in the pattern will come from.
Why the integrals are the errors
Now compare with the convergents. It is convenient to write ’s fraction as — the same number, with a harmless zero that makes the terms come in uniform triples . The convergents of any continued fraction obey the rule that each new numerator is the current term times the previous numerator plus the one before, and the same for denominators. With terms coming in triples , that rule, written three steps at a time, reads
and the same for . These are the integral relations in another form. Set
At both sides agree: , , , and the first convergents are , and — the middle one a formal convergent that the zero term produces, harmless because it is only ever used inside the recurrence. And the recurrences for the right-hand sides, obtained from the convergent rule, are exactly the three integral relations. So by induction each integral is exactly the error of a convergent of the continued fraction . The figure checks this at to with the integrals computed numerically and the convergents computed exactly, and they agree to six places.
The finish is one line. The integrands are at most times in size on the interval, so : the errors of the convergents go to zero, the convergents converge to , and the continued fraction whose terms are is ’s own. The pattern is proved.
Where the integrals came from
Cohn’s integrals were not pulled out of the air. Polynomials with high-order zeros at both ends of an interval, multiplied by and integrated, are the tool Charles Hermite used in 1873 to prove that is not merely irrational but transcendental — not the root of any polynomial with whole-number coefficients.
The reason the tool works is the one the integrals display here. Integrating such a product by parts, repeatedly, produces a whole-number combination of and plus nothing — the boundary terms vanish because of the zeros — so the integral is a small whole-number combination . The polynomial’s high-order zeros make the integral tiny while the coefficients stay whole. Hermite used polynomials vanishing at several points simultaneously, which gave small whole-number combinations of all at once and ruled out any polynomial relation among them. Cohn’s integrals are the simplest case, with zeros only at and , and what they produce is precisely the best approximations to alone.
So the continued fraction of and the transcendence of are two outputs of one method, and the method is integration by parts against a polynomial chosen to vanish where the boundary terms would otherwise appear. The integrals are also the Padé approximants of the exponential in disguise: the fractions they define are the ratios of polynomials that best match at , for the same reason that Lambert’s convergents were the best rational approximations of the tangent. The curve that is its own slope is, underneath, the reason every one of these constructions closes up so neatly: differentiating changes nothing, so integrating by parts against it only ever moves derivatives onto the polynomial.
How close the convergents get
A continued fraction’s terms control how well its convergents approximate. The general rule is that the convergent before a term has error about , so large terms mean unusually good approximations.
For , with every term equal to , the product settles at a constant and never falls. For it dips every third convergent, the one immediately before a term , and the dips deepen like . So ’s convergents beat by a factor that grows — slowly, logarithmically in , because grows only like the logarithm of the denominators.
That is exactly the borderline behaviour. A number that could be approximated to within infinitely often, for some fixed , would have an irrationality measure above ; ’s approximations beat only by a factor like , which is smaller than any power. The irrationality measure of is exactly , the same as that of almost every real number, and it is read off directly from the growth of the pattern’s even terms. In the language of the approximation exponent, is as far from a Liouville number as a number can be while still having unbounded terms.
Why a growing pattern rules out a quadratic
A pattern and a period are different things, and the difference is exactly the difference between and the square roots. Lagrange proved that a continued fraction repeats from some point on if and only if the number is a root of a quadratic equation with whole-number coefficients; why the expansion has to repeat shows the mechanism, a walk through finitely many states that must eventually revisit one. A repeating expansion takes only finitely many distinct values, so its terms are bounded.
The terms of are not bounded: appear at every third place and grow without end. So the expansion never repeats, and is not the root of any quadratic — a statement stronger than irrationality, obtained in one line from the pattern. The same reasoning gives it for and for , whose patterns also grow.
The contrast with Pell’s equation is instructive. For the period is what makes one solution generate all the others: the convergent at the end of each period solves , and the repetition is a multiplication. For nothing recurs, and no convergent is special in that way; the convergents just before the even terms are good, the others ordinary, and each good one is better than the last by a factor that grows with the term it precedes. What has instead of a period is a rule — a formula for the $n$th term — and a rule is enough to prove everything a period would have proved except the quadratic equation, which is false.
The same shape in the square root of e
The pattern is not special to itself.
For with a whole number , the expansion is , and for that is the figure’s . The same integrals, with in place of , prove it. And there are patterns for as well, obtained from the continued fraction of the hyperbolic tangent in Lambert’s proof, which is the source from which Euler’s and all later versions of these expansions ultimately descend.
Other powers are less tidy. The continued fraction of begins and does have a pattern — period five, with two terms growing linearly — but has none known. The powers with patterns are exactly the ones that the hyperbolic tangent’s fraction reaches; beyond them, ’s regularity seems to stop.
Euler’s route, and why the integrals are simpler
Euler proved the pattern in 1737 by relating ’s continued fraction to the solution of a Riccati differential equation, in a scaled form, whose solution can be written both as a ratio of series and as a continued fraction. The proof is a genuine piece of analysis and it establishes more than the pattern — it produces the whole family of expansions for and for .
Cohn’s integrals do less and are shorter, and the reason they work is the one integration by parts always offers: moving a derivative from one factor to the other turns one integral into a combination of others, and here the combination reproduces the recurrence of the convergents exactly. The coefficient that appears is the derivative of counted twice, and the even numbers of the pattern are nothing more than that. It is a small example of a general phenomenon: when a sequence of integrals satisfies a three-term recurrence, a continued fraction is hiding in it, and the integrals are the errors of its convergents.
What the pictures cannot show
The pattern beyond the bounds. The bars and the table show terms fixed by exact bounds, thirty of them for . The proof covers every term, and the figures are consistent with it and nothing more. For π the table is the whole of what is known: its terms can be computed to any length, and no pattern has ever been found or ruled out.
The integrals exactly. The areas in the fourth figure were computed by Simpson’s rule, and they agree with the exact convergent errors to six significant places. The equality is exact, and it comes from the induction; the numerical agreement is a check on the relations, which a sign error in them would fail.
Why the measure is exactly two. The error figure shows the dips deepening like over twenty-three convergents. That they never deepen faster — that no subsequence of approximations beats — follows from the pattern and the general theory of continued fractions, which the figure illustrates without proving.
Still open: patterns that nobody can find
The continued fraction of has a pattern and π’s apparently does not. For the simplest algebraic numbers beyond square roots, nothing is known either way: whether the terms of the continued fraction of the cube root of two are bounded is open, and so is the analogous question for every algebraic number of degree three or more. Computations of millions of terms find the occasional large one, in the proportions a random number would show, which is what almost every number does and what no one can prove any particular algebraic number does.
For π the question is not even whether its terms are bounded — they are believed to be unbounded, like almost every number’s — but whether any structure at all can be proved about them. The generalised continued fractions of π, with numerators other than one, do have patterns, some found by Euler and Brouncker and many more found recently by computer search; the simple continued fraction, with every numerator one, remains the patternless row of the table above.
A pattern and its proof
The continued fraction of is followed by the triples , and the terms can be checked from exact bounds for as far as anyone cares to compute. Proving the pattern for every term takes three integrals of polynomials times , related by integration by parts in exactly the way the convergents are related by the continued fraction’s own recurrence — so that each integral is, identically, the error of one convergent.
The pattern proves at once that is irrational, that it is not the root of any quadratic, and that its irrationality measure is exactly two. It is also the reason sits apart from both the square roots, whose terms repeat, and π, whose terms have never been caught doing anything at all.
What links here
Computed from the collection, not written here: the essays that point at this one.
Shares its objects with
Essays that name at least two of the same things, and that neither author linked.
- The fractions that beat every smaller one — both name continued fractions, diophantine approximation, irrationality, rational approximation
- A memory of four bits — both name periodicity, recurrence
- A method that is allowed to miss — both name continued fractions, convergent
- How close a fraction can get — both name continued fractions, rational approximation
- How short a cycle could be — both name continued fractions, diophantine approximation
- Nobody gets their own hat — both name e, the number, recurrence
Named objects
A dashed tag is an object no other essay names yet.
Continued fractionsConvergentDiophantine approximatione, the numberIntegralIrrationalityPeriodicityRational approximationRecurrence