HOME

TheInfoList



OR:

In
mathematics Mathematics is a field of study that discovers and organizes methods, Mathematical theory, theories and theorems that are developed and Mathematical proof, proved for the needs of empirical sciences and mathematics itself. There are many ar ...
, an infinite periodic continued fraction is a
simple continued fraction 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 (or terminated) continued fr ...
that can be placed in the form : x = a_0 + \cfrac where the initial block _0; a_1, \dots, a_k/math> of ''k''+1 partial denominators is followed by a block _, a_, \dots, a_/math> of ''m'' partial denominators that repeats ''ad infinitum''. For example, \sqrt2 can be expanded to the periodic continued fraction ; 2, 2, 2, .../math>. 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 ''a''''i'' (''i'' ≥ 1) are positive integers. The general case, where the partial denominators ''a''''i'' 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 : \begin x& = _0;a_1,a_2,\dots,a_k,a_,a_,\dots,a_,a_,a_,\dots,a_,\dots\ & = _0;a_1,a_2,\dots,a_k,\overline\end where, in the second line, a vinculum marks the repeating block. Some textbooks use the notation : \begin x& = _0;a_1,a_2,\dots,a_k,\dot a_,a_,\dots,\dot a_\end 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 k = -1, a0 = am and : x =
overline An overline, overscore, or overbar, is a typographical feature of a horizontal and vertical, horizontal line drawn immediately above the text. In old mathematical notation, an overline was called a ''vinculum (symbol), vinculum'', a notation fo ...
the regular continued fraction ''x'' is said to be ''purely periodic''. For example, the regular continued fraction ; 1, 1, 1, \dots/math> of the
golden ratio In mathematics, two quantities are in the golden ratio if their ratio is the same as the ratio of their summation, sum to the larger of the two quantities. Expressed algebraically, for quantities and with , is in a golden ratio to if \fr ...
φ is purely periodic, while the regular continued fraction ; 2, 2, 2, \dots/math> of \sqrt2 is periodic, but not purely periodic. However, the regular continued fraction ; 2, 2, 2, \dots/math> of the silver ratio\sigma = \sqrt2 + 1 is purely periodic.


As unimodular matrices

Periodic continued fractions are in one-to-one correspondence with the real
quadratic irrational In mathematics, a quadratic irrational number (also known as a quadratic irrational or quadratic surd) is an irrational number that is the solution to some quadratic equation with rational coefficients which is irreducible over the rational numb ...
s. 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 : x = ;\overline This can, in fact, be written as :x = \frac with the \alpha,\beta,\gamma,\delta being integers, and satisfying \alpha \delta-\beta \gamma=1. Explicit values can be obtained by writing :S = \begin 1 & 0\\ 1 & 1\end which is termed a "shift", so that :S^n = \begin 1 & 0\\ n & 1\end and similarly a reflection, given by :T\mapsto \begin -1 & 1\\ 0 & 1\end so that T^2=I. Both of these matrices are unimodular, arbitrary products remain unimodular. Then, given x as above, the corresponding matrix is of the form :S^TS^T\cdots TS^ = \begin \alpha & \beta\\ \gamma & \delta\end and one has :x = ;\overline= \frac as the explicit form. As all of the matrix entries are integers, this matrix belongs to the
modular group In mathematics, the modular group is the projective special linear group \operatorname(2,\mathbb Z) of 2\times 2 matrices with integer coefficients and determinant 1, such that the matrices A and -A are identified. The modular group acts on ...
SL(2,\mathbb).


Relation to quadratic irrationals

