Next Article in Journal
Some Properties of Approximate Solutions of Linear Differential Equations
Next Article in Special Issue
New Analytical Solutions for Time-Fractional Kolmogorov-Petrovsky-Piskunov Equation with Variety of Initial Boundary Conditions
Previous Article in Journal
Extending the Applicability of a Two-Step Chord-Type Method for Non-Differentiable Operators
Previous Article in Special Issue
Optimizing the Low-Carbon Flexible Job Shop Scheduling Problem with Discrete Whale Optimization Algorithm
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

On a New Formula for Fibonacci’s Family m-step Numbers and Some Applications

by
Monther Rashed Alfuraidan
* and
Ibrahim Nabeel Joudah
*
Department of Mathematics & Statistics, King Fahd University of Petroleum and Minerals, Dhahran 31261, Saudi Arabia
*
Authors to whom correspondence should be addressed.
Mathematics 2019, 7(9), 805; https://doi.org/10.3390/math7090805
Submission received: 6 July 2019 / Revised: 26 August 2019 / Accepted: 27 August 2019 / Published: 1 September 2019
(This article belongs to the Special Issue Evolutionary Computation and Mathematical Programming)

Abstract

:
In this work, we obtain a new formula for Fibonacci’s family m-step sequences. We use our formula to find the nth term with less time complexity than the matrix multiplication method. Then, we extend our results for all linear homogeneous recurrence m-step relations with constant coefficients by using the last few terms of its corresponding Fibonacci’s family m-step sequence. As a computational number theory application, we develop a method to estimate the square roots.
AMS Subject Classification:
11B37; 11B39; 11Y16

1. Introduction

Currently, in modern science, extensive work has been done in the area of recurrence relations and their applications (see, e.g., [1,2,3,4,5]).
In [6,7], the authors developed a transformation method of Tribonacci sequence and Tetranacci sequence to find the nth term of any Tribonacci-Like sequence and Tetranacci-Like sequence, respectively. In [8], the authors extended the previous transformation method to any Fibonacci-Like m-step sequence.
In [9], the authors used matrix multiplication to find the nth term of Fibonacci’s family m-step sequences. The time complexity of their result is of order m 3 log n times the time of multiplying two n-digit integers.
We generalize the transformation methods in [6,7] for Fibonacci’s family m-step sequences. We also use matrix method as in [9] to obtain the closed form of our new formula. However, the time complexity of our formula is of order m 2 log n times the time of multiplying two n-digit integers. As a computational number theory application, we develop a method to estimate the square root. The paper is organized as follows:
  • Section 2 contains the notations and definitions related to this work. Section 2.1 gives a look into Fibonacci sequences and their properties. One of the most important features linked to the evaluation of iterative methods is the order of convergence or the time complexity. Time complexity shows how fast the algorithm converges to the solution. This aspect is discussed briefly in Section 2.2.
  • Section 3 provides the main results and is organized as follows. In Section 3.1, we state and prove our main results. In Section 3.2, we provide a method of finding the nth term of any linear homogeneous recurrence relation. In Section 3.3, we illustrate our method by a numerical example.
  • Section 4 deals with the computational number theory application; in particular, we give a different method of approximating the square roots.

2. Definitions and Notations

2.1. Fibonacci Primer

The Fibonacci sequence shows a certain numerical pattern. This pattern turns out to have an interest and importance far beyond what its inventor imagined. It can be used to model or describe an amazing variety of phenomena, in mathematics, science, and art (see, e.g., [3,8]).
The well-known Fibonacci sequence of numbers which are defined by the recurrence
F n = F n - 1 + F n - 2 , n 2 ,
with the initial values F 0 = 0 and F 1 = 1 , is an example of a linear homogeneous recurrence sequence.
Definition 1.
The linear homogeneous recurrence m-step sequence { H n } , for m 2 an arbitrary integer, is defined by the recurrence
H n = k 1 H n - 1 + k 2 H n - 2 + + k m H n - m , n m + 1 ,
where k 1 , , k m are constants and H 1 , , H m are the initial values.
Miles [4] appears to be the first who studied such sequences, with constants k i = 1 , 1 i m and initial values H 1 = 0 , H 2 = 0 , , H m - 1 = 0 , H m = 1 .
Definition 2.
The Fibonacci m-step sequence, for m 2 an arbitrary fixed integer, is defined by the recurrence
U n = U n - 1 + U n - 2 + + U n - m , n 2 ,
with the initial values U 2 - m = U 1 - m = = U 0 = 0 , a n d U 1 = 1 .
Definition 3.
The Fibonacci family m-step sequence, for m 2 an arbitrary fixed integer, is defined by the recurrence
U n = k 1 U n - 1 + k 2 U n - 2 + + k m U n - m , n 2 ,
with the initial values U 2 - m = U 1 - m = = U 0 = 0 , a n d U 1 = 1 .
Definition 4.
The characteristic equation of Fibonacci m-step sequence is
x m - x m - 1 - - x - 1 = 0 .
It is well known that such sequence has the following property:
Property 1.
lim n U n + 1 U n is equal to the leading root of Equation (3).

