Generalizations of Fibonacci numbers
Template:Short description In mathematics, the Fibonacci numbers form a sequence defined recursively by:
That is, after two starting values, each number is the sum of the two preceding numbers.
The Fibonacci sequence has been studied extensively and generalized in many ways, for example, by starting with other numbers than 0 and 1, by adding more than two numbers to generate the next number, or by adding objects other than numbers.
Extension to negative integers
Using Template:Tmath, one can extend the Fibonacci numbers to negative integers. So we get:
- ... −8, 5, −3, 2, −1, 1, 0, 1, 1, 2, 3, 5, 8, ...
and Template:Tmath. [1]
See also Negafibonacci coding.
Extension to all real or complex numbers
There are a number of possible generalizations of the Fibonacci numbers which include the real numbers (and sometimes the complex numbers) in their domain. These each involve the golden ratio Template:Mvar, and are based on Binet's formula
has the property that for even integers Template:Tmath.[2] Similarly, the analytic function:
satisfies for odd integers Template:Tmath.
Finally, putting these together, the analytic function
satisfies for all integers Template:Tmath.[3]
Since for all complex numbers Template:Tmath, this function also provides an extension of the Fibonacci sequence to the entire complex plane. Hence we can calculate the generalized Fibonacci function of a complex variable, for example,
However, this extension is by no means unique. For example, either
- or
for any odd integer Template:Mvar is an extension of the Fibonacci number sequence to the entire complex plane, as is any linear combination of them for which the coefficients sum to 1.
Vector space
The term Fibonacci sequence is also applied more generally to any function from the integers to a field for which Template:Tmath. These functions are precisely those of the form Template:Tmath, so the Fibonacci sequences form a vector space with the functions and as a basis.
More generally, the range of may be taken to be any abelian group (regarded as a Z-module). Then the Fibonacci sequences form a 2-dimensional Z-module in the same way.
Similar integer sequences
Fibonacci integer sequences
The 2-dimensional -module of Fibonacci integer sequences consists of all integer sequences satisfying Template:Tmath. Expressed in terms of two initial values we have:
where is the golden ratio.
The ratio between two consecutive elements converges to the golden ratio, except in the case of the sequence which is constantly zero and the sequences where the ratio of the two first terms is Template:Tmath.
The sequence can be written in the form
in which if and only if Template:Tmath. In this form the simplest non-trivial example has Template:Tmath, which is the sequence of Lucas numbers:
We have and Template:Tmath. The properties include:
Every nontrivial Fibonacci integer sequence appears (possibly after a shift by a finite number of positions) as one of the rows of the Wythoff array. The Fibonacci sequence itself is the first row, and a shift of the Lucas sequence is the second row.[4]
See also Fibonacci integer sequences modulo n.
Lucas sequences
A different generalization of the Fibonacci sequence is the Lucas sequences of the kind defined as follows:
where the normal Fibonacci sequence is the special case of and Template:Tmath. Another kind of Lucas sequence begins with Template:Tmath, Template:Tmath. Such sequences have applications in number theory and primality proving.
When Template:Tmath, this sequence is called Template:Mvar-Fibonacci sequence, for example, Pell sequence is also called 2-Fibonacci sequence.
The 3-Fibonacci sequence is
- 0, 1, 3, 10, 33, 109, 360, 1189, 3927, 12970, 42837, 141481, 467280, 1543321, 5097243, 16835050, 55602393, 183642229, 606529080, ... Template:OEIS
The 4-Fibonacci sequence is
- 0, 1, 4, 17, 72, 305, 1292, 5473, 23184, 98209, 416020, 1762289, 7465176, 31622993, 133957148, 567451585, 2403763488, ... Template:OEIS
The 5-Fibonacci sequence is
- 0, 1, 5, 26, 135, 701, 3640, 18901, 98145, 509626, 2646275, 13741001, 71351280, 370497401, 1923838285, 9989688826, ... Template:OEIS
The 6-Fibonacci sequence is
- 0, 1, 6, 37, 228, 1405, 8658, 53353, 328776, 2026009, 12484830, 76934989, 474094764, 2921503573, 18003116202, ... Template:OEIS
The Template:Mvar-Fibonacci constant is the ratio toward which adjacent -Fibonacci numbers tend; it is also called the Template:Mvarth metallic mean, and it is the only positive root of Template:Tmath. For example, the case of is Template:Tmath, or the golden ratio, and the case of is Template:Tmath, or the silver ratio. Generally, the case of is Template:Tmath.[5]
Generally, can be called Template:Math-Fibonacci sequence, and Template:Math can be called Template:Math-Lucas sequence.
The (1,2)-Fibonacci sequence is
- 0, 1, 1, 3, 5, 11, 21, 43, 85, 171, 341, 683, 1365, 2731, 5461, 10923, 21845, 43691, 87381, 174763, 349525, 699051, 1398101, 2796203, 5592405, 11184811, 22369621, 44739243, 89478485, ... Template:OEIS
The (1,3)-Fibonacci sequence is
- 1, 1, 4, 7, 19, 40, 97, 217, 508, 1159, 2683, 6160, 14209, 32689, 75316, 173383, 399331, 919480, 2117473, 4875913, 11228332, 25856071, 59541067, ... Template:OEIS
The (2,2)-Fibonacci sequence is
- 0, 1, 2, 6, 16, 44, 120, 328, 896, 2448, 6688, 18272, 49920, 136384, 372608, 1017984, 2781184, 7598336, 20759040, 56714752, ... Template:OEIS
The (3,3)-Fibonacci sequence is
- 0, 1, 3, 12, 45, 171, 648, 2457, 9315, 35316, 133893, 507627, 1924560, 7296561, 27663363, 104879772, 397629405, 1507527531, 5715470808, ... Template:OEIS
Fibonacci numbers of higher order
A Fibonacci sequence of order Template:Mvar, also termed Template:Mvar-nacci sequence, is an integer sequence in which each sequence element is the sum of the previous elements (with the exception of the first elements in the sequence). The usual Fibonacci numbers are a Fibonacci sequence of order 2. The number of compositions of nonnegative integers into parts that are at most is a Fibonacci sequence of order Template:Tmath. The sequence of the number of strings of 0s and 1s of length that contain at most consecutive 0s is also a Fibonacci sequence of order Template:Tmath.
These sequences, their limiting ratios, and the limit of these limiting ratios, were investigated by Mark Barr in 1913. [6]Template:Rp
Tribonacci numbers
A variation of the Fibonacci number sequence is the tribonacci number sequence, where each number is the sum of the three preceding numbers. Starting with the initial values , and , the recurrence gives this sequence of numbers as Further terms can be found under sequence number Template:OEIS link in The On-Line Encyclopedia of Integer Sequences (OEIS).
The tribonacci sequence has a long and interesting history.[7] The most notable historical occurrence of the sequence is connected to Charles Darwin (1809–1882) and his seminal book On the Origin of Species, where the procreation and population growth of elephants is considered as an illustrative example.[8] In 1892, the sequence of numbers appeared in the solution of a recreational problem, concerning a farmer and the raising of sheep, that was posed by the American mathematician Artemas Martin (1835–1918).[9]Template:Rp The first mathematical treatment of the tribonacci sequence and an investigation of its properties was done in 1914 and is due to Agronomof.[10] The moniker tribonacci appeared much later, not until 1963, and is due to Mark Feinberg, at the time a fourteen-year-old high-school student, who introduced the term in an article in the Fibonacci Quarterly.[11]
Agronomof's identity. Agronomof's 1914 note is a small gem that was ignored, made no impact at the time, and gathered dust for over half a century.Template:R Although a very brief note (the modern day replica easily fits on a single pageTemplate:R), it contains the powerful identity Note that Agronomof's identity is symmetric in and , and that, for , one recovers the original tribonacci recurrence. Agronomof made his derivation under the assumption that both parameters and are nonnegative integers. However, one can show that the identity is more general and actually holds for arbitrary integers and by extending the defining recurrence (1) to include tribonacci numbers with negative indices.Template:R Agronomof ends his note by showcasing the following propriétés remarquables of the tribonacci numbers, These are easily derived from his identity by taking and . In turn, these two identities can be leveraged to derive a simple expression for the sum of squares of the tribonacci numbers.Template:R
Reflection formula. As with the Fibonacci numbers, one can run the recurrence for the tribonacci numbers backwards. From , and , one can determine . From , and , one can determine , and so on. Thus, the values for the tribonacci numbers at negative indices are well defined. Starting with , , and , and reversing the tribonacci recurrence (1), gives the sequence of negatively indexed tribonacci numbers as Further terms can be found under sequence number Template:OEIS link in The On-Line Encyclopedia of Integer Sequences (OEIS). The extension to negative indices means that one can view the tribonacci sequence as a double infinite sequence: where the value at index zero is given in bold. Traversing the sequence from left to right, one uses recurrence (1). Traversing the sequence from right to left, one uses the recurrence . The relationship between the negative and positive indexed segments of the tribonacci sequence is given by This identity holds for all integers , and is known as the reflection formula for the tribonacci numbers. It can be derived using Agronomof's identity.Template:R
Template:Main The tribonacci constant is the ratio toward which adjacent tribonacci numbers tend. It is the unique real root of the polynomial Template:Tmath, approximately Template:Val Template:OEIS, and also satisfies the equation Template:Tmath. It is important in the study of the snub cube.

