Harman Patil (Editor)

Periodic continued fraction

Updated on
Edit
Like
Comment
Share on FacebookTweet on TwitterShare on LinkedInShare on Reddit

In mathematics, an infinite periodic continued fraction is a continued fraction that can be placed in the form

Contents

x = a 0 + 1 a 1 + 1 a 2 + a k + 1 a k + 1 + a k + m 1 + 1 a k + m + 1 a k + 1 + 1 a k + 2 +

where the initial block of k + 1 partial denominators is followed by a block [ak+1ak+2,…ak+m] of partial denominators that repeats over and over again, ad infinitum. For example 2 can be expanded to a periodic continued fraction, namely as [1,2,2,2,...].

The partial denominators {ai} can in general be any real or complex numbers. That general case is treated in the article convergence problem. The remainder of this article is devoted to the subject of simple continued fractions that are also periodic. In other words, the remainder of this article assumes that all the partial denominators ai (i ≥ 1) are positive integers.

Purely periodic and periodic fractions

Since all the partial numerators in a regular continued fraction are equal to unity we can adopt a shorthand notation in which the continued fraction shown above is written as

x = [ a 0 ; a 1 , a 2 , , a k , a k + 1 , a k + 2 , , a k + m , a k + 1 , a k + 2 , , a k + m , ] = [ a 0 ; a 1 , a 2 , , a k , a k + 1 , a k + 2 , , a k + m ¯ ]

where, in the second line, a vinculum marks the repeating block. Some textbooks use the notation

x = [ a 0 ; a 1 , a 2 , , a k , a ˙ k + 1 , a k + 2 , , a ˙ k + m ]

where the repeating block is indicated by dots over its first and last terms.

If the initial non-repeating block is not present – that is, if

x = [ a 0 ; a 1 , a 2 , , a m ¯ ] ,

the regular continued fraction x is said to be purely periodic. For example, the regular continued fraction for the golden ratio φ – given by [1; 1, 1, 1, …] – is purely periodic, while the regular continued fraction for the square root of two – [1; 2, 2, 2, …] – is periodic, but not purely periodic.

Relation to quadratic irrationals

A quadratic irrational number is an irrational real root of the quadratic equation

a x 2 + b x + c = 0

where the coefficients a, b, and c are integers, and the discriminant, b2 − 4ac, is greater than zero. By the quadratic formula every quadratic irrational can be written in the form

ζ = P + D Q

where P, D, and Q are integers, D > 0 is not a perfect square (but not necessarily square-free), and Q divides the quantity P2 − D (for example (6+√8)/4). Such a quadratic irrational may also be written in another form with a square-root of a square-free number (for example (3+√2)/2) as explained for quadratic irrationals.

By considering the complete quotients of periodic continued fractions, Euler was able to prove that if x is a regular periodic continued fraction, then x is a quadratic irrational number. The proof is straightforward. From the fraction itself, one can construct the quadratic equation with integral coefficients that x must satisfy.

Lagrange proved the converse of Euler's theorem: if x is a quadratic irrational, then the regular continued fraction expansion of x is periodic. Given a quadratic irrational x one can construct m different quadratic equations, each with the same discriminant, that relate the successive complete quotients of the regular continued fraction expansion of x to one another. Since there are only finitely many of these equations (the coefficients are bounded), the complete quotients (and also the partial denominators) in the regular continued fraction that represents x must eventually repeat.

Reduced surds

The quadratic surd ζ = P + D Q is said to be reduced if ζ > 1 and its conjugate η = P D Q satisfies the inequalities 1 < η < 0 . For instance, the golden ratio ϕ = ( 1 + 5 ) / 2 = 1.618033... is a reduced surd because it is greater than one and its conjugate ( 1 5 ) / 2 = 0.618033... is greater than −1 and less than zero. On the other hand, the square root of two 2 = ( 0 + 8 ) / 2 is greater than one but is not a reduced surd because its conjugate 2 = ( 0 8 ) / 2 is less than −1.

Galois proved that the regular continued fraction which represents a quadratic surd ζ is purely periodic if and only if ζ is a reduced surd. In fact, Galois showed more than this. He also proved that if ζ is a reduced quadratic surd and η is its conjugate, then the continued fractions for ζ and for (−1/η) are both purely periodic, and the repeating block in one of those continued fractions is the mirror image of the repeating block in the other. In symbols we have

ζ = [ a 0 ; a 1 , a 2 , , a m 1 ¯ ] 1 η = [ a m 1 ; a m 2 , a m 3 , , a 0 ¯ ]

where ζ is any reduced quadratic surd, and η is its conjugate.

From these two theorems of Galois a result already known to Lagrange can be deduced. If r > 1 is a rational number that is not a perfect square, then

r = [ a 0 ; a 1 , a 2 , , a 2 , a 1 , 2 a 0 ¯ ] .

In particular, if n is any non-square positive integer, the regular continued fraction expansion of √n contains a repeating block of length m, in which the first m − 1 partial denominators form a palindromic string.

Length of the repeating block

By analyzing the sequence of combinations

P n + D Q n

that can possibly arise when ζ = (P + √D)/Q is expanded as a regular continued fraction, Lagrange showed that the largest partial denominator ai in the expansion is less than 2√D, and that the length of the repeating block is less than 2D.

More recently, sharper arguments based on the divisor function have shown that L(D), the length of the repeating block for a quadratic surd of discriminant D, is given by

L ( D ) = O ( D ln D )

where the big O means "on the order of", or "asymptotically proportional to" (see big O notation).

References

Periodic continued fraction Wikipedia