1. Introduction
The subject of continued fractions (CF) is an old subject although many people are not aware of it. Actually, continued fractions have so many applications in algebra and in various fields such as mathematics, physics, and chemistry [1].
The easiest way of forming a continued fraction is by writing a certain amount in the form of a numerator and a denominator, and each denominator is composed of a numerator and a denominator and so on. Usually, the successive numerators are equal to one.
Continued fractions have a long history; they were known since the appearance of Euclidean algorithm for finding the greatest common divisor (GCD) of two numbers. That was around the year 300 B.C. [1] [2]. Research works and papers continue then to be performed and a huge accumulation of applications arise; this is due to their simplicity to deal with and the smooth way of the calculations involved, because all what we need are the four simple mathematical operations, namely addition, subtraction, multiplication, and division.
We should add that the subject of continued fractions is still very fruitful and interesting for researchers. In fact, their uses are clear in many applied areas, in mathematics, physics, chemistry, and in medical sciences.
Somewhat recently, a short article was written about the history of continued fractions presenting research works on them and their use in power series fields over a finite field [3]. Hence, we see the motive behind writing this review article.
In the next section, we introduce continued fractions and give few examples to clarify concepts and ideas which are related to them showing how to write an ordinary fraction in the form of a continued one [4] [5] [6]. To add, we show the relationship of continued fractions with Fibonacci numbers, series and recurrence formulae [1].
In section 3 and section 4, we give some applications in mathematics which include ways of computing roots of real numbers [7], and representation and solution of algebraic Equation of the second degree in one unknown [5] [7]. We also make a comparison between the results obtained via continued fractions techniques and the results obtained through the use of some numerical methods such as the general method to compute the nth root of real numbers [8], and Newton-Raphson method [9].
Using continued fractions in solving differential Equations such as Legendre, Hermite, and Laguerre Equations is the subject of section 5 [10]. Section 6 deals with applications of continued fractions in quantum mechanics in solving the time-dependent Schrodinger Equation [11]. In section 7, we discuss the convergence of CFs.
Finally, and in the last section, we present a concluding discussion.
2. Preliminaries
Definition 1
An expression of the form
(1)
Is called a continued fraction; and where
and
are real numbers.
If it happens that the numerator in each fraction is equal to one, then the continued fraction is a simple one. i.e.
is a simple continued fraction [1].
Note that any normal fraction (
, p and q are integers and
) can be expressed as a continued fraction as [2]
(2)
Definition 2
The finite continued fraction in a simple one with a finite number of continued ones. i.e. it has the form
(3)
Definition 3
An infinite continue fraction is expressed in terms of an infinite number of continued ones; namely it has the form [2] [12]
(3)
Definition 4
An infinite continued fraction is called a periodic fraction if there exist two positive numbers k and N such that
. The fraction is then written as [2]
(4)
In a compact form we write (4) as
(5)
Now, we see that it is easy to simplify a continued fraction to a usual fraction. This can be seen from the example below
Example 1
.
Moreover a normal fraction can always be expressed as a CF. Example 2 illustrates this process
Example 2
To express the fraction
as a CF we proceed as follows
,
,
,
,
.
Hence it is clear that
, which is a finite CF.
What was done in this example is exactly what is to be done using Euclidean algorithm for finding the GCD of two numbers [1].
Remarks
1) If
then
and vice versa. e.g.
, then
.
2) We call the first integer appearing in the CF as the first element in the list. 2 is the first element for the fraction
; and 5 is the last element in the list for the fore-mentioned example, namely for
.
3) To find the CN for a negative fraction
we search for a negative integer which when multiplied by q and subtracted from −p we get a smallest positive integer and the first element should be a negative number. e.g.
.
4) Any rational number can be expressed in terms of a finite CF; while an irrational number can only be written as an infinite CF [13].
3. Continued Fractions and Series
Continued fractions have very good relations with various series; to begin with we start with Fibonacci series:
3.1. Fibonacci Series
Leonardo Fibonacci (1170-1250 A.D.) was a merchant and dealt a lot with Arab mathematicians [1]; one of the things he was famous for was his series about a couple of rabbits, male and female, giving birth to off-springs and getting after n months the following series
(6)
The question which needed an answer was: After n months how many couples of rabbits were there? The answer was given by Fibonacci where he took into account of the fertility of the rabbits and that the numbers of couples in the
month (
) is the sum of the ones born in that month and the previous number counted in the
month (
) reaching the conclusion given in (6). These are Fibonacci numbers and are denoted by
[1]. The recurrence relation
(6)
Used before is very common in nature especially in the classification of leaves in botany and in sunflower studies [1].
Now, it clear that Fibonacci numbers can be written in terms of CF. This is shown as follows:
; and
.
3.2. Continued Fractions in Recursive Forms
Assume that we have the fraction
(7)
The numerators in each of the fractions are [5]
(8)
In general it can be shown that [5]
(9)
Equation (9), gives the recurrence relations between the successive numerators of the meant fractions; while the similar recurrence relations between the successive denominators
are given by
(10)
Also it is clear that
(11)
Example 3
since
(12)
As expected.
3.3. Ascending Continued Fractions
Although this kind of fraction is not very much used but there is no harm in defining it here at least from historical point of view [1] [4]. We can write the fraction
as an Ascending continued fraction as
(13)
Example 4
To write the fraction
in terms of an ascending CF, we see that
.
4. The Use of Continued Fractions in Finding Roots of Real Numbers
4.1. The Square Root
There are three methods used to compute square roots of real numbers using continued fractions [7]; we start with the first method,
Method 1
To get the square root of a certain number A and if a is the largest number such that its square is less than A; then we can compute the square root of A as shown in the example below.
Example 5
To represent the irrational number
as a CF we see that
and
, therefore
. Hence we get
; but
.
Substituting with
and repeating the substitution process, we get
. Therefore, we were able to write
in terms of CFs.
Method 2
If
, where a is the greatest positive integer such that its square is less than z and b is the remaining i.e.
, then it is easy to see that
. This will be the recurrence relation we will use in the calculation to get square roots for real numbers. To begin with, we see that the first approximation for
is
and the second approximation is
, and this gives the second approximation for the required root. The third approximation is given by
. continuing, we get
(14)
This is the required recurrence relation, in terms of a CN, for computing square roots of real numbers.
Example 6
To use Equation (14) to get
. We see that
, hence
and
; and
; by evaluating the resulting CF we get the approximate answer for
.
Method 3
This method depends on partial guessing of a instead of getting the greatest integer mentioned in method 2 [6].
Example 7
To clarify what we meant by partial guessing of a, we compute
, using Equation (14), as follows
. Table 1 shows some square roots for certain prime integers [6].
4.2. nth Roots
Here, we will deal with the nth root of real numbers such that
. We write
; then
. Using the binomial theorem, we get [6]
(15)
With straightforward simplifications we get
Table 1. Square roots for certain prime numbers using CFs.
(16)
Hence our first guess
is
(17)
And the first approximation for the root is
(18)
Using Equation (16) and Equation (17), we get the second guess in c as
(19)
The second approximation for r is then
(20)
In general we get
(21)
Example 8
To express
in terms of CN; we follow the following steps:
From Equation (21) and since
, we get
4.3. Evaluation of Quantities in the Form
Again we put
, and in the same manner as in the last subsection we expand
using the binomial theorem to get
(22)
Noting that
(23)
And that
(24)
From the last three Equation s we see that c is given by
(25)
Directly, we obtain the first guess in c and the first approximation in r as
(26)
Following a similar procedure as in the last subsection, we obtain the general formula given by [6]
(27)
Example 9
To evaluate
in terms of CFs, we see that
,
,
. Moreover, we have
.
So
. This yields
; this is the required recurrence relation needed to accomplish the job. As a first start we take
and
. Note that the second guess for c is
and
; and finally we get
.
Note that another way of computing roots of real numbers is given by the Equation below and this Equation gives the root in a more precise and quicker manner as will be shown in the following example.
Example 10
To compute
using the Equation below
(28)
where
are as before.
Here, we see that
; and substituting in Equation (28) we obtain
. Now we see that as a first approximation we
get 3, the second one is 3.162162162162… and this correct up to three decimal figures; the third approximation is 3.16227758007117…, it is correct up to 6 decimal points; the fourth one is 3.16227766011283…, and so on.
4.4. Comparison between the Use of Continued Fractions and Some Other Numerical Methods in Computing Roots
In this subsection, we make a comparison between the method of CFs (CFM) and two other numerical methods, namely the general method of computing nth roots of real numbers (GM) [8] and the well-known Newton-Raphson method (NRM) for the same purpose. Just for the sake of comparison [6] [8] [9], we give few examples in Table 2.
Note that the GM is very exact in the sense that whatever digit we get from the root is solid and no further modification in it once we get it; while in the other two methods various iterations improve the accuracy in the root. In the use of CFM we needed ten steps of Approximations to reach the accurate value of
shown in Table 2; and five approximations were needed to get the value of
.
As to the use of NRM we have to make five iterations to get the same answers for both roots. Moreover, a software has to be used for the calculation of the roots for the two methods CNM and NRM. However, the GM, although a software can be developed for the calculation, but with patience the value can be obtained by using a pen and a pencil and every digit one gets from the root is exact and final [8].
The GM was obtained by experience and the theory behind it is still unknown. The theory may lead to an inverse binomial theorem.
5. Solutions of Algebraic Equations Using Continued Fractions
The algebraic Equation of the second degree in one variable is given by
(29)
It is a common practice to get the roots of the last Equation s via completion of the square method or using the general rule which gives the two roots as
(30)
However, these methods yield, in general, irrational answers; therefore we refer to CF method to get approximate roots in a rational form.
Example 11
To solve the Equation
we see that
; or
, from which we obtain
. Hence we get
; we can continue this process to get the required root via CFs; we note that even with the few terms we have written and if we take the first guess as 1 then the first approximation is given by
which is a rational answer and is correct up to one decimal point. It is a crude answer, but acceptable for such one iteration.
Now, going back to Equation (30) we see that
Table 2. A comparison between CFM, GM, and NRM for Computing the values of
and
.
, a is put as 1 (31)
And hence the root is given by
(32)
Example 12
Consider the quadratic Equation
, then using
Equation (32) we see that the root is given by
, and if we take the initial guess as
, we can compute one of the roots of the given Equation using four approximations as
.
6. Continued Fractions and Their Use in Special Ordinary Differential Equations
In this section, we show how to use CNs in solving special ordinary differential Equation s leading to special functions; we start with Hermite differential Equation [10].
6.1. Hermite Differential Equation
Hermite differential Equation has the form
(33)
From which we obtain
(34)
Differentiating Equation (33) and with few simplifications, we get
(35)
Again differentiating Equation (33) twice we get
(36)
Now,
can be
; e.g. if
then
, while if
then
and if
then
, …etc. [8]. These polynomials are the first few Hermite polynomials with c taking an appropriate value [10].
6.2. Legendre Differential Equation
Legendre differential Equation is given by
(37)
Following the same steps as in the previous subsection we obtain
(38)
Differentiating Equation (36) and with some simplifications we get
(39)
Moreover, it can be shown that
(40)
In the same manner shown in the last subsection we put
to obtain the first few Legendre polynomials which are
respectively, of course with an appropriate choice of the constant c [10].
6.3. Laguerre Differential Equation
The Equation is given by
(41)
Repeating the same procedure followed in the last subsection we get
(42)
Putting
to obtain
respectively and which are the first three Laguerre Polynomials with the right choice of the constant c [10].
6.4. Chebyshev Differential Equation
Chebyshev differential Equation is expressed as
(43)
In the same way followed in the previous subsections we get
(44)
Further, we obtain
(45)
Now, putting
we get the first three Chebyshev polynomials
respectively; with consideration given to the appropriate value of c.
Note that a comparison between the use of CFs and Special Bilinear functions (SBF), in computing special functions, is in order. Both are interesting but the use of SBF is more direct and illustrative; in fact SBF procedure gives the right polynomials directly and moreover it leads to recurrence relations between these polynomials [14] [15].
7. Continued Fractions and the Solution of the Time-Dependent Schrodinger Equation
In this application of CFs, we show how CFs are used to get the solution of the time-dependent Schrodinger Equation [11]; the obtained formula will enable us to take care of the problem of time variation.
Assume that a particle (an electron say) moves on Bethe lattice with a Hamiltonian
given by
(46)
where
is the nearest neighbor to Bethe lattice, T is the transpose matrix between the two states i and j, and
is the lowest energy of the particle.
Now we proceed with the solution of Schrodinger Equation. The time-dependent Schrodinger Equation is described as
(47)
is the Hamiltonian,
, and
is the wave function. We use the method of eigenfunction expansion to write
as
(48)
form a basis of orthogonal functions and
are dependent functions on time.
Now, if
is chosen then from Gram-Schmidt algorithm, we can build the rest of the members of the basis as follows
(49)
is taken such that
; i.e.
(50)
In the same way we put
(51)
The orthogonality of the three functions will yield
(52)
while
is given by
(53)
In general, we have
(54)
where
(55)
And
(56)
Note that
and
, by definition.
From Equation (47) and Equation (48) we see that
(57)
From Equation (54) and the last Equation we get
(58)
where
and the initial conditions imply that
and
.
Now the Laplace Transform of
is given by
(59)
With further elaboration on the evaluations of various approximations, we get in its final form as
(60)
Once we get
, we can evaluate
using inverse Laplace transform [9]. Note that
and
in Equation (60) are very essential in taking the change in time into account.
8. Convergents and Convergence of Continued Fractions
The following notations can also be used for CNs [16]
(70)
And if we write
(71)
Then the truncated CF in Equation (71) is called the nth convergent of the CF in Equation (70) [16].
Note that the value of a finite CF can be obtained as a rational number; while the value of an infinite CF can be calculated in an approximate manner and if the limit in the Equation given below exists.
(72)
Then, we say that the infinite CF convergent [16].
Several recursive formulae and properties were discussed and theorems proved about CFs in the above thesis. Moreover, Harmonic CFs were introduced and the use of CFs in developing efficient algorithms that can break public-key cryptosystems, which are the backbone of internet secure communication, was illustrated [16]. For more information about convergents and CFs convergence one can refer to Reference [12].
9. Concluding Discussion
The subject of continued fractions is still vital in many fields. It can help in establishing an efficient algorithm to evaluate Y’s functions in space dynamics; the algorithm is valid to be used for any conic section [17].
Also, CFs can be used to organize, as a new theoretical aspect, Euclidean algorithm for finding the GCD of two numbers with the help of a pseudocode [18]; the code is independent of programming languages and is universal in the sense that it can be transformed into solutions which lead to important applications of CFs with a new approach. The benefits behind that are the usefulness for specialists and teachers in the fields of informatics, mathematics, and parallel computations [18].
Another application of CFs is studying double-sided CFs, with coefficients which are non-commutative symbols, and their relation with the theory of discrete integrable systems [19].
In quantum mechanics, there is another application for CFs in Probing Schrodinger Equation where a continued fraction potential was used to search for possible solutions of the Equation [20].
A very recent work on CFs is an MA thesis published electronically in December 2021, which showed the continuous interest in the subject of continued fractions and their applications in a variety of fields of mathematics such as number theory and abstract algebra [2]. One of the interesting applications of CFS is their use in obtaining expressions for functions such as
and the
evaluation of certain numbers, e.g.
[2].
Even in the complex field, continued fractions play an important role in conjunction with the evaluation of binary quadratic forms [21].
One can continue with presenting the so many applications of CFs and that will take a huge amount of work to accomplish the job, but we shall give here one more application and consider it as a final one. The application has to do with folding; if we repeat folding a strip of paper in half and unfolding it in straight angles, then we get a fractal which is known as the dragon curve. The sequence of right and left turns is related to a CF which constitutes a simple infinite series; so many properties and functions may arise from that leading to a shape resembling the dragon curve [22].
NOTES
*Deceased about two years ago.