In mathematics, the Fibonacci numbers form a sequence defined recursively by:
Fn={0n=01n=1Fn−1+Fn−2n>1 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 Fn−2=Fn−Fn−1, 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 F−n=(−1)n+1Fn.
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
Fn=φn−(−φ)−n5. The analytic function
Fe(x)=φx−φ−x5 has the property that Fe(n)=Fn for even integers n. Similarly, the analytic function:
Fo(x)=φx+φ−x5 satisfies Fo(n)=Fn for odd integers n. Finally, putting these together, the analytic function
Fib(x)=φx−cos(xπ)φ−x5 satisfies Fib(n)=Fn for all integers n. Since Fib(z+2)=Fib(z+1)+Fib(z) for all complex numbers z, 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,
Fib(3+4i)≈−5248.5−14195.9i However, this extension is by no means unique. For example, either
Fib(x)=φx−cos(kxπ)φ−x5 or Fib(x)=φx−exp(ikxπ)φ−x5 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 g(n)=g(n−1)+g(n−2). These functions are precisely those of the form 1, 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 ℤ-module of Fibonacci integer sequences consists of all integer sequences satisfying g(n)=g(n−1)+g(n−2). Expressed in terms of two initial values we have:
g(n)=F(n)g(1)+F(n−1)g(0)=g(1)φn−(−φ)−n5+g(0)φn−1−(−φ)1−n5, 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 (−φ)−1. The sequence can be written in the form
aφn+b(−φ)−n, in which a=0 if and only if b=0. In this form the simplest non-trivial example has a=b=1, which is the sequence of Lucas numbers:
Ln=φn+(−φ)−n. We have L1=1 and L2=3. The properties include:
φn=(1+52)n=L(n)+F(n)52,L(n)=F(n−1)+F(n+1). 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. 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:
U(0)=0U(1)=1U(n+2)=PU(n+1)−QU(n), where the normal Fibonacci sequence is the special case of P=1 and Q=−1. Another kind of Lucas sequence begins with V(0)=2, V(1)=P. Such sequences have applications in number theory and primality proving. When Q=−1, 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, ... (sequence A006190 in the OEIS) The 4-Fibonacci sequence is
0, 1, 4, 17, 72, 305, 1292, 5473, 23184, 98209, 416020, 1762289, 7465176, 31622993, 133957148, 567451585, 2403763488, ... (sequence A001076 in the OEIS) The 5-Fibonacci sequence is
0, 1, 5, 26, 135, 701, 3640, 18901, 98145, 509626, 2646275, 13741001, 71351280, 370497401, 1923838285, 9989688826, ... (sequence A052918 in the OEIS) The 6-Fibonacci sequence is
0, 1, 6, 37, 228, 1405, 8658, 53353, 328776, 2026009, 12484830, 76934989, 474094764, 2921503573, 18003116202, ... (sequence A005668 in the OEIS) The k-Fibonacci constant is the ratio toward which adjacent k-Fibonacci numbers tend; it is also called the kth metallic mean, and it is the only positive root of x2−kx−1=0. For example, the case of k=1 is 1+52, or the golden ratio, and the case of k=2 is 1+2, or the silver ratio. Generally, the case of k is k+k2+42. 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, ... (sequence A001045 in the 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, ... (sequence A006130 in the 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, ... (sequence A002605 in the 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, ... (sequence A030195 in the OEIS)
… excerpt ends here. Continue reading the full article.
