Convergence
In some sense, the convergents are the best possible approximations for a given nonnegative real:
Theorem: Let be a convergent for the nonnegative real . Then if is a closer rational approximation, then .
Proof: Recall successive convergents get closer to and alternatively overshoot and undershoot . Also recall . The result follows from the next lemma.
Lemma: Suppose
and . Then and .
Proof: Manipulating the inequalities gives
As , we find . The proof for is similar.
We can say more about any rational approximation to . Suppose is odd. The following generalizes to even by flipping signs.
Since are coprime, the solutions of are given by for all integers . Likewise, we can construct a sequence of approximations, the intermediate convergents,
This sequence strictly increases, as do all the numerators and denominators, and gets closer and closer to .
Given a rational approximation to , we have three cases:
-
is one of the intermediate convergents.
-
lies between two of the intermediate convergents, hence by the lemma is greater than the denominator of the intermediate convergents on either side.
-
lies between the last intermediate convergent and . By the theorem .
We establish handy rules of thumb for the accuracy of a convergent. Let . Recall
thus
Furthermore , with equality only when is a rational terminating with . We also have
In summary,
Theorem: Let be the convergents of a nonnegative real . Then
Now for a sort of converse:
Theorem: If where are coprime then is a convergent of .
Proof: Let the expansion of be where is odd. (Recall a rational has two possible expansions, one exactly one term longer than the other.) Define by the real that satisfies .
We will show , because this implies we could expand into a continued fraction with a nonzero first term and obtain a continued fraction expansion for , proving the theorem.
Rewriting
gives
As is odd, we have for some , thus
We need only show :
At last we plug a hole in our proof that rationals have exactly two finite continued fraction expansions. Suppose the rational has an infinite continued fraction expansion. This would imply
as , a contradiction.