2.2. The Time Complexity

In [9], the authors used matrix multiplication to find the nth term of Fibonacci’s family m-step sequences. The time complexity of their method is O ( m 3 × log ( n ) × M ( n × n ) ) , where M ( n × n ) denotes the time of multiplying two n-digit integers. We also use matrix notation to obtain the closed form of our formula. However, the time complexity of this new formula is O ( m 2 × log ( n ) × M ( n × n ) ) . Notice that, in calculating the time complexity of iterative processes, it is often assumed that the arithmetic operations of addition and multiplication can be computed in constant times. This assumption is invalid if the number of digits depends on the index of the term n as the computation proceeds. Therefore, it is important to distinguish between the process of multiplying two terms and term by a constant. Our actual time complexity is O ( m 3 × log ( 1 × n ) × M ( 1 × n ) + m 2 × log ( n ) × M ( n × n ) ) , based on the assumption that the terms of the sequence are integer numbers. As m < < n , our time complexity can be consider as O ( m 2 × log ( n ) × M ( n × n ) ) .

3. Main Results

Let H n = i = 1 m k i H n - i , where n m + 1 , be a linear homogenous recurrence m-step relation with constant coefficients k i , 1 i m , and initial values H 1 , H 2 , , H m . Let U n = i = 1 m k i U n - i , where m 2 , be a linear recurrence m-step relation with U i = 0 , for 2 - m i 0 and U 1 = 1 , i.e., { U n } is a Fibonacci family m-step sequence. We define the matrices A m × m , K m × m , t H 1 × m , t U 1 × m as follows:
A m × m : = k 1 k 2 k 3 k m 1 0 0 0 0 1 0 0 0 0 1 0 , K m × m : = k 1 k 2 k m - 1 k m k 2 k 3 k m 0 k 3 k 4 0 0 k m 0 0 0
t H 1 × m : = H t H t - 1 H t - m + 1 , t U 1 × m : = U t U t - 1 U t - m + 1 .
The following technical proposition are used to prove our main result.
Proposition 1.
For positive integers n , m , t with n m + 1 , we have
H n = i = 1 m H n - i + 1 - t j = i m k j U t + i - j
Alternately, H n = ( n - t ) H 1 × m × K m × m × t U 1 × m T , where t U T denotes the transpose of the matrix t U .
Proof. 
Let H n = i = 1 m L i , t H n - i + 2 - t , where L i , t is the coefficient of H n - i + 2 - t . The following table shows that
U t = L 1 , t , for 2 - m t 1 .
t i = 1 m L i , t H n - i + 2 - t L 1 , t
1 i = 1 m L i , 1 H n - i + 1 = ( 1 ) H n + i = 1 m - 1 ( 0 ) H n - i L 1 , 1 = 1
0 i = 1 m L i , 0 H n - i + 2 = ( 0 ) H n + 1 + ( 1 ) H n + i = 1 m - 2 ( 0 ) H n - i L 1 , 0 = 0
−1 i = 1 m L i , - 1 H n - i + 3 = i = 1 2 ( 0 ) H n + 3 - i + ( 1 ) H n + i = 1 m - 3 ( 0 ) H n - i L 1 , - 1 = 0
3 - m i = 1 m L i , 3 - m H n - i + m - 1 = i = 1 m - 2 ( 0 ) H n + m - 1 - i + ( 1 ) H n + ( 0 ) H n - 1 L 1 , 3 - m = 0
2 - m i = 1 m L i , 2 - m H n - i + m = i = 1 m - 1 ( 0 ) H n + m - i + ( 1 ) H n L 1 , 2 - m = 0
Now,
H n = i = 1 m L i , t H n - i + 2 - t = L 1 , t H n + 1 - t + i = 2 m L i , t H n - i + 2 - t = L 1 , t i = 1 m k i H n + 1 - t - i + i = 2 m L i , t H n - i + 2 - t = i = 1 m k i L 1 , t H n + 1 - t - i + i = 1 m - 1 L i + 1 , t H n - i + 1 - t = i = 1 m - 1 ( k i L 1 , t + L i + 1 , t ) H n - i + 1 - t + k m L 1 , t H n - m + 1 - t = i = 1 m - 1 ( k i L 1 , t + L i + 1 , t ) H n - i + 2 - ( t + 1 ) + k m L 1 , t H n - m + 2 - ( t + 1 ) ( * )
Since H n = i = 1 m L i , t + 1 H n - i + 2 - ( t + 1 ) = i = 1 m - 1 L i , t + 1 H n - i + 2 - ( t + 1 ) + L m , t + 1 H n - m + 2 - ( t + 1 ) , then from (*), we have L m , t + 1 = k m L 1 , t and
L i , t + 1 = k i L 1 , t + L i + 1 , t for 1 i m - 1
By backward substitution in Equation (5), we have
L m - 1 , t = k m - 1 L 1 , t - 1 + k m L 1 , t - 2 L m - 2 , t = k m - 2 L 1 , t - 1 + k m - 1 L 1 , t - 2 + k m L 1 , t - 3 L i , t = k i L 1 , t - 1 + k i + 1 L 1 , t - 2 + + k m L 1 , t + i - 1 - m ,
and hence,
L i , t = j = i m k j L 1 , t + i - 1 - j
Now, from Equations (4) and (6), we have L 1 , t = U t t and L i , t = j = i m k j U t + i - 1 - j . Thus,
H n = i = 1 m L i , t H n - i + 2 - t = i = 1 m H n - i + 2 - t j = i m k j U t + i - 1 - j .
Now, by replacing t by t + 1 , we get
H n = i = 1 m H n - i + 1 - t j = i m k j U t + i - j .
Alternately, H n = ( n - t ) H 1 × m × K m × m × t U 1 × m T . □