The reciprocal of the tribonacci constant is the single real root of , and can be written as approximately Template:Val Template:OEIS.
The tribonacci numbers are also given by [12]
where denotes the nearest integer function and
Corresponding to the Lucas numbers for the Fibonacci sequence, if one instead starts with and applies the tribonacci recursion then for Template:Tmath Template:OEIS
Tetranacci numbers
The tetranacci numbers start with four predetermined terms, each term afterwards being the sum of the preceding four terms. The first few tetranacci numbers are:
- 0, 0, 0, 1, 1, 2, 4, 8, 15, 29, 56, 108, 208, 401, 773, 1490, 2872, 5536, 10671, 20569, 39648, 76424, 147312, 283953, 547337, … Template:OEIS
Feinberg also coined the term tetranacci.Template:R
The tetranacci constant is the ratio toward which adjacent tetranacci numbers tend. It is the unique positive real root of the polynomial Template:Tmath, approximately Template:Val Template:OEIS, and also satisfies the equation Template:Tmath.
The tetranacci constant can be expressed in terms of radicals by the following expression: [13]
where,
and is the real root of the cubic equation Template:Tmath.
Corresponding to the Lucas numbers for the Fibonacci sequence, if one instead starts with , , , and and applies the tetranacci recursion then for Template:Tmath Template:OEIS
Pentanacci numbers
- 0, 0, 0, 0, 1, 1, 2, 4, 8, 16, 31, 61, 120, 236, 464, 912, 1793, 3525, 6930, 13624, … Template:OEIS
The pentanacci constant is the ratio toward which adjacent pentanacci numbers tend. It is the unique real root of the polynomial Template:Tmath, approximately Template:Val Template:OEIS, and also satisfies the equation Template:Tmath.
Hexanacci numbers
- 0, 0, 0, 0, 0, 1, 1, 2, 4, 8, 16, 32, 63, 125, 248, 492, 976, 1936, 3840, 7617, 15109, … Template:OEIS
The hexanacci constant is the ratio toward which adjacent hexanacci numbers tend. It is the unique positive real root of the polynomial Template:Tmath, approximately Template:Val Template:OEIS, and also satisfies the equation Template:Tmath.
Heptanacci numbers
- 0, 0, 0, 0, 0, 0, 1, 1, 2, 4, 8, 16, 32, 64, 127, 253, 504, 1004, 2000, 3984, 7936, 15808, … Template:OEIS
The heptanacci constant is the ratio toward which adjacent heptanacci numbers tend. It is the unique real root of the polynomial Template:Tmath, approximately Template:Val Template:OEIS, and also satisfies the equation Template:Tmath.
Octanacci numbers
- 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 4, 8, 16, 32, 64, 128, 255, 509, 1016, 2028, 4048, 8080, 16128, ... Template:OEIS
Enneanacci numbers
- 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 4, 8, 16, 32, 64, 128, 256, 511, 1021, 2040, 4076, 8144, 16272, ... Template:OEIS
Infinacci numbers
An "infinacci" sequence, if one could be described, would, after an infinite number of zeroes, yield the sequence
- [..., 0, 0, 1,] 1, 2, 4, 8, 16, 32, …
which are simply the powers of two.
k-nacci numbers
The Template:Mvarth Template:Mvar-nacci number is the coefficient of in the expansion of the ordinary generating function about the point .
The limit of the ratio of successive terms of the -nacci series is the root nearest to 2 of the characteristic equation Template:Tmath, which (multiplying both sides by ) can be expressed as (Template:OEIS2C, Template:OEIS2C, Template:OEIS2C).[13]
The special case is the traditional Fibonacci series yielding the golden section Template:Tmath.
The above formulas for the ratio hold even for -nacci series generated from arbitrary starting numbers. The ratio approaches 2 in the limit that increases to infinity.
Let be the position of the closest pole of . Since the denominator is concave along the positive reals while the convolved version is convex, using an iteration of Newton's method from the approximation of the root gives an upper bound with the former polynomial and a lower bound with the latter; , translating to the tight bounds .
The negative root of the characteristic equation is in the interval when is even. This root and each complex root of the characteristic equation has modulus .[13]
A series for the positive root for any is[13]
There is no solution of the characteristic equation in terms of radicals when Template:Math.[13]
The Template:Mvar-th element of the Template:Mvar-nacci sequence is given by
where denotes the nearest integer function.
Corresponding to the Lucas numbers for the Fibonacci sequence, if one instead starts with and for Template:Tmath, and applies the Template:Tmath-nacci recursion to compute Template:Tmath for Template:Tmath then for all large enough values of Template:Tmath, where Template:Tmath is the Template:Tmath-nacci constant. Equivalently, one could start with and for Template:Tmath, and then apply the Template:Tmath-nacci recursion to compute Template:Tmath for Template:Tmath.
A coin-tossing problem is related to the -nacci sequence. The probability that no consecutive tails will occur in tosses of an idealized coin is Template:Tmath.[14] (See Feller's coin-tossing constants.)
Fibonacci word
Template:Main In analogy to its numerical counterpart, the Fibonacci word is defined by:
where denotes the concatenation of two strings. The sequence of Fibonacci strings starts:
The length of each Fibonacci string is a Fibonacci number, and similarly there exists a corresponding Fibonacci string for each Fibonacci number.
Fibonacci strings appear as inputs for the worst case in some computer algorithms.
If "a" and "b" represent two different materials or atomic bond lengths, the structure corresponding to a Fibonacci string is a Fibonacci quasicrystal, an aperiodic quasicrystal structure with unusual spectral properties.
Convolved Fibonacci sequences
A convolved Fibonacci sequence is obtained applying a convolution operation to the Fibonacci sequence one or more times. Specifically, define [15]
and
The first few sequences are
- : 0, 0, 1, 2, 5, 10, 20, 38, 71, … Template:OEIS.
- : 0, 0, 0, 1, 3, 9, 22, 51, 111, … Template:OEIS.
- : 0, 0, 0, 0, 1, 4, 14, 40, 105, … Template:OEIS.
The sequences can be calculated using the recurrence
The generating function of the th convolution is
The sequences are related to the sequence of Fibonacci polynomials by the relation
where is the th derivative of Template:Tmath. Equivalently, is the coefficient of when is expanded in powers of Template:Tmath.
The first convolution, can be written in terms of the Fibonacci and Lucas numbers as
and follows the recurrence
Similar expressions can be found for with increasing complexity as increases. The numbers are the row sums of Hosoya's triangle.
As with Fibonacci numbers, there are several combinatorial interpretations of these sequences. For example is the number of ways can be written as an ordered sum involving only 0, 1, and 2 with 0 used exactly once. In particular and 2 can be written Template:Nowrap, Template:Nowrap, Template:Nowrap, Template:Nowrap, Template:Nowrap.[16]
Other generalizations
The Fibonacci polynomials are another generalization of Fibonacci numbers.
The Padovan sequence is generated by the recurrence Template:Tmath.
The Narayana's cows sequence is generated by the recurrence Template:Tmath.
A random Fibonacci sequence can be defined by tossing a coin for each position of the sequence and taking if it lands heads and if it lands tails. Work by Furstenberg and Kesten guarantees that this sequence almost surely grows exponentially at a constant rate: the constant is independent of the coin tosses and was computed in 1999 by Divakar Viswanath. It is now known as Viswanath's constant.
A repfigit, or Keith number, is an integer such that, when its digits start a Fibonacci sequence with that number of digits, the original number is eventually reached. An example is 47, because the Fibonacci sequence starting with 4 and 7 Template:Nowrap reaches 47. A repfigit can be a tribonacci sequence if there are 3 digits in the number, a tetranacci number if the number has four digits, etc. The first few repfigits are:
- 14, 19, 28, 47, 61, 75, 197, 742, 1104, 1537, 2208, 2580, 3684, 4788, 7385, 7647, 7909, … Template:OEIS
Since the set of sequences satisfying the relation is closed under termwise addition and under termwise multiplication by a constant, it can be viewed as a vector space. Any such sequence is uniquely determined by a choice of two elements, so the vector space is two-dimensional. If we abbreviate such a sequence as Template:Tmath, the Fibonacci sequence and the shifted Fibonacci sequence are seen to form a canonical basis for this space, yielding the identity:
for all such sequences Template:Mvar. For example, if Template:Mvar is the Lucas sequence Template:Nowrap, then we obtain
Template:Mvar-generated Fibonacci sequence
Given an integer , the Template:Mvar-generalized Fibonacci sequence is defined by the recurrence relation
with initial values and .[17]
Sequence Template:Mvar OEIS sequence Fibonacci sequence 6 Template:OEIS link Pell sequence 12 Template:OEIS link Jacobsthal sequence 18 Template:OEIS link Narayana's cows sequence 10 Template:OEIS link Padovan sequence 15 Template:OEIS link Third-order Pell sequence 20 Template:OEIS link Tribonacci sequence 30 Template:OEIS link Tetranacci sequence 210 Template:OEIS link
Semi-Fibonacci sequence
The semi-Fibonacci sequence Template:OEIS is defined via the same recursion for odd-indexed terms and Template:Tmath, but for even indices Template:Tmath, Template:Tmath. The bisection Template:OEIS link of odd-indexed terms therefore verifies and is strictly increasing. It yields the set of the semi-Fibonacci numbers
- 1, 2, 3, 5, 6, 9, 11, 16, 17, 23, 26, 35, 37, 48, 53, 69, 70, 87, 93, 116, 119, 145, 154, ... Template:OEIS
which occur as Template:Tmath.
Notes
References
External links
Template:Fibonacci Template:Irrational number
- ↑ Template:Cite journal
- ↑ Template:Cite web
- ↑ Template:MathWorld
- ↑ Template:Citation.
- ↑ Template:Cite journal
- ↑ Template:Cite book
- ↑ Template:Cite journal
- ↑ Template:Cite journal
- ↑ Template:Cite book
- ↑ Template:Cite journal
- ↑ Template:Cite journal
- ↑ Simon Plouffe, 1992
- ↑ 13.0 13.1 13.2 13.3 13.4 Template:Cite journal
- ↑ Template:MathWorld
- ↑ Template:Cite journal
- ↑ Template:Cite OEIS
- ↑ Template:Cite journal