Skip to content
Surf Wiki
Save to docs
general/fibonacci-numbers

From Surf Wiki (app.surf) — the open knowledge base

Generalizations of Fibonacci numbers

Mathematical sequences

Generalizations of Fibonacci numbers

Summary

Mathematical sequences

In mathematics, the Fibonacci numbers form a sequence defined recursively by: :F_n = \begin{cases} 0 & n = 0 \ 1 & n = 1 \ F_{n - 1} + F_{n - 2} & n 1 \end{cases}

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 , 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 .

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 φ, and are based on Binet's formula :.

The analytic function

:\operatorname{Fe}(x) = \frac{\varphi^x - \varphi^{-x}}{\sqrt{5}}

has the property that \operatorname{Fe}(n) = F_n for even integers . Similarly, the analytic function:

:\operatorname{Fo}(x) = \frac{\varphi^x + \varphi^{-x}}{\sqrt{5}}

satisfies \operatorname{Fo}(n) = F_n for odd integers .

Finally, putting these together, the analytic function

:\operatorname{Fib}(x) = \frac{\varphi^x - \cos(x \pi)\varphi^{-x}}{\sqrt{5}}

satisfies \operatorname{Fib}(n) = F_n for all integers .

Since \operatorname{Fib}(z + 2) = \operatorname{Fib}(z + 1) + \operatorname{Fib}(z) for all complex numbers , 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, :\operatorname{Fib}(3+4i) \approx -5248.5 - 14195.9 i However, this extension is by no means unique. For example, either :\operatorname{Fib}(x) = \frac{\varphi^x - \cos(k x \pi)\varphi^{-x}}{\sqrt{5}} or :\operatorname{Fib}(x) = \frac{\varphi^x - \exp(ik x \pi)\varphi^{-x}}{\sqrt{5}} for any odd integer k 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 g from the integers to a field for which . These functions are precisely those of the form , so the Fibonacci sequences form a vector space with the functions F(n) and F(n - 1) as a basis.

More generally, the range of g 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 \mathbb{Z}-module of Fibonacci integer sequences consists of all integer sequences satisfying . Expressed in terms of two initial values we have: :g(n) = F(n)g(1) + F(n-1)g(0) = g(1)\frac{\varphi^n-(-\varphi)^{-n}}{\sqrt 5}+g(0)\frac{\varphi^{n-1}-(-\varphi)^{1-n}}{\sqrt 5}, where \varphi 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 .

