• No results found

Continued fractions and linear recurrences

N/A
N/A
Protected

Academic year: 2021

Share "Continued fractions and linear recurrences"

Copied!
4
0
0

Bezig met laden.... (Bekijk nu de volledige tekst)

Hele tekst

(1)

MATHEMATICS OF COMPUTATION VOLUME 61, NUMBER 203 JULY 1993, PAGES 351-354

CONTINUED FRACTIONS AND LINEAR RECURRENCES

H W LENSTRA, JR AND J O SHALLIT

Dedicated to the memory ofD H Lehmer

ABSTRACT We prove that the numerators and denommators of the convergents to a real irrational number θ satisfy a linear recurrence with constant coeffi-cients if and only if θ is a quadratic irrational The proof uses the Hadamard Quotient Theorem of A van der Poorten

Let θ be an irrational real number with simple contmued fraction expansion

[OQ, a\,ai, ...]. Define the numerators and denommators of the convergents

to θ äs follows:

(1) p_

2

= 0; p-i = l; p

n

= a„p

n

^i + p„-

2

f o r « > 0 ;

(2) tf-2 = l ; 0 - 1 = 0 ; q„ = a

n

q

n

_\ + q

n

-

2

for n > 0.

By the classical theory of contmued fractions (see, for example, [2, Chapter X]),

we have

-^ = [a

0

, ai, ... , a„].

vn

In this note, we consider the question of when the sequences (p

n

)n>o and

(0«)«>o can satisfy a linear recurrence with constant coefficients. If, for

exam-ple, θ = V3, then 0 = [l , l , 2, l , 2, l , 2 , . . . ] , and it is easy to venfy that

0„

+4

= 4<?„

+2

- q„ for all n > 0 . Our mam result shows that this exemplifies

the Situation in general.

Theorem 1. Let θ be anirrational real number. Let its simple contmued fraction

expansion be θ = [α

0

, α\ ,···], and let (p„) and (q„) be the sequence of

numerators and denommators of the convergents to θ , äs defined above Then

the following four conditwns are eqmvalent:

(a) (p

n

)n>o satisfies a linear recurrence with constant complex coefficients;

(b) (q

n

)

n

>o satisfies a linear recurrence with constant complex coefficients,

(c) (a„\>o is an ultimately penodic sequence;

(d) θ is a quadratic irrational

Received by the editor July 2, 1992 and, in revised form, October 19, 1992 1991 Mathematics Subject Classificatwn Pnmary 11A55, Secondary 11B37 Key words and phrases Contmued fractions, linear recurrences

The first author is supported by the National Science Foundation under Grant No DMS-9002939 The hospitality and support of the Institute for Computer Research (Waterloo) are gratefully acknowledged The second author is supported in pari by a grant from NSERC Canada

©1993 American Mathematical Society 0025 5718/93 $1 00 + $ 25 per page

(2)

352 H. W. LENSTRA, JR. AND 3 O SHALLIT

Our proof is simple, but uses a deep result of van der Poorten known äs the

Hadamard Quotient Theorem. We do not know how to give a short proof of

the implication (b) =Φ· (c) from first principles.

Proof. The equivalence (c) <=> (d) is classical. We will prove the equivalence

(b) ·*=Φ> (c) ; the equivalence (a) <«=>· (c) will follow in a similar fashion.

(c) = » (b) : It is easy to see (cf. Frame [1]) that

Pn Pn-\] _ \a

0

1] \ai l] \a„

?»-iJ " L

1

OJ l· O J L

1

Now if the sequence (<2„)„>

0

is ultimately periodic, then there exists an

integer r > 0 , and r integers bo, b[, ... ,b

r

-\, and an integer s > l and s

positive integers c

0

,c\, ... , c

s

-.\ such that

θ = [bo,bi, ... , b

r

-\ , c

0

, c\ , ... , c

s

_, , c

0

, c\ , ... , c

s

-i , ...].

Now for each integer /' modulo s , define

M

' =

I I ι ι ο

0<j<s

Then for all n > r, we have, by equation (3),

(4-1 \Pn+s Pn+s~\\ _ \Pn Pn-\

'" q

n

+

s

-i\ ~ \q

n

q„-i

Since for all pairs (/, j) it is possible to find matrices A , B such that M, =

AB and M

}

= BA, and since Ύτ(ΑΒ) = Ύτ(ΒΑ) , it readily follows that t =

Ίτ(Μ,) does not depend on /. Hence the characteristic polynomial of each

MI is X

2

— tX + ( - l )

s

. Since every matrix satisfies its own characteristic

polynomial, we see that M^_

r

- tM„^

r

+ (-ΐγΐ is the zero matrix. Combining

this observation with equation (4), we get

\Pn+2s Pn+2s-\\ _ { \Pn+s Ρη+ι,-ΐ] , , \Pn

q

n

+2s-i\

Therefore, q

n+2s

- tq

n+s

+ (~l)

s

q

n

= 0 for all n > r, and hence the sequence

(ι?«)«>ο satisfies a linear recurrence with constant integral coefficients.

(b) =Φ (c) : The proof proceeds in two stages. First we show, by means of a

theorem of van der Poorten, that if (q

n

)

n

>o satisfies a linear recurrence, then so

does (ß,i)n>o· Next we show that the a„ arc bounded because otherwise the q„

would grow too rapidly. The periodicity of (a„)„>o then follows immediately.

Let us recall a familiär definition: if the sequence of complex numbers

(«„)„>o satisfies a linear recurrence with constant complex coefficients

\<i<d

for all n sufficiently large, and d is chosen to be äs small äs possible, then

(3)

recur-CONTINUED FRACTIONS AND LINEAR RECURRENCES 353

rence Also recall that a sequence of complex numbers («„)„>o satisfies a linear

recurrence with constant coefficients if and only if the formal senes £]„>()

u

nX"

represents a rational fimction of X

Define the two formal senes F = Σ«>ο(<?«+2 - 9n)X" and G = ]T„>

0

q„+\ X"

Clearly F and G represent rational functions We now use the follöwing

the-orem of van der Poorten [4, 5, 6]

Theorem 2 (Hadamard Quotient Theorem) Lei F = Σ

ι>0

£Χ' and G

-Σι>ο8ιΧ' be formal senes representing rational functions m C(X) Suppose

that the f, and g, are complex numbers such that g, ^ 0 and f,/ g, is an

integer for all / > 0 Then Y,,>

0

(f,/gi}X' also represents a rational functwn

Smce q

n+

2 - a

n+2

q

n

+\ + q

n

for all n > 0 , it follows from this theorem that

Σ«>ο a

n+

2X

n

represents a rational function, and hence the sequence of partial

quotients (a„)

n

>o also satisfies a linear recurrence with constant coefficients

We now require the follöwing lemma

Lemma 3. Suppose that (y

n

)n>o and (z«)«>o are sequences of complex numbers,

each satisfymga linear recurrence, with theproperty that the minimal polynomial

of (z„)„>

0

divides the minimal polynomial of (y

n

)

n

>

0

Let d denote the degree

ofthe minimal polynomial of (y

n

)n>o Then there exist constants c > 0 and «o

such that for all n > n$ we have

_

r f +

i| , \y

n

-d+2\ , > \Vn\) > c\z„\

