Path: blob/main/notebooks/published/continued_fractions/continued_fractions.ipynb
51 views
Continued Fractions: Theory and Computation
Introduction
Continued fractions provide a powerful representation of real numbers that reveals deep arithmetic properties often hidden in decimal expansions. A simple continued fraction is an expression of the form:
where and for . This is compactly written as:
Mathematical Foundation
Convergents
The -th convergent is obtained by truncating the continued fraction at the -th term. These convergents satisfy the recurrence relations:
with initial conditions , , , .
Best Rational Approximations
A fundamental theorem states that the convergents are the best rational approximations to in the following sense:
Moreover, if is any fraction with , then:
Notable Examples
Golden ratio:
Euler's number:
:
:
Demonstration: Continued Fractions of Classical Constants
Let us compute the continued fraction representations of several important mathematical constants and analyze their convergence properties.
Convergence Analysis
We now examine how rapidly the convergents approach the true value. The error is measured as:
For the golden ratio, which has the simplest continued fraction , the convergence is the slowest among all irrational numbers. This makes it the "most irrational" number in a precise sense.
Detailed Convergent Analysis
Let us examine the convergents of more closely, demonstrating the remarkable efficiency of this representation.
Periodic Continued Fractions and Quadratic Irrationals
A remarkable theorem due to Lagrange states that a real number has an eventually periodic continued fraction if and only if it is a quadratic irrational (a root of a quadratic equation with integer coefficients).
For example:
(period 1)
(period 2)
(period 1)
where the overline denotes the repeating part.
Conclusion
Continued fractions provide:
Optimal rational approximations - The convergents are the best possible approximations for a given denominator size
Structural insights - The pattern of coefficients reveals arithmetic properties (e.g., periodicity for quadratic irrationals)
Computational efficiency - Fast algorithms for computing approximations to irrational numbers
The theory connects to many areas including Diophantine approximation, ergodic theory, and the geometry of numbers.