- Open Access
Closed-form solution of a general three-term recurrence relation
Advances in Difference Equations volume 2014, Article number: 196 (2014)
We present a closed-form solution for n th term of a general three-term recurrence relation with arbitrary given n-dependent coefficients. The derivation and corresponding proof are based on two approaches, which we develop and describe in detail. First, the recursive-sum theory, which gives the exact solution in a compact finite form using a recursive indexing. Second, the discrete dimensional-convolution procedure, which transforms the solution to the non-recursive expression of n, including a finite number of elementary operations and functions.
A general three-term recurrence relation is usually defined by the following expression:
where (), is unknown function of n, and are arbitrary given functions of n, and , are initial conditions (we assume not to have the trivial case when and ).
This well-known relation has a large number of applications and plays an important role in many areas of mathematics and physics. We recall here a few of them to underline the importance of the proposed statement.
First, the recurrence relation Eq. (1) corresponds to the finite difference equation for the general second order differential equation with unknown function and arbitrary given , namely: . Therefore, it is widely used for the analytical and numerical analysis (and approximations) in corresponding physical and mathematical applications; see for example .
Second, three-term recurrence relations appear naturally when one uses the Frobenius method for solving some linear differential equations and studying some special functions; see .
Third, Eq. (1) corresponds to a continued fraction with arbitrary given coefficients. Basically, the three-term recurrence relation corresponds to the expressions for the numerators and denominators of this continued fraction (see Chapter IV in ), which were derived by Euler.
In this manuscript we obtain a closed-form solution of a canonical three-term recurrence relation, which is equivalent to Eq. (1) in the case of (, ∀n). Our goal is to obtain the solution consisting of a finite number of terms, rather than a variety of methods with infinite series . In that way we develop two approaches for the expressions with a finite number of terms. We start with the recursive-sum theory, which is presented in Section 3. It allows one to obtain the exact solution of the three-term recurrence relation in a compact form using recursive indexing. Next, we develop the discrete dimensional-convolution procedure, which allows one to eliminate recursive indexing and to represent the solution as a closed-form expression. It means that the final closed-form expression depends on arbitrary given coefficients and includes a finite number of elementary operations, such as: ‘+’, ‘−’, ‘×’, ‘÷’; and elementary functions, such as the Heaviside step function (or unit step function) and the floor function for integer division.
Let us start from the simplification of Eq. (1). For this we assume that , ∀n (in the opposite case, the recurrence relation near numbers of zero A-coefficients has other fundamental properties and it should be considered separately). Thus, we can use the following substitution:
According to this substitution and Eq. (1), fulfills the following three-term recurrence relation:
Since Eq. (1), Eq. (3) are linear and n, , are arbitrary, we can assume without loss of generality the following initial conditions: , . Finally, we specify as an arbitrary given function of n, and write below the expression, which we further call the canonical three-term recurrence relation:
We note that the solution of Eq. (4) consists of a sum of -products () with different powers. Here the product power p is equal to the total number of in the product. The maximum power of , i.e. the largest power among all the products in , is equal to , since
where we use Gauss notation for the integer division: . Because of this fundamental characteristic it is natural to express , i.e. the solution of Eq. (4), in the following form:
where includes all terms of the power p. In the next sections we demonstrate that each is equal to the corresponding recursive-sum, and we rigorously prove all the propositions.
3 Recursive-sum theory
In this section we start from the definition of a general recursive-sum (R-sum). Next, we present and prove some of its properties, which determine the R-sum algebra. It could be useful for solving different recurrence relations, but, particularly for the solution of the canonical three-term recurrence relation it is sufficient to use a particular case of the R-sum, namely the reduced R-sum, which is described in the next section.
Definition 1 A general R-sum (R) is defined for the ordered sequence by the following expression:
where (), , N is the order of the R-sum, is the power of the R-sum, Δ is the recursive shift of the R-sum, is the initial shift of the R-sum. For the correct definition it is also assumed that and is defined for all indices used in Eq. (7). The product in Eq. (7) corresponds to the standard left-to-right order of multiplication, so the definition can be written also in the following way:
Next, we present some of the elementary properties of the R-sum, P.(1)-P.(3), which follow directly from the definition.
Finally, we consider the R-sum key lemma: If , then
Proof of the key lemma First, we consider the difference and try to eliminate the index numbers which correspond to zero terms in the original expression. For the correct procedure (when an upper bound in each sum is never less than the lower one) we will eliminate the zero terms and delete the corresponding index numbers step by step from to . We have
At the next step we note that for according to the definition we have only one value, , and one term, , in the second sum in Eq. (13). According to the definition and P.(1) the same is true for the other indices: . The last term in Eq. (13) gives . This means that all the terms in Eq. (13) which correspond to are equal to zero. Since the condition (), we can then write
The same procedure can be repeated for any successive indices. Consider the m th sum () in Eq. (13). For each we have only one term in the next sum, corresponding to , and so on until the last term: . So we can delete all the corresponding index numbers and write
Finally, we note that . Thus we obtain
which proves the key lemma. □
4 Exact solution of a canonical three-term recurrence relation via finite R-sum expansion
In this section we start with a definition of a reduced R-sum, a particular case of the general R-sum. Then we construct the exact solution of the canonical three-term recurrence relation, by using the R-sum key lemma.
The key lemma Eq. (12) gives the following for the reduced R-sum:
Since N and k are independent and arbitrary, let us consider them as functions of new numbers n and p: ; . In that way we consider a new subsidiary function:
Now, we will rigorously prove a theorem about the exact solution of a canonical three-term recurrence relation Eq. (4).
Theorem 1 An exact solution of Eq. (4) is the following:
Proof Our proof is based on mathematical induction. Base cases:
Inductive step: we will prove that the statement Eq. (21) for and , ∀n, gives the following:
To prove it for all n, we consider below two cases. First case: n is an arbitrary even number, , . Second case: n is an arbitrary odd number, , .
First case, .
Note that . After the substitution we have
which proves the first case of the theorem.
Second case, .
Similar to the previous case, we write . Also we note that . Thus, we can write
According to Eq. (20) we again can rewrite . In addition we note that . Summarizing, we obtain
Finally, we note that . In addition, we can write . This gives us the final result:
which proves the second case and Theorem 1. □
5 Discrete dimensional-convolution procedure
In this section we develop a procedure which could be used for the transformation of the exact solution Eq. (21) to the expression without recursive indexing.
Let us start from a simple case to demonstrate the idea of the discrete dimensional-convolution procedure. We consider a simple expression, which can be associated with a particular case of R-sum:
where () are arbitrary given natural numbers; () is an arbitrary given natural number (shift); and is an arbitrary given function of natural index numbers and . The previous expression can be rewritten as follows:
where , and is Heaviside step function (or unit step function):
Let us consider now Eq. (32). The indices and can be associated with two dimensions by the following way. Let us consider a two dimensional plot (array with elements ) with horizontal numbering related to the index and vertical numbering related to the index;
For numbering of this array of elements it is possible to use a traversal rule with one global index instead of and . Consider, for example, the following rule: , with the corresponding relations:a , . Since, for the presented rule, a unique combination of corresponds to a certain unique number q and vice versa (i.e. we have one-to-one mapping), we can rewrite Eq. (32) in the following form:
The presented procedure, i.e. the reduction from two dimensions to one dimension, is a particular case of discrete dimensional-convolution procedure. Let us now generalize it to a multidimensional case. In that way we consider a multidimensional analog of Eq. (32):
where (), , is an arbitrary given natural number, is an array of arbitrary given natural numbers, and is an arbitrary given function of .
Let us now define a global index q as follows:
Note that the minimum value corresponds to the case that every index number is equal to unity. The maximum value corresponds to the case that every index number reaches its maximum, since we have the relation
Now we construct one-to-one mapping between the global index q and the index numbers . For that we need to solve Eq. (36), i.e. to express any certain index number as a function of q (not depending on any other index numbers). We do that separately for , , and all others, (, ).
Obtaining of : Since , the expression does not depend on any index numbers except . Thus, we obtain
Obtaining of : Since (see Eq. (36)), the expression does not depend on any index numbers except . Thus we obtain
Obtaining of (): Here we make two steps, similar to the previous cases, in order to eliminate the dependence of higher and lower index numbers separately. Consider the following expression:
According to Eq. (37) we have . In addition, we have the simple relations for , and for . Thus we obtain
Next, we perform a step similar to the one we performed when obtaining (see also Eq. (39)):
Finally, we can write
As can be seen, Eq. (38) corresponds to Eq. (43) if we put formally . In addition, we can write . This means that Eq. (39) also corresponds to Eq. (43) if we put formally . Thus we can write the described substitution for the discrete dimensional-convolution procedure in the following form:
According to the previous equations every certain unique index number combination corresponds to the unique value of q. In addition, the total number of different index number combinations is equal to the total number of different values of q. Thus, we can conclude that Eq. (44) describes the one-to-one mapping for Eq. (35), and we can write
Summarizing, the proposed procedure allows one to calculate a reduced R-sum without recursive indexing.
6 Closed-form solution of the canonical three-term recurrence relation
In this section we apply the previous results, in order to obtain the closed-form solution of Eq. (4) without recursive indexing. By using the exact solution via R-sum expansion Eq. (21), the definition of the reduced R-sum Eq. (17), and the procedure described in the previous section, we can write
where , (, ), and is the unit step function (see Eq. (33)).
Now, we apply the results from the previous section Eqs. (44)-(45) in order to replace the recursive indexing by one global index q. For that we introduce new integer-valued function which is associated with a recursive index (, ):
Remark The integer-valued function determines the index number of arbitrary given in the canonical three-term recurrence relation; see Eq. (4). The first term in the d-products in Eq. (48) is according to Eq. (46) and the corresponding condition , so for the brevity in our notation we imply: .
7 Fibonacci numbers
An important particular case of the canonical three-term recurrence relation is the well-known Fibonacci sequence, which corresponds to the case in Eq. (4). Thus, the Fibonacci numbers () satisfy the following relation:
The Fibonacci number () corresponds to the total number of terms (d-products) in the solution of the canonical three-term recurrence relation since the exact solution consists of a sum of unique combinations of products; see Eqs. (4)-(5) and Eqs. (46)-(48).
The closed-form solution of Fibonacci sequence has well been known at least since the discovery of Abraham de Moivre, however, we can obtain it also by using our results, namely, Eq. (21) or Eq. (48):
This expression gives the exact solution of the Fibonacci sequence without involving irrational numbers; the solution includes only certain combinations of natural numbers.
In summary, we obtain the closed-form solution of a canonical three-term recurrence relation Eq. (4) with an arbitrary given n-dependent coefficient . The final non-recursive expression Eq. (48) includes a finite number of elementary operations and functions.
Possible applications of the developed approaches, namely the R-sum theory and the discrete dimensional-convolution procedure, are not limited by the considered statement. Due to its universality, they could be used for solving other recursive problems, in particular many-term recurrence relations.
An interesting and open question for the author is how the solution Eq. (48) could be efficiently used for approximations and solving differential equations.
We use the following notations: , .
We define double factorial for an arbitrary number as follows: .
LeVeque RJ: Finite Difference Methods for Ordinary and Partial Differential Equations: Steady State and Time Dependent Problems. SIAM, Philadelphia; 2007.
Choun, YS: Generalization of the three-term recurrence formula and its applications (2013) http://arxiv.org/abs/arXiv:1303.0806v8
Lorentzen L, Waadeland H: Continued Fractions with Applications. North-Holland, Amsterdam; 1992.
Gonoskov I: Cyclic operator decomposition for solving the differential equations. Adv. Pure Math. 2013, 3: 178-182. 10.4236/apm.2013.31A025
IG would like to thank his wife Alla for her help and understanding during the preparation of the manuscript.
The author declares that he has no competing interests.
IG has made all substantive intellectual contributions to the published study.
About this article
Cite this article
Gonoskov, I. Closed-form solution of a general three-term recurrence relation. Adv Differ Equ 2014, 196 (2014). https://doi.org/10.1186/1687-1847-2014-196
- Exact Solution
- Recurrence Relation
- Index Number
- Global Index
- Elementary Operation