Chapter 18 — On Continued Fractions
Summary: Euler’s closing chapter of Book I introduces the third kind of infinite expression — the continued fraction. It develops the convergent three-term recurrence and the alternation property, the bidirectional dictionary between continued fractions and alternating series (yielding Brouncker’s , a continued fraction for , and the celebrated continued fraction whose partial quotients form an arithmetic progression), the use of periodic continued fractions to approximate quadratic irrationals, the Euclidean-algorithm interpretation of rational continued fractions, and the best-rational-approximation principle — applied to and to the leap-year calculation behind the Gregorian calendar.
Sources: chapter18 (Euler, Introductio in analysin infinitorum, Book I, Chapter 18: “On Continued Fractions”, §356–§382).
Last updated: 2026-05-11
Context
Euler opens (§356) by announcing the topic as a “third kind of infinite expression,” alongside the infinite series of chapters 4–17 and the infinite products of chapters 9–11. He predicts that continued fractions “will be much more widely used in the analysis of the infinite in the times to come,” especially in arithmetic and algebra — a prediction borne out by Lagrange, Gauss, and the 19th-century number theorists.
A continued-fraction in Euler’s notation takes one of two forms: with all numerators 1 (the simple form),
or with arbitrary numerators (the generalised form),
Movement 1 — Convergents (§358–§362)
Truncating the continued fraction after levels produces a sequence of convergents whose numerators and denominators each obey the same three-term linear recurrence. Euler tabulates the law:
with the cosmetic prefix before so that the recurrence applies from the start. In the simple form . The convergents alternate around the true value, each closer than its predecessor — so the truncations are simultaneously good rational approximations.
Movement 2 — Continued fraction → alternating series (§363–§364)
Subtracting consecutive convergents gives the telescoping identity
where are the successive denominators of the convergents. So every continued fraction is also an alternating series.
Movement 3 — Alternating series → continued fraction (§365–§373)
Conversely, given , Euler matches term by term against the §363 expansion and shows that the partial numerators are determined up to the free choice of partial denominators (§366–§367). Choosing the partial denominators to clear fractions yields several elegant templates (§368–§373):
- with integers gives
- gives
- gives
- Power-series and product-power templates in §371–§373.
The named identities that drop out are:
- continued-fraction-for-log-2 (§369 Example I): — partial numerators are the squares.
- brouncker-formula (§369 Example II): — partial numerators are the odd squares.
- §370 Example IV: continued fraction for via the §178 partial-fraction series.
- §373 Example I: continued fraction for via the alternating series.
- §373 Example II: continued fraction for via the alternating series.
Movement 4 — When the conversion fails (§374–§375)
Although series-to-continued-fraction always works in principle, the converse — given a continued fraction whose value we don’t know, find the series and sum it — typically fails. Euler illustrates with which the series identity rewrites as
a strongly convergent series whose value is not obvious from the series itself, but which §376 immediately recovers from the continued fraction as .
Movement 5 — Periodic continued fractions (§376–§379)
If the partial denominators repeat with period , the continued fraction satisfies a polynomial equation of degree at most , so its value is a quadratic irrational. Single-letter period (§377): gives , so for we obtain . Two-letter periods (§378) give the roots of , extending the catalog to all square roots. The §378 worked example computes with error from six convergents.
Movement 6 — Quadratic equations (§380)
The same equation that produced the periodic continued fraction can be solved by a continued fraction: substituted into itself gives — but with numerators this is “not too convenient” compared with the simple-form CF.
Movement 7 — Rational continued fractions = Euclidean algorithm (§381)
Any rational with has a finite continued fraction whose partial quotients are exactly the Euclidean-algorithm quotients of and . The same procedure applied to a long decimal expansion of an irrational produces its (infinite) simple-CF expansion — Example II recovers matching §376, and Example III computes — partial quotients forming an arithmetic progression with common difference . This is the [[continued-fraction-for-e|celebrated continued fraction for ]], confirmed (Euler notes) by “infinitesimal calculus.”
Movement 8 — Best rational approximations (§382)
The convergents are the best rational approximations in the Wallis sense: no fraction with smaller denominator gives a closer approximation. Example I applies this to : from the partial quotients the convergents give the Archimedean and Metian ratios — with accurate to better than . Example II does the same for the solar year days, whose convergents give the leap-day-frequency progression from the Julian calendar (1 in 4) up to the Gregorian compromise (97 in 400) — Euler’s last calculation before “END OF THE FIRST BOOK.”
Related pages
- continued-fraction
- convergents-of-a-continued-fraction
- continued-fraction-series-equivalence
- brouncker-formula
- continued-fraction-for-log-2
- continued-fraction-for-e
- periodic-continued-fractions
- euclidean-algorithm-continued-fraction
- best-rational-approximations
- arctangent-series — the Leibniz series sieved in chapter 15 and converted to Brouncker here
- logarithmic-series — series, converted in §369 Example I
- eulers-number — first appearance of ; the CF in §381 Example III