Proof Put Υ = Σ

η>0

γ

η

Χ

η

= f/8

W l t n

8

cd

(/> g) = l and degg = d , and

Z = E„>

0

ZnX

n

= h/ g , here f,g,he C[X] Smce gcd(/, g) = l , we can

find a polynomial k = Σ

0<ι<ί

/^Χ' of degree < d such that kf Ξ h (mod

g) Then Z = kY + m , for a polynomial m , and z„ = Σο</<ί/ kiVn-ι f°

r

n > «o = deg m It follows that

0<Kd

and the lemma follows, with c — (l + Σο</<ί/ l^l)~'

D

Smce (a„)„>o satisfies a linear recurrence, we may express a„ äs a

geneial-ized power sum

a„ =

for all n sufficiently large Here the a, are distinct nonzero complex numbers

(the "charactenstic roots") and the A, (n) are polynormals in n

Now take y„ = a„ and z„ - «'a" , where a = a·, and / = deg^, for some

ι Then the hypothesis of Lemma 3 holds, and we conclude that at least one

of a„_rf

+

i , α

η

^+2 , , a„ is greater than cn'\a\" , for all n sufficiently large

(4)

354 H W LENSTRA, JR AND J O SHALL1T

for some positive constant d and all m > l. But (q

n

)

n

>o satisfies a linear

recurrence, and therefore logg

dm

= O(dm). It follows that a,\ < l for all ι,

and further that deg^l, = 0 for those ι with a,\ — l . Hence the sequence

(<z«)«>o is bounded. But a simple argument using the pigeonhole principle

(see, for example, [3, Part VIII, Problem 158]) shows that any bounded integer

sequence satisfying a linear recurrence is ultimately periodic. This completes

the proof. D

BlBLIOGRAPHY

1. J. S. Frame, Contmued fractions and matrtces, Amer. Math. Monthly 56 (1949), 98-103 2. G. H. Hardy and E M Wright, An mtroduction to the theory ofnumbers, Oxford University

Press, 1989, Fifth edition, repnnting

3. G. Polya and G. Szego, Problems and theorems m analysis II, Springer-Verlag, Berlin and New York, 1976.

4. A. J. van der Poorten, p-adic methods m the study of Taylor coefficients of rational functwns, Bull. Austral Math. Soc. 29 (1984), 109-117

5. , Solution de la conjecture de Pisot sur le quohent de Hadamard de deux fractions ratwnnelles, C. R. Acad. Sei. Paris 306 (1988), 97-102.

6. R. Rumely, Notes on van der Poorten 's proof of the Hadamard quotient theorem Parts I-II, Seminaire de Theorie des Nombres Paris 1986-87 (C Goldstein, ed ), Progress in Mathematics, vol 75, Birkhauser, Boston, 1989, pp 349-382,383-409

DEPARTMENT OF MATHEMATICS, UNIVERSITY OF CALIFORNIA, BERKELEY, CALIFORNIA 94720

E-mail address: hwl@math.berkeley edu

DEPARTMENT OF COMPUTER SCIENCE, UNIVERSITY OF WATERLOO, WATERLOO, ONTARIO, CANADA N2L 3G1

Referenties

GERELATEERDE DOCUMENTEN

[r]

[r]

Judicial interventions (enforcement and sanctions) appear to be most often aimed at citizens and/or businesses and not at implementing bodies or ‘chain partners’.. One exception

(Some x have two

Prove that this transformation has a straight line composed of fixed points if and only if.. −a¯b

[r]

A–Eskwadraat kan niet aansprakelijk worden gesteld voor de gevolgen van eventuele fouten in dit

circuits in Figure 8 share four terminals, but it is not possible to speak of the energy that flows from circuit 1 to circuit 2, unless the connected terminals form internal ports,