The sequence can be written in the form :a\varphi^n+b(-\varphi)^{-n}, in which a = 0 if and only if . In this form the simplest non-trivial example has , which is the sequence of Lucas numbers: :. We have L_1 = 1 and . The properties include: :\begin{align} \varphi^n &= \left(\frac{1+\sqrt{5}}{2}\right)^{!n} = \frac{L(n)+F(n)\sqrt{5}}{2}, \ L(n) &= F(n-1) + F(n+1). \end{align}

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.{{citation | access-date = 2012-07-15 | archive-url = https://web.archive.org/web/20160304024024/http://www.math.ucsb.edu/~drm/papers/stolarsky.pdf | archive-date = 2016-03-04 | url-status = dead

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:

:\begin{align} U(0) &= 0 \ U(1) &= 1 \ U(n + 2) &= P U(n + 1) - Q U(n), \end{align}

where the normal Fibonacci sequence is the special case of P = 1 and . Another kind of Lucas sequence begins with , . Such sequences have applications in number theory and primality proving.

When , this sequence is called P-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, ...

The 4-Fibonacci sequence is :0, 1, 4, 17, 72, 305, 1292, 5473, 23184, 98209, 416020, 1762289, 7465176, 31622993, 133957148, 567451585, 2403763488, ...

The 5-Fibonacci sequence is :0, 1, 5, 26, 135, 701, 3640, 18901, 98145, 509626, 2646275, 13741001, 71351280, 370497401, 1923838285, 9989688826, ...

The 6-Fibonacci sequence is :0, 1, 6, 37, 228, 1405, 8658, 53353, 328776, 2026009, 12484830, 76934989, 474094764, 2921503573, 18003116202, ...

The n-Fibonacci constant is the ratio toward which adjacent n-Fibonacci numbers tend; it is also called the nth metallic mean, and it is the only positive root of . For example, the case of n = 1 is , or the golden ratio, and the case of n = 2 is , or the silver ratio. Generally, the case of n is .

Generally, U(n) can be called (P,−Q)-Fibonacci sequence, and V(n) can be called (P,−Q)-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, ...

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, ...

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, ...

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, ...

Fibonacci numbers of higher order

A Fibonacci sequence of order n is an integer sequence in which each sequence element is the sum of the previous n elements (with the exception of the first n elements in the sequence). The usual Fibonacci numbers are a Fibonacci sequence of order 2. The cases n = 3 and n = 4 have been thoroughly investigated. The number of compositions of nonnegative integers into parts that are at most n is a Fibonacci sequence of order . The sequence of the number of strings of 0s and 1s of length m that contain at most n consecutive 0s is also a Fibonacci sequence of order .

These sequences, their limiting ratios, and the limit of these limiting ratios, were investigated by Mark Barr in 1913. |author-link=Martin Gardner

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 T_0=T_1=0, and T_2=1, the recurrence T_{n+3} = T_{n+2} + T_{n+1} + T_{n}, \qquad\qquad (1) gives this sequence of numbers as : 0, 0, 1, 1, 2, 4, 7, 13, 24, 44, 81, 149, 274, 504, 927, 1705, 3136, 5768, 10609, 19513, 35890, 66012, \ldots. Further terms can be found under sequence number in The On-Line Encyclopedia of Integer Sequences (OEIS).

The tribonacci sequence has a long and interesting history. 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. 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). |editor-last=Miller |editor-first=W. J. C. The first mathematical treatment of the tribonacci sequence and an investigation of its properties was done in 1914 and is due to Agronomof. 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.

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. Although a very brief note (the modern day replica easily fits on a single page), it contains the powerful identity T_{n+p} = T_{p+1}T_{n+1} + \left(T_p+T_{p-1}\right)T_{n} + T_pT_{n-1}. \qquad\qquad (2) Note that Agronomof's identity is symmetric in n and p, and that, for p=2, one recovers the original tribonacci recurrence. Agronomof made his derivation under the assumption that both parameters n and p are nonnegative integers. However, one can show that the identity is more general and actually holds for arbitrary integers n and p by extending the defining recurrence (1) to include tribonacci numbers with negative indices. Agronomof ends his note by showcasing the following propriétés remarquables of the tribonacci numbers, T_{2n} = T_{n+1}^2 + 2T_nT_{n-1} + T_{n}^2 \quad\mathrm{and}\quad T_{2n-1} = T_{n-1}^2 + 2T_nT_{n+1} - T_n^2. \qquad\qquad (3) These are easily derived from his identity by taking p=n and p=n-1. In turn, these two identities can be leveraged to derive a simple expression for the sum of squares of the tribonacci numbers.

Reflection formula. As with the Fibonacci numbers, one can run the recurrence for the tribonacci numbers backwards. From T_2, T_1, and T_0, one can determine T_{-1}=1. From T_1, T_0, and T_{-1}, one can determine T_{-2}=-1, and so on. Thus, the values for the tribonacci numbers at negative indices are well defined. Starting with T_{0}=0, T_{-1}=1, and T_{-2}=-1, and reversing the tribonacci recurrence (1), gives the sequence of negatively indexed tribonacci numbers as : 0, 1, -1, 0, 2, -3, 1, 4, -8, 5, 7, -20, 18, 9, -47, 56, 0, -103, 159, -56, -206, 421, -271, -356, 1048, \ldots. Further terms can be found under sequence number 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: : \ldots, -47, 9, 18, -20, 7, 5, -8, 4, 1, -3, 2, 0, -1, 1, \mathbf0, 0, 1, 1, 2, 4, 7, 13, 24, 44, 81, 149, 274, 504, 927, \ldots 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 T_n = T_{n+3} - T_{n+2} - T_{n+1}. The relationship between the negative and positive indexed segments of the tribonacci sequence is given by T_{-n} = T_{n+1}^2 - T_{n}T_{n+2}. \qquad\qquad (4) This identity holds for all integers n, and is known as the reflection formula for the tribonacci numbers. It can be derived using Agronomof's identity.

The tribonacci constant : \frac{1+\sqrt[3]{19+3\sqrt{33}}+\sqrt[3]{19-3\sqrt{33}}}{3} = \frac{1+4\cosh\left(\frac{1}{3}\cosh^{-1}\left(2+\frac{3}{8}\right)\right)}{3} is the ratio toward which adjacent tribonacci numbers tend. It is the unique real root of the polynomial , approximately , and also satisfies the equation . It is important in the study of the snub cube.

A geometric construction of the tribonacci constant (AC), with compass and marked ruler, according to the method described by Xerardo Neira.

The reciprocal of the tribonacci constant, expressed by the relation , can be written as: \xi = \frac{\sqrt[3]{17+3\sqrt{33}} - \sqrt[3]{-17+3\sqrt{33}} - 1}{3} = \frac{3}{1 + \sqrt[3]{19 + 3\sqrt{33}} + \sqrt[3]{19-3\sqrt{33}}}, approximately .

The tribonacci numbers are also given by

:T_{n+1} = \left\lfloor 3b, \frac{\left(\frac{1}{3} \left( a_{+} + a_{-} + 1\right)\right)^n}{b^2-2b+4} \right\rceil

where \lfloor \cdot \rceil denotes the nearest integer function and

:\begin{align} a_{\pm} &= \sqrt[3]{19 \pm 3 \sqrt{33}},, \ b &= \sqrt[3]{586 + 102 \sqrt{33}},. \end{align}

Corresponding to the Lucas numbers for the Fibonacci sequence, if one instead starts with T_0 = 3, T_1 = 1, and T_2 = 3 and applies the tribonacci recursion then T_n = \lfloor x^n \rceil whenever

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, …

Feinberg also coined the term tetranacci.

The tetranacci constant is the ratio toward which adjacent tetranacci numbers tend. It is the unique positive real root of the polynomial , approximately , and also satisfies the equation .

The tetranacci constant can be expressed in terms of radicals by the following expression:

:x = \frac{1}{4}!\left(1+\sqrt{u}+\sqrt{11-u+\frac{26}{\sqrt{u}}},\right)

where,

:u = \frac{1}{3}\left(11-56\sqrt[3]{\frac{2}{-65+3\sqrt{1689}}}+2\cdot2^{\frac{2}{3}}\sqrt[3]{-65+3\sqrt{1689}}\right)

and u is the real root of the cubic equation .

Corresponding to the Lucas numbers for the Fibonacci sequence, if one instead starts with T_0 = 4, T_1 = 1, T_2 = 3, and T_3 = 7 and applies the tetranacci recursion then T_n = \lfloor x^n \rceil whenever

Higher orders

Pentanacci, hexanacci, heptanacci, octanacci and enneanacci numbers have been computed.

Pentanacci numbers: :0, 0, 0, 0, 1, 1, 2, 4, 8, 16, 31, 61, 120, 236, 464, 912, 1793, 3525, 6930, 13624, …

The pentanacci constant is the ratio toward which adjacent pentanacci numbers tend. It is the unique real root of the polynomial , approximately , and also satisfies the equation .

Hexanacci numbers: :0, 0, 0, 0, 0, 1, 1, 2, 4, 8, 16, 32, 63, 125, 248, 492, 976, 1936, 3840, 7617, 15109, …

The hexanacci constant is the ratio toward which adjacent hexanacci numbers tend. It is the unique positive real root of the polynomial , approximately , and also satisfies the equation .

Heptanacci numbers: :0, 0, 0, 0, 0, 0, 1, 1, 2, 4, 8, 16, 32, 64, 127, 253, 504, 1004, 2000, 3984, 7936, 15808, …

The heptanacci constant is the ratio toward which adjacent heptanacci numbers tend. It is the unique real root of the polynomial , approximately , and also satisfies the equation .

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, ...

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, ...

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.

The limit of the ratio of successive terms of an n-nacci series tends to a root of the equation x + x^{-n} = 2 (, , ).

The limit of the ratio for any n \ge 2 is the unique positive root of the characteristic equation :.

The special case n = 2 is the traditional Fibonacci series yielding the golden section .

The above formulas for the ratio hold even for n-nacci series generated from arbitrary starting numbers. The ratio approaches 2 in the limit that n increases to infinity.

The root x is in the interval {{tmath|2(1 - 2^{-n}) n is even. This root and each complex root of the characteristic equation has modulus {{tmath|3^{-n}

A series for the positive root x for any n 0 is :.

There is no solution of the characteristic equation in terms of radicals when 5 ≤ n ≤ 11.

The kth element of the n-nacci sequence is given by :F_k^{(n)} = \left\lfloor \frac{x^{k-1} (x-1)}{(n+1)x-2n}\right\rceil!, where \lfloor \cdot \rceil denotes the nearest integer function and x is the n-nacci constant, which is the root of x + x^{-n} = 2 nearest to 2.

A coin-tossing problem is related to the n-nacci sequence. The probability that no n consecutive tails will occur in m tosses of an idealized coin is .

Fibonacci word

Main article: Fibonacci word

In analogy to its numerical counterpart, the Fibonacci word is defined by: : F_n := F(n):= \begin{cases} \text{b} & n = 0; \ \text{a} & n = 1; \ F(n-1)+F(n-2) & n 1. \ \end{cases} where + denotes the concatenation of two strings. The sequence of Fibonacci strings starts:

:b, a, ab, aba, abaab, abaababa, abaababaabaab, …

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

:F_n^{(0)}=F_n and :F_n^{(r+1)}=\sum_{i=0}^n F_i F_{n-i}^{(r)}

The first few sequences are :r = 1: 0, 0, 1, 2, 5, 10, 20, 38, 71, … . :r = 2: 0, 0, 0, 1, 3, 9, 22, 51, 111, … . :r = 3: 0, 0, 0, 0, 1, 4, 14, 40, 105, … .

The sequences can be calculated using the recurrence :F_{n+1}^{(r+1)}=F_n^{(r+1)}+F_{n-1}^{(r+1)}+F_n^{(r)}

The generating function of the rth convolution is :.

The sequences are related to the sequence of Fibonacci polynomials by the relation :F_n^{(r)}=r! F_n^{(r)}(1) where F^{(r)}_n(x) is the rth derivative of . Equivalently, F^{(r)}_n is the coefficient of (x - 1)^r when F_x(x) is expanded in powers of .

The first convolution, F^{(1)}_n can be written in terms of the Fibonacci and Lucas numbers as :F_n^{(1)}=\frac{nL_n-F_n}{5} and follows the recurrence :. Similar expressions can be found for r 1 with increasing complexity as r increases. The numbers F^{(1)}_n are the row sums of Hosoya's triangle.

As with Fibonacci numbers, there are several combinatorial interpretations of these sequences. For example F^{(1)}_n is the number of ways n - 2 can be written as an ordered sum involving only 0, 1, and 2 with 0 used exactly once. In particular F^{(1)}_4 = 5 and 2 can be written 0 + 1 + 1, 0 + 2, 1 + 0 + 1, 1 + 1 + 0, 2 + 0.

Other generalizations

The Fibonacci polynomials are another generalization of Fibonacci numbers.

The Padovan sequence is generated by the recurrence .

The Narayana's cows sequence is generated by the recurrence .

A random Fibonacci sequence can be defined by tossing a coin for each position n of the sequence and taking F(n) = F(n - 1) + F(n - 2) if it lands heads and F(n) = F(n - 1) - F(n - 2) 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 (4, 7, 11, 18, 29, 47) 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, …

Since the set of sequences satisfying the relation S(n) = S(n - 1) + S(n - 2) 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 , the Fibonacci sequence F(n) = (0, 1) and the shifted Fibonacci sequence F(n - 1) = (1, 0) are seen to form a canonical basis for this space, yielding the identity:

:S(n) = S(0) F(n-1) + S(1) F(n)

for all such sequences S. For example, if S is the Lucas sequence 2, 1, 3, 4, 7, 11, ..., then we obtain :.

{{mvar|N}}-generated Fibonacci sequence

We can define the N-generated Fibonacci sequence (where N is a positive rational number): if :N = 2^{a_1}\cdot 3^{a_2}\cdot 5^{a_3}\cdot 7^{a_4}\cdot 11^{a_5}\cdot 13^{a_6}\cdot \ldots \cdot p_r^{a_r}, where pr is the rth prime, then we define :F_N(n) = a_1F_N(n-1) + a_2F_N(n-2) + a_3F_N(n-3) + a_4F_N(n-4) + a_5F_N(n-5) + \ldots If , then , and if {{tmath|n

:{|class="wikitable" !Sequence !N !OEIS sequence |- |Fibonacci sequence |6 | |- |Pell sequence |12 | |- |Jacobsthal sequence |18 | |- |Narayana's cows sequence |10 | |- |Padovan sequence |15 | |- |Third-order Pell sequence |20 | |- |Tribonacci sequence |30 | |- |Tetranacci sequence |210 | |}

Semi-Fibonacci sequence

The semi-Fibonacci sequence is defined via the same recursion for odd-indexed terms a(2n+1) = a(2n) + a(2n-1) and , but for even indices , . The bisection of odd-indexed terms s(n) = a(2n-1) therefore verifies s(n+1) = s(n) + a(n) 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, ... which occur as .

References

References

  1. (2009-10-27). "What is a Fibonacci Number? -- from Harry J. Smith".
  2. Pravin Chandra and [[Eric W. Weisstein]]. "Fibonacci Number".
  3. [http://www.plouffe.fr Simon Plouffe, 1993]
  4. [[Eric W. Weisstein]]. "Coin Tossing".
  5. (April 1977). "Fibonacci Convolution Sequences". Fibonacci Quarterly.
  6. {{Cite OEIS
Wikipedia Source

This article was imported from Wikipedia and is available under the Creative Commons Attribution-ShareAlike 4.0 License. Content has been adapted to SurfDoc format. Original contributors can be found on the article history page.

Want to explore this topic further?

Ask Mako anything about Generalizations of Fibonacci numbers — get instant answers, deeper analysis, and related topics.

Research with Mako

Free with your Surf account

Content sourced from Wikipedia, available under CC BY-SA 4.0.

This content may have been generated or modified by AI. CloudSurf Software LLC is not responsible for the accuracy, completeness, or reliability of AI-generated content. Always verify important information from primary sources.

Report