Docsity

Continued Fraction Continued - Lecture Notes | MATH 104B, Study notes of Number Theory

Toggle sidebar
bg1
Math 104B, Number Theory, Winter 2003.
Lecture 19. Continued Fractions Continued.
Matrix Techniques. Continued fractions can give information about for example
sums of squares. Indeed if pk/qkis the kth convergent of [a0, . . . , an, an, . . . , a0] then
p2
2n+1 =p2
n+p2
n−1. This relation is seen most easily using matrix techniques.
Starting from scratch, note that
[a, s/t] = a+t
s=as +t
s=s0
t0,
where µs0
t0=µa1
1 0 µs
t.
Repeating this we get
[a0, a1, s/t] = s0
t0
where µs0
t0=µa01
1 0 µa11
1 0 µs
t.
But µa
1=µa1
1 0 µ1
0,
so iterating, we obtain [a0, . . . , an] = pn/qnwhere
µpn
qn=µa01
1 0 . . . µan1
1 0 µ1
0.
We also see that
µa01
1 0 . . . µan1
1 0 µ0
1=µa01
1 0 . . . µan−11
1 0 µ1
0=µpn−1
qn−1,
and so µa01
1 0 ...µan1
1 0 =µpnpn−1
qnqn−1.
From this we immediately obtain the recursion formulas for continued fractions.
µpn−1pn−2
qn−1qn−2µan1
1 0 =µpnpn−1
qnqn−1.
1
pf3
pf4

Partial preview of the text

Download Continued Fraction Continued - Lecture Notes | MATH 104B and more Study notes Number Theory in PDF only on Docsity!

Math 104B, Number Theory, Winter 2003.

Lecture 19. Continued Fractions Continued.

Matrix Techniques. Continued fractions can give information about for example sums of squares. Indeed if pk/qk is the kth convergent of [a 0 ,... , an, an,... , a 0 ] then p^22 n+1 = p^2 n + p^2 n− 1. This relation is seen most easily using matrix techniques. Starting from scratch, note that

[a, s/t] = a +

t s

as + t s

s′ t′^

where (^) ( s′ t′

a 1 1 0

s t

Repeating this we get

[a 0 , a 1 , s/t] =

s′ t′

where (^) ( s′ t′

a 0 1 1 0

a 1 1 1 0

s t

But (^) ( a 1

a 1 1 0

so iterating, we obtain [a 0 ,... , an] = pn/qn where

( pn qn

a 0 1 1 0

an 1 1 0

We also see that

( a 0 1 1 0

an 1 1 0

a 0 1 1 0

an− 1 1 1 0

pn− 1 qn− 1

and so (^) ( a 0 1 1 0

an 1 1 0

pn pn− 1 qn qn− 1

From this we immediately obtain the recursion formulas for continued fractions.

( pn− 1 pn− 2 qn− 1 qn− 2

an 1 1 0

pn pn− 1 qn qn− 1

Taking the transpose of this relation, we also obtain

( an 1 1 0

a 0 1 1 0

pn qn pn− 1 qn− 1

and so pn pn− 1

= [an,... , a 0 ].

We also see that if the kth convergent of [a 0 ,... , an] is pk/qk and if [b 0 ,... , bm] = p/q, then

[a 0 ,... , an, b 0 ,... , bm] = [a 0 ,... , an, p/q] =

p′ q′

where (^) ( p′ q′

pn pn− 1 qn qn− 1

p q

This can be applied to 11.2, #13.

Infinite Continued Fractions. We showed that if if aj ≥ 1 for every j ≥ 1 then [a 0 , a 1 ,... ] converges. We also showed that if x is an irrational and we set x 0 = x, and recursively define xk+1 = 1/{xk}, then set ak = bxkc, we have x = [a 0 , a 1 ,... ]. Previously we showed that if x is rational then this procedure terminates, that is xn is an integer for some n, and x = [a 0 ,... , an]. Proposition. If x = [a 0 , a 1 ,... ] where aj are integers with aj ≥ 1 for every j ≥ 1, then ak = bxkc where xk is defined recursively by x 0 = x and xk+1 = 1/{xk}.

This implies in particular that an infinite continued fraction is irrational, since for rational numbers the process terminates. Proof of the proposition. We have

x = [a 0 , a 1 ,... ] = [a 0 , [a 1 ,... ]].

Now [a 1 ,... ] is finite and since the even convergents form an increasing sequence, we have 1 < [a 1 ,... ] < ∞ and so

a 0 < x = a 0 +

[a 1 ,... ]

< a 0 + 1.

Since a 0 is an integer, we see that a 0 = bxc. But then setting x 1 = 1/{x}, we have

x 1 =

x − a 0

= [a 1 ,... , ]

Repeat. We iterate this process. In particular we now find a 1 = bx 1 c. We know that a 1 ≥ 1 which we can check by calculating f 1 (1) = −3. Now f 1 (2) = 32− 12 − 6 −1 = 13, so a 1 = 1.

Solution. 5^1 /^3 = [1, 1 , ?,... ]. The process can be iterated to find more terms.

The only point we should check is that if the leading order coefficient of f is positive, then f 1 given by (*) has unique root x 1 = 1/{x 0 } and positive leading coefficient. It is not hard to see that the unique root is x 1. To show that the leading order coefficient is positive, note that the leading order coefficient of g is the same as the leading order coefficient of f which is positive, and so since the unique root of g is {x 0 } which is positive, g(x) must be negative for x < {x 0 }, in particular at x = 0. Hence

lim x→∞ f 1 (x) = lim x→∞ −xng(1/x) = lim x→∞ −xng(0) = +∞,

so the leading order coefficient of f 1 is positive.