3.1. Main Formulas

Lemma 1.
For positive integers z , m , t with z = 2 n and n m + 1 , we have
H 2 n + 1 = 2 n - t H 1 × m × K m × m × A m × m × t U 1 × m T
Proof. 
By Proposition 1, we have
H 2 n + b = 2 n + b - t H 1 × m × K m × m × t U 1 × m T
In particular, we have
H 2 n + 1 = 2 n + 1 - t H 1 × m × K m × m × t U 1 × m T .
Thus,
H 2 n + 1 = H 2 n - t + 1 H 2 n - t H 2 n - t - m + 2 T k 1 k 2 k m k 2 k 3 0 k m 0 0 U t U t - 1 U t - m + 1 = 0 H 2 n - t H 2 n - t - m + 2 T 0 0 0 k 2 k 3 0 k m 0 0 U t U t - 1 U t - m + 1 + H 2 n - t + 1 k 1 k 2 k m T U t U t - 1 U t - m + 1 = H 2 n - t H 2 n - t - m + 2 0 T k 2 k 3 0 k m 0 0 0 0 0 U t U t - 1 U t - m + 1 + H 2 n - t H 2 n - t - m + 2 H 2 n - t - m + 1 T k 1 k 2 k m k 1 k 2 k m T U t U t - 1 U t - m + 1 = H 2 n - t H 2 n - t - m + 2 H 2 n - t - m + 1 T k 2 k 3 0 k m 0 0 0 0 0 U t U t - 1 U t - m + 1 + H 2 n - t H 2 n - t - m + 2 H 2 n - t - m + 1 T k 1 k 1 k m - 1 k 1 k m k 1 k 1 k 2 k m - 1 k 2 k m k 2 k 1 k m k m - 1 k m k m k m U t U t - 1 U t - m + 1 = H 2 n - t H 2 n - t - m + 2 H 2 n - t - m + 1 T k 1 k 1 + k 2 k m - 1 k 1 + k m k m k 1 k 1 k 2 + k 3 k m - 1 k 2 k m k 2 k 1 k m k m - 1 k m k m k m U t U t - 1 U t - m + 1 = H 2 n - t H 2 n - t - m + 2 H 2 n - t - m + 1 T k 1 k 2 k m k 2 k 3 0 k m 0 0 k 1 k 2 k m 1 0 0 0 1 0 U t U t - 1 U t - m + 1 = 2 n - t H 1 × m × K m × m × A m × m × t U 1 × m T .
The following two results are used to get our main formula of U 2 n in terms of n U 1 × m only.
Theorem 1.
For integers m , n , t , b with n > m > 1 , we have
H 2 n + b = 2 n - t H 1 × m × K m × m × A m × m b × t U 1 × m T ,
where t U T denotes the transpose of the matrix t U .
Proof. 
Lemma 1 gives the result for b = 1 . Now, assume the statement is true for b - 1 , i.e.,
H 2 n + b - 1 = 2 n - t H 1 × m × K m × m × A m × m b - 1 × t U 1 × m T .
Replacing n by n + 1 2 in Equation (10), we get
H 2 n + b = 2 n - t + 1 H 1 × m × K m × m × A m × m b - 1 × t U 1 × m T .
By repeating the same method of Lemma 1, one can easily show that
H 2 n + b = 2 n - t H 1 × m × K m × m × A m × m b × t U 1 × m T .
Now, assume the theorem is true for b + 1 , i.e.,
H 2 n + b + 1 = 2 n - t H 1 × m × K m × m × A m × m b + 1 × t U 1 × m T .
Replacing n by n - 1 2 in Equation (11) and reversing the steps of the proof of Lemma 1, we have
H 2 n + b = 2 n - t H 1 × m × K m × m × A m × m b × t U 1 × m T .
 □
