A simple continued fraction recursively expands a real number by taking integer parts and reciprocals. Its convergents are exceptionally good rational approximations.
Given consecutive continued fraction convergents and , the intermediate fractions for are semiconvergents, where is the next partial quotient. The endpoint is the next convergent. These fractions matter in best rational approximation when a denominator bound cuts between consecutive convergents.
For a quadratic irrational , write its complete quotient as . The recurrence , , computes its continued fraction. For , the successive pairs after the initial quotient are , and then the cycle repeats. They give the displayed period of length six.
The finite negative continued fraction isFor , it describes a negative-framed chain of unknots: the diagonal framings are and adjacent linking numbers are one. Repeated slam-dunk moves give rational surgery coefficient . The corresponding chain matrix is negative definite. To check this, the successive determinants of its negative have recurrence , starting with , ; they are positive and increasing, so Sylvester's criterion applies.
A continued fraction with integer and positive integer for . Its partial numerators are all one. The continued fraction convergents have the standard two-term numerator and denominator recurrences.
The map on , with . Its digit gives the successive partial quotients of a continued fraction. This is distinct from the geometric Gauss map assigning surface normals.
On each branch with digit , the displayed extension of the Gauss continued-fraction map is invertible almost everywhere: and , with . Its invariant joint probability density function is . The branch Jacobian determinant is , which cancels the transformation of . Integrating out gives the Gauss measure density.
The inverse branch of the th iterate of the Gauss continued-fraction map on a fixed digit cylinder has the displayed form, with continued fraction convergents . Its derivative has absolute value . Since , the maximum-to-minimum derivative ratio is at most four. The density of the Gauss measure changes this ratio by at most a further factor two. The cylinders shrink to irrational points, so this uniform distortion bound and the Lebesgue density theorem prove ergodicity of the map.
The invariant measure for the Gauss continued-fraction map with density on . Inverse branches give transformed density , which telescopes to the same density.
For a simple continued fraction, the complete quotients satisfy , and whenever the denominator is nonzero. Thus .
A simple continued fraction terminates exactly when its value is rational. For a reduced rational , each reciprocal step is one step of the Euclidean algorithm and replaces the denominator by a strictly smaller nonnegative remainder.
Truncating a simple continued fraction gives a convergent; sufficiently accurate rational approximations with bounded denominator occur among these convergents.
Between consecutive continued fraction convergents, intermediate convergents have the form for . The final value is the next convergent.
For nonsquare , write the complete quotients after the initial term as . They exceed one, while their algebraic conjugates lie between minus one and zero. Thus . Comparing coefficients in gives , and the last determinant has absolute value one. These small residues are useful candidates for smooth numbers in congruence-of-squares factorization.
A rational is a best approximation of the second kind to when is no larger than for every competing rational with . Every simple continued-fraction convergent has this property.
With ,
Because each matrix is symmetric, reversing the partial quotients transposes their product. If the convergents of are , then the last two convergents of are
When and are positive integers, adjacent convergents satisfyEven and odd convergents are monotone from opposite sides, their separation is , and . They therefore have a common limit , with
If every , then and . Binet's formulashows that the convergents tend to and gives sharp scaled errors through .
The Lagrange theorem says that a real number has an eventually periodic simple continued fraction exactly when it is a quadratic irrational.
The simple continued fraction of a quadratic irrational is eventually periodic. For a nonsquare positive integer , the continued fraction of is periodic after its integer part.
A continued fraction is purely periodic when its repeating block begins at its first partial quotient:
Let , and let be its algebraic conjugate, the other fixed point of the Möbius transformation represented by . ThenThe identity follows by transposing the continued-fraction matrix and substituting in its fixed-point equation.