]> Continued Fractions - Basic Results

Basic Results

Theorem: Let a be a nonnegative real. If a is irrational, it has a unique simple continued fraction expansion. Otherwise there are exactly two expansions representing a, namely [a 1 ,...,a n1 ,a n,1 ] and [a 1 ,...,a n1 ,a n+1 ].

Proof: Let x i=[a i;a i+1 ,...] for all i. Then

x i=a i+1 x i+1

By inductive assumption a 1 ,...,a i1 are uniquely determined.

We have x i+1 1 since a i+1 is a positive integer. Then If x i+1 >1 , then a i=x i and uniqueness of a i follows by induction. Otherwise x i+1 =1 and the fraction must terminate here. Then a is rational and we could discard a i+1 and add one to a i.

Actually there's a hole in the proof. We neglected to rule out that an infinite continued fraction cannot approach a rational. We show this once we derive some bounds.

Define x i as in the proof. Then by induction,

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

Observe that to convert a rational p/q to a simple continued fraction, we perform Euclid's algortihm on p and q. The quotients become the continued fraction sequence.

The recurrence relation of continued fractions is also related to division with remainder in the Euclid's algorithm.

Theorem: Let a,b be coprime. If a/b is expanded into a continued fraction, then q n1 ,p n1 is a solution of axby=(1 ) n where n is the number of convergents.

Proof: We have p n=a,q n=b and p kq k1 q kp k1 =(1 ) k for all k.

Lemma: For any distinct rationals p/q and p/q, the sequence

pq,px+pqx+q,pq

is strictly increasing, or strictly decreasing for any nonnegative real x.

Proof: Calculation shows the sign of pqpq determines the direction of the sequence.

Visualizing the graph of y=px+pqx+q for nonnegative x is instructive. We have part of a hyperbola with y-intercept y=p/q at x=0 , and yp/q as x. By considering the derivative, y either monotonically increases or decreases, implying the last lemma.

Sequences of convergents for α describe sequences of graphs whose ranges for nonnegative x are successively narrower and approach the horizontal line y=α. Somewhere on all but the last graph, there is a unique x0 for which y=α.