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.
There are a number of possible generalizations of the Fibonacci numbers which include thereal numbers (and sometimes thecomplex numbers) in their domain. These each involve thegolden ratioφ, and are based onBinet's formula
Since 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,
However, this extension is by no means unique. For example, either
or
for any odd integerk is an extension of the Fibonacci number sequence to the entire complex plane, as is anylinear combination of them for which the coefficients sum to 1.
The termFibonacci sequence is also applied more generally to anyfunction from the integers to afield for which. These functions are precisely those of the form, so the Fibonacci sequences form avector space with the functions and as abasis.
More generally, the range of may be taken to be anyabelian group (regarded as aZ-module). Then the Fibonacci sequences form a 2-dimensionalZ-module in the same way.
The 2-dimensional-module of Fibonacciinteger sequences consists of all integer sequences satisfying. Expressed in terms of two initial values we have:
where is the golden ratio.
The ratio between two consecutive elementsconverges 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
in which if and only if. In this form the simplest non-trivial example has, which is the sequence ofLucas numbers:
.
We have and. 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 theWythoff array. The Fibonacci sequence itself is the first row, and a shift of the Lucas sequence is the second row.[4]
A different generalization of the Fibonacci sequence is theLucas sequences of the kind defined as follows:
where the normal Fibonacci sequence is the special case of and. Another kind of Lucas sequence begins with,. Such sequences have applications innumber theory andprimality proving.
When, this sequence is calledP-Fibonacci sequence, for example,Pell sequence is also called2-Fibonacci sequence.
Then-Fibonacci constant is the ratio toward which adjacent-Fibonacci numbers tend; it is also called thenthmetallic mean, and it is the only positiveroot of. For example, the case of is, or thegolden ratio, and the case of is, or thesilver ratio. Generally, the case of is.[citation needed]
Generally, can be called(P,−Q)-Fibonacci sequence, andV(n) can be called(P,−Q)-Lucas sequence.
AFibonacci sequence of ordern 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 cases and have been thoroughly investigated. The number ofcompositions of nonnegative integers into parts that are at most is a Fibonacci sequence of order. 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.
These sequences, their limiting ratios, and the limit of these limiting ratios, were investigated byMark Barr in 1913.[5]
Thetribonacci 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:
The sequence was first described formally by Agronomof[6] in 1914,[7] but its first unintentional use is in theOrigin of Species byCharles R. Darwin. In the example of illustrating the growth of elephant population, he relied on the calculations made by his son,George H. Darwin.[8] The termtribonacci was suggested by Feinberg in 1963.[9]
Thetribonacci constant
is the ratio toward which adjacent tribonacci numbers tend. It is the unique real root of the polynomial, approximately1.839286755214161... (sequenceA058265 in theOEIS), and also satisfies the equation. It is important in the study of thesnub cube.
A geometric construction of the Tribonacci constant (AC), with compass and marked ruler, according to the method described by Xerardo Neira.
Thereciprocal of the tribonacci constant, expressed by the relation, can be written as:
approximately0.543689012692076... (sequenceA192918 in theOEIS)
Thetetranacci numbers start with four predetermined terms, each term afterwards being the sum of the preceding four terms. The first few tetranacci numbers are:
Thetetranacci constant is the ratio toward which adjacent tetranacci numbers tend. It is the unique positive real root of the polynomial, approximately1.927561975482925... (sequenceA086088 in theOEIS), and also satisfies the equation.
The tetranacci constant can be expressed in terms ofradicals by the following expression:[11]
Thepentanacci constant is the ratio toward which adjacent pentanacci numbers tend. It is the unique real root of the polynomial, approximately1.965948236645485... (sequenceA103814 in theOEIS), and also satisfies the equation.
Thehexanacci constant is the ratio toward which adjacent hexanacci numbers tend. It is the unique positive real root of the polynomial, approximately1.983582843424326... (sequence A118427 in theOEIS), and also satisfies the equation.
Theheptanacci constant is the ratio toward which adjacent heptanacci numbers tend. It is the unique real root of the polynomial, approximately1.991964196605035... (sequenceA118428 in theOEIS), and also satisfies the equation.
The limit of the ratio of successive terms of an-nacci series tends to a root of the equation (OEIS: A103814,OEIS: A118427,OEIS: A118428).
The limit of the ratio for any is the unique positive root of the characteristic equation[11]
.
The special case is the traditional Fibonacci series yielding the golden section.
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.
The root is in theinterval. The negative root of the characteristic equation is in the interval (−1, 0) when is even. This root and each complex root of the characteristic equation hasmodulus.[11]
In analogy to its numerical counterpart, theFibonacci word is defined by:
where denotes theconcatenation of two strings. The sequence of Fibonacci strings starts:
b, a, ab, aba, abaab, abaababa, abaababaabaab, … (sequenceA106750 in theOEIS)
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 theworst case in some computeralgorithms.
If "a" and "b" represent two different materials or atomic bond lengths, the structure corresponding to a Fibonacci string is aFibonacci quasicrystal, an aperiodicquasicrystal structure with unusualspectral properties.
where is thethderivative of. Equivalently, is thecoefficient of when is expanded in powers of.
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 ofHosoya'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 written0 + 1 + 1,0 + 2,1 + 0 + 1,1 + 1 + 0,2 + 0.[14]
TheNarayana's cows sequence is generated by the recurrence.
Arandom 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 sequencealmost surelygrows exponentially at a constant rate: the constant is independent of the coin tosses and was computed in 1999 byDivakar Viswanath. It is now known asViswanath's constant.
Arepfigit, orKeith 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:
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 avector 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 and the shifted Fibonacci sequence are seen to form a canonical basis for this space, yielding the identity:
for all such sequencesS. For example, ifS is the Lucas sequence2, 1, 3, 4, 7, 11, ..., then we obtain
Thesemi-Fibonacci sequence (sequenceA030067 in theOEIS) is defined via the same recursion for odd-indexed terms and, but for even indices,. The bisectionA030068 of odd-indexed terms therefore verifies and isstrictly increasing. It yields the set of thesemi-Fibonacci numbers