A
quadratic irrational number In mathematics, a quadratic irrational number (also known as a quadratic irrational or quadratic surd) is an irrational number that is the solution to some quadratic equation with rational coefficients which is irreducible over the rational number ...
is an
irrational Irrationality is cognition, thinking, talking, or acting without rationality. Irrationality often has a negative connotation, as thinking and actions that are less useful or more illogical than other more rational alternatives. The concept of ...
real root of the quadratic equation : ax^2 + bx + c = 0 where the coefficients ''a'', ''b'', and ''c'' are integers, and the
discriminant In mathematics, the discriminant of a polynomial is a quantity that depends on the coefficients and allows deducing some properties of the zero of a function, roots without computing them. More precisely, it is a polynomial function of the coef ...
, b^2 - 4ac, is greater than zero. By the
quadratic formula In elementary algebra, the quadratic formula is a closed-form expression describing the solutions of a quadratic equation. Other ways of solving quadratic equations, such as completing the square, yield the same solutions. Given a general quadr ...
, every quadratic irrational can be written in the form : \zeta = \frac where ''P'', ''D'', and ''Q'' are integers, ''D'' > 0 is not a perfect square (but not necessarily square-free), and ''Q'' divides the quantity P^2 - D (for example (6 + \sqrt)/4). Such a quadratic irrational may also be written in another form with a square-root of a square-free number (for example (3 + \sqrt)/2) as explained for
quadratic irrational In mathematics, a quadratic irrational number (also known as a quadratic irrational or quadratic surd) is an irrational number that is the solution to some quadratic equation with rational coefficients which is irreducible over the rational numb ...
s. By considering the complete quotients of periodic continued fractions,
Euler Leonhard Euler ( ; ; ; 15 April 170718 September 1783) was a Swiss polymath who was active as a mathematician, physicist, astronomer, logician, geographer, and engineer. He founded the studies of graph theory and topology and made influential ...
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 Joseph-Louis Lagrange (born Giuseppe Luigi Lagrangiasurd \zeta = \frac is said to be ''reduced'' if \zeta > 1 and its conjugate \eta = \frac satisfies the inequalities -1 < \eta < 0. For instance, the golden ratio \phi = (1 + \sqrt)/2 = 1.618033... is a reduced surd because it is greater than one and its conjugate (1 - \sqrt)/2 = -0.618033... is greater than −1 and less than zero. On the other hand, the square root of two \sqrt = (0 + \sqrt)/2 is greater than one but is not a reduced surd because its conjugate -\sqrt = (0 - \sqrt)/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 : \begin \zeta& =
overline An overline, overscore, or overbar, is a typographical feature of a horizontal and vertical, horizontal line drawn immediately above the text. In old mathematical notation, an overline was called a ''vinculum (symbol), vinculum'', a notation fo ...
\ pt\frac& =
overline An overline, overscore, or overbar, is a typographical feature of a horizontal and vertical, horizontal line drawn immediately above the text. In old mathematical notation, an overline was called a ''vinculum (symbol), vinculum'', a notation fo ...
, \end 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 : \sqrt = _0;\overline In particular, if ''n'' is any non-square positive integer, the regular continued fraction expansion of contains a repeating block of length ''m'', in which the first ''m'' − 1 partial denominators form a
palindromic A palindrome ( /ˈpæl.ɪn.droʊm/) is a word, number, phrase, or other sequence of symbols that reads the same backwards as forwards, such as ''madam'' or '' racecar'', the date " 02/02/2020" and the sentence: "A man, a plan, a canal – Pana ...
string.


Length of the repeating block

By analyzing the sequence of combinations : \frac that can possibly arise when \zeta = \frac is expanded as a regular continued fraction,
Lagrange Joseph-Louis Lagrange (born Giuseppe Luigi Lagrangiadivisor function In mathematics, and specifically in number theory, a divisor function is an arithmetic function related to the divisors of an integer. When referred to as ''the'' divisor function, it counts the ''number of divisors of an integer'' (includi ...
have shown that the length of the repeating block for a quadratic surd of discriminant ''D'' is on the order of \mathcal(\sqrt\ln).


Canonical form and repetend

The following iterative algorithm can be used to obtain the continued fraction expansion in canonical form (''S'' is any
natural number In mathematics, the natural numbers are the numbers 0, 1, 2, 3, and so on, possibly excluding 0. Some start counting with 0, defining the natural numbers as the non-negative integers , while others start with 1, defining them as the positive in ...
that is not a perfect square): :m_0=0\,\! :d_0=1\,\! :a_0=\left\lfloor\sqrt\right\rfloor\,\! :m_=d_na_n-m_n\,\! :d_=\frac\,\! :a_ =\left\lfloor\frac\right\rfloor =\left\lfloor\frac\right\rfloor\!. Notice that ''m''n, ''d''n, and ''a''n 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, which is easier to implement. The expansion will repeat from then on. The sequence _0; a_1, a_2, a_3, \dots/math> is the continued fraction expansion: :\sqrt = a_0 + \cfrac


Example

To obtain as a continued fraction, begin with ''m''0 = 0; ''d''0 = 1; and ''a''0 = 10 (102 = 100 and 112 = 121 > 114 so 10 chosen). : \begin \sqrt & = \frac = 10+\frac = 10+\frac \\ & = 10+\frac = 10+\frac. \end : m_ = d_ \cdot a_ - m_ = 1 \cdot 10 - 0 = 10 \,. : d_ = \frac = \frac = 14 \,. : a_ = \left\lfloor \frac \right\rfloor = \left\lfloor \frac \right\rfloor = \left\lfloor \frac \right\rfloor = 1 \,. So, ''m''1 = 10; ''d''1 = 14; and ''a''1 = 1. : \frac = 1+\frac = 1+\frac = 1+\frac. Next, ''m''2 = 4; ''d''2 = 7; and ''a''2 = 2. : \frac = 2+\frac = 2+\frac = 2+\frac. : \frac=10+\frac=10+\frac = 10+\frac. : \frac=2+\frac=2+\frac = 2+\frac. : \frac=1+\frac=1+\frac = 1+\frac. : \frac=20+\frac=20+\frac = 20+\frac. Now, loop back to the second equation above. Consequently, the simple continued fraction for the square root of 114 is : \sqrt = 0;\overline\, is approximately 10.67707 82520. After one expansion of the repetend, the continued fraction yields the rational fraction \frac 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: : \begin \sqrt = \sqrt &= x+\cfrac \\ &= x+\cfrac \end and the fact that 114 is 2/3 of the way between 102=100 and 112=121 results in : \begin \sqrt = \cfrac = \cfrac &= \cfrac+\cfrac \\ &= \cfrac+\cfrac , \end which is simply the aforementioned 0;1,2, \, 10,2,1, \, 20,1,2/math> evaluated at every third term. Combining pairs of fractions produces : \begin \sqrt = \cfrac &= \cfrac+\cfrac \\ &= \cfrac+\cfrac, \end which is now 0;1,2, \overline/math> evaluated at the third term and every six terms thereafter.


See also

* * * * * *


Notes


References

* * * * * * (This is now available as a reprint from
Dover Publications Dover Publications, also known as Dover Books, is an American book publisher founded in 1941 by Hayward and Blanche Cirker. It primarily reissues books that are out of print from their original publishers. These are often, but not always, book ...
.) * * * * {{Refend Continued fractions Mathematical analysis