too can be written as a periodic continued fraction, and its truncations give the best rational approximations of the number.
Example — Continued fraction of
We look for with , that is . We rewrite obtaining Substituting on the right at each step: All s after the first digit: . The successive convergents are (ratios of the Pell numbers); each is the best rational approximation of with denominator less than or equal to the given one. Check: against (error ).
Links
Topics: Second-degree equations
Concepts: Convergents · Continued fraction · Pell numbers
Skills: Solving equations · Estimating