In mathematics, the Fibonacci numbers form a sequence defined recursively by:
Fn= \begin{cases} 0&n=0\\ 1&n=1\\ Fn+Fn&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.
Using
Fn-2=Fn-Fn-1
... −8, 5, −3, 2, −1, 1, 0, 1, 1, 2, 3, 5, 8, ...and
F-n=(-1)nFn
See also Negafibonacci coding.
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
Fn=
\varphin-(-\varphi)-n | |
\sqrt{5 |
\operatorname{Fe}(x)=
\varphix-\varphi-x | |
\sqrt{5 |
has the property that
\operatorname{Fe}(n)=Fn
n
\operatorname{Fo}(x)=
\varphix+\varphi-x | |
\sqrt{5 |
satisfies
\operatorname{Fo}(n)=Fn
n
Finally, putting these together, the analytic function
\operatorname{Fib}(x)=
\varphix-\cos(x\pi)\varphi-x | |
\sqrt{5 |
satisfies
\operatorname{Fib}(n)=Fn
n
Since
\operatorname{Fib}(z+2)=\operatorname{Fib}(z+1)+\operatorname{Fib}(z)
z
\operatorname{Fib}(3+4i) ≈ -5248.5-14195.9i
g
g(n+2)=g(n)+g(n+1)
g(n)=F(n)g(1)+F(n-1)g(0)
F(n)
F(n-1)
More generally, the range of
g
The 2-dimensional
Z
g(n+2)=g(n)+g(n+1)
g(n)=F(n)g(1)+F(n-1)g(0)=g(1)
\varphin-(-\varphi)-n | +g(0) | |
\sqrt5 |
\varphin-1-(-\varphi)1-n | |
\sqrt5 |
,
\varphi
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
(-\varphi)-1
The sequence can be written in the form
a\varphin+b(-\varphi)-n,
a=0
b=0
a=b=1
Ln=\varphin+(-\varphi)-.
L1=1
L2=3
\begin{align} \varphin&=\left(
1+\sqrt{5 | |
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.[3]
See also Fibonacci integer sequences modulo n.
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)&=PU(n+1)-QU(n), \end{align}
where the normal Fibonacci sequence is the special case of
P=1
Q=-1
V(0)=2
V(1)=P
When
Q=-1
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 -Fibonacci constant is the ratio toward which adjacent
n
x2-nx-1=0
n=1
1+\sqrt{5 | |
n=2
1+\sqrt{2}
n
n+\sqrt{n2+4 | |
Generally,
U(n)
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, ...
A Fibonacci sequence of order is an integer sequence in which each sequence element is the sum of the previous
n
n
n=3
n=4
n
n
m
n
n
These sequences, their limiting ratios, and the limit of these limiting ratios, were investigated by Mark Barr in 1913.[4]
The tribonacci numbers are like the Fibonacci numbers, but instead of starting with two predetermined terms, the sequence starts with three predetermined terms and each term afterwards is the sum of the preceding three terms. The first few tribonacci numbers are:
0, 0, 1, 1, 2, 4, 7, 13, 24, 44, 81, 149, 274, 504, 927, 1705, 3136, 5768, 10609, 19513, 35890, 66012, …
The series was first described formally by Agronomof[5] in 1914,[6] but its first unintentional use is in the Origin of Species by Charles R. Darwin. In the example of illustrating the growth of elephant population, he relied on the calculations made by his son, George H. Darwin.[7] The term tribonacci was suggested by Feinberg in 1963.[8]
The tribonacci constant
1+\sqrt[3]{19+3\sqrt{33 | |
x3-x2-x-1=0
x+x-3=2
The reciprocal of the tribonacci constant, expressed by the relation
\xi3+\xi2+\xi=1
\xi=
\sqrt[3]{17+3\sqrt{33 | |
The tribonacci numbers are also given by[9]
T(n)=\left\lfloor3b
| |||||
b2-2b+4 |
\right\rceil
where
\lfloor ⋅ \rceil
\begin{align} a\pm&=\sqrt[3]{19\pm3\sqrt{33}},\\ b&=\sqrt[3]{586+102\sqrt{33}}. \end{align}
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, …
The tetranacci constant is the ratio toward which adjacent tetranacci numbers tend. It is a root of the polynomial
x4-x3-x2-x-1=0
x+x-4=2
The tetranacci constant can be expressed in terms of radicals by the following expression:[10]
x=
1 | \left(1+\sqrt{u}+\sqrt{11-u+ | |
4 |
26 | |
\sqrt{u |
where,
u=
11 | - | |
12 |
| ||||
and
u
u3-11u2+115u-169.
Pentanacci, hexanacci, heptanacci, octanacci and enneanacci numbers have been computed. The pentanacci numbers are:
0, 0, 0, 0, 1, 1, 2, 4, 8, 16, 31, 61, 120, 236, 464, 912, 1793, 3525, 6930, 13624, … Hexanacci numbers:
0, 0, 0, 0, 0, 1, 1, 2, 4, 8, 16, 32, 63, 125, 248, 492, 976, 1936, 3840, 7617, 15109, … Heptanacci numbers:
0, 0, 0, 0, 0, 0, 1, 1, 2, 4, 8, 16, 32, 64, 127, 253, 504, 1004, 2000, 3984, 7936, 15808, … 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, ...
The limit of the ratio of successive terms of an
n
x+x-n=2
r
n
n-1 | |
r=\sum | |
k=0 |
r-k
The special case
n=2
\varphi=1+
1 | |
\varphi |
The above formulas for the ratio hold even for
n
n
[..., 0, 0, 1,] 1, 2, 4, 8, 16, 32, …which are simply the powers of two.
The limit of the ratio for any
n>0
r
xn-
n-1 | |
\sum | |
i=0 |
xi=0.
r
2(1-2-n)<r<2
n
3-n<|r|<1
A series for the positive root
r
n>0
2-2\sumi
1 | |
i |
\binom{(n+1)i-2}{i-1}
1 | |
2(n+1)i |
.
There is no solution of the characteristic equation in terms of radicals when .
The th element of the -nacci sequence is given by
(n) | |
F | |
k |
=\left\lfloor
rk-1(r-1) | |
(n+1)r-2n |
\right\rceil,
\lfloor ⋅ \rceil
r
n
x+x-n=2
A coin-tossing problem is related to the
n
n
m
1 | |
2m |
(n) | |
F | |
m+2 |
See main article: Fibonacci word. In analogy to its numerical counterpart, the Fibonacci word is defined by:
Fn:=F(n):=\begin{cases} b&n=0;\\ a&n=1;\\ F(n-1)+F(n-2)&n>1.\\ \end{cases}
+
…
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.
A convolved Fibonacci sequence is obtained applying a convolution operation to the Fibonacci sequence one or more times. Specifically, define[11]
(0) | |
F | |
n |
=Fn
(r+1) | |
F | |
n |
n | |
=\sum | |
i=0 |
Fi
(r) | |
F | |
n-i |
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
(r+1) | |
F | |
n+1 |
(r+1) | |
=F | |
n |
(r+1) | |
+F | |
n-1 |
(r) | |
+F | |
n |
The generating function of the
r
s(r)
infty | |
(x)=\sum | |
k=0 |
(r) | |
F | |
n |
| ||||
x |
\right)r.
The sequences are related to the sequence of Fibonacci polynomials by the relation
(r) | |
F | |
n |
=r!
(r) | |
F | |
n |
(1)
(r) | |
F | |
n(x) |
r
Fn(x)
(r) | |
F | |
n |
(x-1)r
Fx(x)
(x-1)
The first convolution,
(1) | |
F | |
n |
(1) | ||
F | = | |
n |
nLn-Fn | |
5 |
(1) | |
F | |
n+1 |
(1) | |
=2F | |
n |
(1) | |
+F | |
n-1 |
(1) | |
-2F | |
n-2 |
(1) | |
-F | |
n-3 |
.
r>1
r
(1) | |
F | |
n |
As with Fibonacci numbers, there are several combinatorial interpretations of these sequences. For example
(1) | |
F | |
n |
n-2
(1) | |
F | |
4 |
=5
The Fibonacci polynomials are another generalization of Fibonacci numbers.
The Padovan sequence is generated by the recurrence
P(n)=P(n-2)+P(n-3)
The Narayana's cows sequence is generated by the recurrence
N(k)=N(k-1)+N(k-3)
A random Fibonacci sequence can be defined by tossing a coin for each position
n
F(n)=F(n-1)+F(n-2)
F(n)=F(n-1)-F(n-2)
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 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)
(S(0),S(1))
F(n)=(0,1)
F(n-1)=(1,0)
S(n)=S(0)F(n-1)+S(1)F(n)
for all such sequences . For example, if is the Lucas sequence, then we obtain
L(n)=2F(n-1)+F(n)
We can define the -generated Fibonacci sequence (where is a positive rational number): if
N=
a1 | |
2 |
⋅
a2 | |
3 |
⋅
a3 | |
5 |
⋅
a4 | |
7 |
⋅
a5 | |
11 |
⋅
a6 | |
13 |
⋅ \ldots ⋅
ar | |
p | |
r |
,
FN(n)=a1FN(n-1)+a2FN(n-2)+a3FN(n-3)+a4FN(n-4)+a5FN(n-5)+...
n=r-1
FN(n)=1
n<r-1
FN(n)=0
Sequence | 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 |
The semi-Fibonacci sequence is defined via the same recursion for odd-indexed terms
a(2n+1)=a(2n)+a(2n-1)
a(1)=1
a(2n)=a(n)
n\ge1
s(n)=a(2n-1)
s(n+1)=s(n)+a(n)
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
s(n)=a(2k(2n-1)),k=0,1,....