Continued Fractions
11.1 Finite Continued Fractions
Section titled “11.1 Finite Continued Fractions”Definition. For integers with for ,
Every rational number has exactly two such expansions; the last term must exceed 1, and one of vs is chosen by convention:
11.2 Convergents
Section titled “11.2 Convergents”The convergents satisfy the recurrences
with , . Two classical identities:
Convergents are best rational approximations: is closer to the true value than any fraction with denominator . This is why continued fractions convert decimal approximations into “likely” rationals; a standard exam task (feed and recover , ).
11.3 Infinite Continued Fractions
Section titled “11.3 Infinite Continued Fractions”For irrational the expansion is infinite and the convergents converge to (monotone even/odd subsequences, with ).
Irrational quadratic surds have eventually periodic expansions; and conversely:
This is the algorithmic heart of Pell’s equation (Pell’s Equation and Sums of Squares): period length parity decides solvability of , and convergents at period boundaries are the solutions.
The most famous infinite expansion:
11.4 Worked Problems
Section titled “11.4 Worked Problems”Problem 1. Expand .
Let (the periodic self-similarity: and ). Then , so - the golden ratio : the “slowest” continued fraction, and why its convergents (Fibonacci ratios) are the worst approximable numbers. For : follows from -style substitution - compute the expansion directly by the standard algorithm:
, , , ; iterate , , .
Problem 2. Compute convergents of and bound the error.
, , , ; check vs ; error by the identity .
11.5 Common Pitfalls
Section titled “11.5 Common Pitfalls”- Every finite expansion terminates in a rational: irrationals have infinite expansions.
- Convergent denominators grow at least like Fibonacci numbers (all worst case, golden ratio); quoting this justifies “best approximation” claims.
- Periodic expansions detect degree-2 irrationals exactly: is neither rational nor quadratic, so its expansion is aperiodic; do not claim periodicity for cube roots.
- The final partial quotient convention: forbid in canonical form or you get two valid expansions and inconsistent convergent tables.
See Also
Section titled “See Also”- Pell’s Equation and Sums of Squares
- The Distribution of Primes
- Primitive Roots and Discrete Logarithms
This bound is the theorem behind “best rational approximation”: every convergent beats every fraction with a smaller denominator. A typical exam question supplies a decimal expansion and a denominator bound and asks you to recover the fraction; the method is to expand the decimal as a continued fraction and stop at the last convergent within the bound.
For periodic expansions, quote the structure: has partial quotients generated by the recurrence on , the period begins at , and the last term of the period is always . Citing these facts precisely earns the method marks even when the arithmetic is long.