Periodic continued fraction

Last updated

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

Contents

where the initial block of k+1 partial denominators is followed by a block of m partial denominators that repeats ad infinitum. For example, can be expanded to the periodic continued fraction .

This article considers only the case of periodic regular continued fractions. In other words, the remainder of this article assumes that all the partial denominators ai (i  1) are positive integers. The general case, where the partial denominators ai are arbitrary real or complex numbers, is treated in the article convergence problem.

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

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

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

If the initial non-repeating block is not present that is, if k = -1, a0 = am and

the regular continued fraction x is said to be purely periodic. For example, the regular continued fraction of the golden ratio φ is purely periodic, while the regular continued fraction of is periodic, but not purely periodic.

As unimodular matrices

Periodic continued fractions are in one-to-one correspondence with the real quadratic irrationals. The correspondence is explicitly provided by Minkowski's question-mark function. That article also reviews tools that make it easy to work with such continued fractions. Consider first the purely periodic part

This can, in fact, be written as

with the being integers, and satisfying Explicit values can be obtained by writing

which is termed a "shift", so that

and similarly a reflection, given by

so that . Both of these matrices are unimodular, arbitrary products remain unimodular. Then, given as above, the corresponding matrix is of the form [3]

and one has

as the explicit form. As all of the matrix entries are integers, this matrix belongs to the modular group

Relation to quadratic irrationals

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

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

where P, D, and Q are integers, D > 0 is not a perfect square (but not necessarily square-free), and Q divides the quantity (for example ). Such a quadratic irrational may also be written in another form with a square-root of a square-free number (for example ) 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. [4] 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 is said to be reduced if and its conjugate satisfies the inequalities . For instance, the golden ratio is a reduced surd because it is greater than one and its conjugate is greater than 1 and less than zero. On the other hand, the square root of two is greater than one but is not a reduced surd because its conjugate 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

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

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

that can possibly arise when is expanded as a regular continued fraction, Lagrange showed that the largest partial denominator ai in the expansion is less than , and that the length of the repeating block is less than 2D.

More recently, sharper arguments [5] [6] [7] based on the divisor function have shown that the length of the repeating block for a quadratic surd of discriminant D is on the order of

Canonical form and repetend

The following iterative algorithm [8] can be used to obtain the continued fraction expansion in canonical form (S is any natural number that is not a perfect square):

Notice that mn, dn, and an are always integers. The algorithm terminates when this triplet is the same as one encountered before. The algorithm can also terminate on ai when ai = 2 a0, [9] which is easier to implement.

The expansion will repeat from then on. The sequence is the continued fraction expansion:

Example

To obtain 114 as a continued fraction, begin with m0 = 0; d0 = 1; and a0 = 10 (102 = 100 and 112 = 121 > 114 so 10 chosen).

So, m1 = 10; d1 = 14; and a1 = 1.

Next, m2 = 4; d2 = 7; and a2 = 2.

Now, loop back to the second equation above.

Consequently, the simple continued fraction for the square root of 114 is

(sequence A010179 in the OEIS )

114 is approximately 10.67707 82520. After one expansion of the repetend, the continued fraction yields the rational fraction whose decimal value is approx. 10.67707 80856, a relative error of 0.0000016% or 1.6 parts in 100,000,000.

Generalized continued fraction

A more rapid method is to evaluate its generalized continued fraction. From the formula derived there:

and the fact that 114 is 2/3 of the way between 102=100 and 112=121 results in

which is simply the aforementioned evaluated at every third term. Combining pairs of fractions produces

which is now evaluated at the third term and every six terms thereafter.

See also

Notes

  1. Pettofrezzo & Byrkit 1970, p. 158.
  2. Long 1972, p. 187.
  3. Khinchin 1964.
  4. Davenport 1982, p. 104.
  5. Hickerson 1973.
  6. Cohn 1977.
  7. Podsypanin 1982.
  8. Beceanu 2003.
  9. Gliga 2006.

Related Research Articles

<span class="mw-page-title-main">Natural logarithm</span> Logarithm to the base of the mathematical constant e

The natural logarithm of a number is its logarithm to the base of the mathematical constant e, which is an irrational and transcendental number approximately equal to 2.718281828459. The natural logarithm of x is generally written as ln x, logex, or sometimes, if the base e is implicit, simply log x. Parentheses are sometimes added for clarity, giving ln(x), loge(x), or log(x). This is done particularly when the argument to the logarithm is not a single symbol, so as to prevent ambiguity.

<span class="mw-page-title-main">Oscillation</span> Repetitive variation of some measure about a central value