Lemma 2.
Let m , n be positive integers. We have that
H m + n = m H 1 × m × K m × m × n U 1 × m T
where n U T denotes the transpose of the matrix n U .
Proof. 
By Proposition 1, we have H n = ( n - t ) H 1 × m × K m × m × t U 1 × m T
Now, by replacing t by n - m , we get
H n = m H 1 × m × K m × m × n - m U 1 × m T .
In particular, when n is replaced by n + m , we have
H m + n = m H 1 × m × K m × m × n U 1 × m T .
 □

3.2. Procedure

In this subsection, we provide a method of finding the nth term of any linear homogeneous recurrence m-step relation using the last few terms of its corresponding Fibonacci’s family m-step sequence. To find the nth term of the recurrence relation H n , n 3 m , we apply the following steps:
  •  Find m U .
  •  Compute K × A - t , where 1 t m - 1 .
  •  Set z : = log 2 ( n - m ) and w : = l o g 2 ( m + b 1 ) .
  •  Rewrite n - m as ( ( ( m + b 1 ) × 2 + b 2 ) × 2 + b z - w + 1 ) , where b i = 0 or 1, 2 i z - w + 1 , and 0 b 1 2 log 2 ( m ) + 1 - m .
  •  Find m + b 1 U .
  •  Set 0 S : = m + b 1 U .
  •  Use the following algorithm to find z - w S : = n - m U , for i = 1 : z - w :
     {
       for ( j = 1 : m ):
       {
          i S ( 1 , j ) = i - 1 S × ( K × A 1 - j ) × i - 1 S T
       }
       If b i + 1 = 1 :
       {
         set Q = j = 1 m k j i S ( 1 , j )
         set i S ( 1 , j ) = i S ( 1 , j - 1 ) , 2 j m
         set i S ( 1 , 1 ) = Q
       }
     }
  • H n = m H × K × z - w S T .

3.3. Numerical Example

Given H n = H n - 1 - 2 H n - 2 + H n - 3 - H n - 4 + H n - 6 + H n - 7 , with initial values
H 1 = 1 , H 2 = 2 , H 3 = 1 , H 4 = 4 , H 5 = - 3 , H 6 = 6 , H 7 = - 4 .
We use our previous procedure to compute H 46 .
  • 0 S : = m U 1 × m = 2 2 0 - 2 - 1 1 1
  • K m × m = 1 - 2 1 - 1 0 1 1 - 2 1 - 1 0 1 1 0 1 - 1 0 1 1 0 0 - 1 0 1 1 0 0 0 0 1 1 0 0 0 0 1 1 0 0 0 0 0 1 0 0 0 0 0 0 , A m × m = 1 - 2 1 - 1 0 1 1 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0
  • z = 5 , n - m = 39 = ( ( ( 7 + 2 ) × 2 + 1 ) × 2 + 1 ) , b 1 = 2 , b 2 = 1 , b 3 = 1 and w = 3 .
  • 0 S : = 9 U 1 × 7 = 0 2 2 2 0 - 2 - 1
  • 1 S = 0 - 28 - 28 - 12 12 20 5
  • b 2 = 1 , then
       1 S = 65 0 - 28 - 28 - 12 12 20
       2 S = 11409 4897 - 2432 - 4792 - 2696 664 2312
  • b 3 = 1 , then
       2 S = 6951 11409 4897 - 2432 - 4792 - 2696 664
  • H 46 = 30091 .

4. Application

