]> Continued Fractions - Convergence

Convergence

In some sense, the convergents are the best possible approximations for a given nonnegative real:

Theorem: Let p/q be a convergent for the nonnegative real a. Then if p/q is a closer rational approximation, then q>q.

Proof: Recall successive convergents get closer to x and alternatively overshoot and undershoot x. Also recall p kq k1 q kp k1 =(1 ) k. The result follows from the next lemma.

Lemma: Suppose

ab<cd<ab

and abab=1 . Then d>b and d>b.

Proof: Manipulating the inequalities gives

0 <cbaddb<ababbb=1 bb

As cbad>0 , we find b<d. The proof for b is similar.

We can say more about any rational approximation to a. Suppose k is odd. The following generalizes to even k by flipping signs.

Since p k+1 ,q k+1 are coprime, the solutions of p k+1 xq k+1 y=1 are given by x=q k+tq k+1 ,y=p k+tp k+1 for all integers t. Likewise, we can construct a sequence of approximations, the intermediate convergents,

p kq k,p k+p k+1 q k+q k+1 ,p k+2 p k+1 q k+2 q k+1 ,...,p k+(q k+2 1 )p k+1 q k+(q k+2 1 )q k+1 ,p k+2 q k+2

This sequence strictly increases, as do all the numerators and denominators, and gets closer and closer to p k+1 /q k+1 .

Given a rational approximation p/q to a, we have three cases:

  1. p/q is one of the intermediate convergents.

  2. p/q lies between two of the intermediate convergents, hence by the lemma q is greater than the denominator of the intermediate convergents on either side.

  3. p/q lies between the last intermediate convergent and a. By the theorem q>q k+2 .

We establish handy rules of thumb for the accuracy of a convergent. Let x k=[a k;a k+1 ,...]. Recall

a=x k+1 p k+p k1 x k+1 q k+q k1

thus

ap kq k=(1 ) k1 q k(x k+1 q k+q k1 )

Furthermore x k+1 q k+q k1 a k+1 q k+q k1 =q k+1 q k, with equality only when x is a rational terminating with a k+1 . We also have

x k+1 q k+q k1 =(x k+1 a k+1 )q k+q k+1 <q k+q k+1 <2 q k+1

In summary,

Theorem: Let p k/q k be the convergents of a nonnegative real a. Then

1 2 q kq k+1 <1 q k(q k+q k+1 )xp kq k1 q kq k+1 <1 q k 2

Now for a sort of converse:

Theorem: If rsa<1 2 s 2 where r,s are coprime then rs is a convergent of a.

Proof: Let the expansion of r/s be [a 1 ;a 2 ,...,a k] where k is odd. (Recall a rational has two possible expansions, one exactly one term longer than the other.) Define x k+1 by the real that satisfies a=[a 1 ;a 2 ,...,a k,x k+1 ].

We will show x k+1 1 , because this implies we could expand x k+1 into a continued fraction with a nonzero first term and obtain a continued fraction expansion for a, proving the theorem.

Rewriting

x=p kx k+1 +p k1 q kx k+1 +q k1

gives

x k+1 =q k1 xp k1 q kx+p k

As k is odd, we have xp kq k=ε for some 0 <ε<1 2 q k 2 , thus

x k+1 =1 εq kq k1 εq k 2

We need only show 1 εq kq k1 εq k 2 :

ε(q k 2 +q kq k1 )<q k 2 +q kq k1 2 q 2 <q k 2 +q k 2 2 q k 2  

At last we plug a hole in our proof that rationals have exactly two finite continued fraction expansions. Suppose the rational p/q has an infinite continued fraction expansion. This would imply

1 =pq nqp n=qq npqp nq n<qq nq n 2 0

as n, a contradiction.