Oscillation is the repetitive or periodic variation, typically in time, of some measure about a central value or between two or more different states. Familiar examples of oscillation include a swinging pendulum and alternating current. Oscillations can be used in physics to approximate complex interactions, such as those between atoms.

<span class="mw-page-title-main">Square root</span> Number whose square is a given number

In mathematics, a square root of a number x is a number y such that ; in other words, a number y whose square is x. For example, 4 and −4 are square roots of 16 because .

A simple or regular continued fraction is a continued fraction with numerators all equal one, and denominators built from a sequence of integer numbers. The sequence can be finite or infinite, resulting in a finite continued fraction like

In mathematics, Catalan's constantG, is the alternating sum of the reciprocals of the odd square numbers, being defined by:

In mathematics, an nth root of a number x is a number r which, when raised to the power of the positive integer n, yields x:

In mathematics, a quadratic irrational number is an irrational number that is the solution to some quadratic equation with rational coefficients which is irreducible over the rational numbers. Since fractions in the coefficients of a quadratic equation can be cleared by multiplying both sides by their least common denominator, a quadratic irrational is an irrational root of some quadratic equation with integer coefficients. The quadratic irrational numbers, a subset of the complex numbers, are algebraic numbers of degree 2, and can therefore be expressed as

In number theory, Khinchin's constant is a mathematical constant related to the simple continued fraction expansions of many real numbers. In particular Aleksandr Yakovlevich Khinchin proved that for almost all real numbers x, the coefficients ai of the continued fraction expansion of x have a finite geometric mean that is independent of the value of x. It is known as Khinchin's constant and denoted by K0.

A continued fraction is a mathematical expression that can be writen as a fraction with a denominator that is a sum that contains another simple or continued fraction. Depending on whether this iteration terminates with a simple fraction or not, the continued fraction is finite or infinite.

<span class="mw-page-title-main">Lemniscate constant</span> Ratio of the perimeter of Bernoullis lemniscate to its diameter

In mathematics, the lemniscate constantϖ is a transcendental mathematical constant that is the ratio of the perimeter of Bernoulli's lemniscate to its diameter, analogous to the definition of π for the circle. Equivalently, the perimeter of the lemniscate is 2ϖ. The lemniscate constant is closely related to the lemniscate elliptic functions and approximately equal to 2.62205755. It also appears in evaluation of the gamma and beta function at certain rational values. The symbol ϖ is a cursive variant of π; see Pi § Variant pi.

In mathematics, Apéry's constant is the sum of the reciprocals of the positive cubes. That is, it is defined as the number

Methods of computing square roots are algorithms for approximating the non-negative square root of a positive real number . Since all square roots of natural numbers, other than of perfect squares, are irrational, square roots can usually only be computed to some finite precision: these methods typically construct a series of increasingly accurate approximations.

In mathematics, a quadratic equation is a polynomial equation of the second degree. The general form is

In the analytic theory of continued fractions, the convergence problem is the determination of conditions on the partial numeratorsai and partial denominatorsbi that are sufficient to guarantee the convergence of the infinite continued fraction

In the metrical theory of regular continued fractions, the kth complete quotient ζk is obtained by ignoring the first k partial denominators ai. For example, if a regular continued fraction is given by

In mathematics, and more particularly in the analytic theory of regular continued fractions, an infinite regular continued fraction x is said to be restricted, or composed of restricted partial quotients, if the sequence of denominators of its partial quotients is bounded; that is

The square root of 5 is the positive real number that, when multiplied by itself, gives the prime number 5. It is more precisely called the principal square root of 5, to distinguish it from the negative number with the same property. This number appears in the fractional expression for the golden ratio. It can be denoted in surd form as:

<span class="mw-page-title-main">Rogers–Ramanujan continued fraction</span> Continued fraction closely related to the Rogers–Ramanujan identities

The Rogers–Ramanujan continued fraction is a continued fraction discovered by Rogers (1894) and independently by Srinivasa Ramanujan, and closely related to the Rogers–Ramanujan identities. It can be evaluated explicitly for a broad class of values of its argument.

In mathematics, infinite compositions of analytic functions (ICAF) offer alternative formulations of analytic continued fractions, series, products and other infinite expansions, and the theory evolving from such compositions may shed light on the convergence/divergence of these expansions. Some functions can actually be expanded directly as infinite compositions. In addition, it is possible to use ICAF to evaluate solutions of fixed point equations involving infinite expansions. Complex dynamics offers another venue for iteration of systems of functions rather than a single function. For infinite compositions of a single function see Iterated function. For compositions of a finite number of functions, useful in fractal theory, see Iterated function system.

References