In this section, we present an application that is concerned with computational number theory. By Property 1, we have lim n F n F n - 1 = 1 + 5 2 , where F n is the classical Fibonacci sequence. Therefore, one can estimate 5 using two consecutive terms in the Fibonacci sequence.
It is well known that the explicit form of the recurrence relation F n = ( r 1 + r 2 ) F n - 1 - ( r 1 r 2 ) F n - 2 is given by
F n = c 1 r 1 n + c 2 r 2 n ,
where r 1 , r 2 are the roots of the characteristic equation x 2 - x - 1 = 0 and c 1 , c 2 are constants. We use this fact to approximate imperfect square roots.
Let a be an imperfect square. To approximate a , rewrite a as ( b + i ) 2 × 10 m , where b Z , 0 < i < 1 , 1 b 9 , and m 2 Z . Since a = 10 m / 2 × ( b + i ) , we only need to find b + i .
Let H n = r 1 n + r 2 n , where r 1 = b - ( b + i ) and r 2 = b + ( b + i ) . Then H n = ( r 1 + r 2 ) H n - 1 - ( r 1 r 2 ) H n - 2 = ( 2 b ) H n - 1 - ( b 2 - ( b + i ) 2 ) H n - 2 . Since lim n H n H n - 1 = r 2 = 2 b + i , then a = ( b + i ) × 10 m / 2 ( H n H n - 1 - b ) × 10 m / 2 .

Author Contributions

I.N.J. conceived the presented idea. I.N.J developed the theory and performed the computations. M.R.A. verified the analytical methods. M.R.A. encouraged I.N.J. to investigate the relation between recurrence relations and their characteristic roots to find an application for theorem 1. M.R.A. encouraged I.N.J. to use matrix notation to proof theorem 1 and supervised the findings of this work. Both authors discussed the results and contributed to the final manuscript.

Funding

This research was funded by King Fahd University of Petroleum and Minerals, grant number USRG1702.

Acknowledgments

The authors would like to acknowledge the support provided by the Deanship of Scientific Research at King Fahd University of Petroleum and Minerals for funding this work through project No. USRG1702.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Choi, E. The sum of k distanced tribonacci numbers. Glob. J. Pure Appl. Math. 2016, 12, 4041–4055. [Google Scholar]
  2. Choo, Y. On the generalizations of fibonacci identities. Results Math. 2017, 71, 347–356. [Google Scholar] [CrossRef]
  3. Kaddoura, I.; Mourad, B. On a new improved unifying closed formula for all fibonacci-type sequences and some applications. J. Number Theory 2018, 182, 271–283. [Google Scholar] [CrossRef]
  4. Miles, E.P. Generalized fibonacci numbers and associated matrices. Am. Math. Mon. 1960, 67, 745–752. [Google Scholar] [CrossRef]
  5. Sapir, A.; Sapir, A.; Kogana, T.; Sapir, L. The fibonacci family of iterative processes for solving nonlinear equations. Appl. Numer. Math. 2016, 110, 148–158. [Google Scholar]
  6. Natividad, L.R.; Policarpio, P.B. A novel formula in solving tribonacci-like sequence. Gen. Math. Notes 2013, 17, 82–87. [Google Scholar]
  7. Singh, S.; Bhadouria, P.; Sikhwa, O.; Sisodiya, K. A formula for tetranacci-like sequence. Gen. Math. Notes 2014, 20, 136–141. [Google Scholar]
  8. Rathore, G.R.; Sikhwal, O.; Choudhary, R. Formula for finding nth term of fibonacci-like sequence of higher order. Int. J. Math. Appl. 2016, 4, 75–80. [Google Scholar]
  9. Miller, J.C.; Spencer Brown, D.J. An algorithm for evaluation of remote terms in a linear recurrence sequence. Comput. J. 1966, 9, 188–190. [Google Scholar] [CrossRef]

Share and Cite

MDPI and ACS Style

Alfuraidan, M.R.; Joudah, I.N. On a New Formula for Fibonacci’s Family m-step Numbers and Some Applications. Mathematics 2019, 7, 805. https://doi.org/10.3390/math7090805

AMA Style

Alfuraidan MR, Joudah IN. On a New Formula for Fibonacci’s Family m-step Numbers and Some Applications. Mathematics. 2019; 7(9):805. https://doi.org/10.3390/math7090805

Chicago/Turabian Style

Alfuraidan, Monther Rashed, and Ibrahim Nabeel Joudah. 2019. "On a New Formula for Fibonacci’s Family m-step Numbers and Some Applications" Mathematics 7, no. 9: 805. https://doi.org/10.3390/math7090805

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop