Generalizations of Fibonacci numbers: Difference between revisions

From testwiki
Jump to navigation Jump to search
Semi-Fibonacci sequence: Fixed obvious typo.
 
(No difference)

Latest revision as of 19:56, 6 October 2024

Template:Short description In mathematics, the Fibonacci numbers form a sequence defined recursively by:

Fn={0n=01n=1Fn1+Fn2n>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 Fn2=FnFn1, 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 Fn=(1)n+1Fn.[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

Fn=φn(φ)n5.

The analytic function

Fe(x)=φxφx5

has the property that Fe(n)=Fn for even integers n.[2] 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)=φxcos(xπ)φx5

satisfies Fib(n)=Fn for all integers n.[3]

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.514195.9i

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+2)=g(n)+g(n+1). These functions are precisely those of the form g(n)=F(n)g(1)+F(n1)g(0), so the Fibonacci sequences form a vector space with the functions F(n) and F(n1) 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+2)=g(n)+g(n+1). Expressed in terms of two initial values we have:

g(n)=F(n)g(1)+F(n1)g(0)=g(1)φn(φ)n5+g(0)φn1(φ)1n5,

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(n1)+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.[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:

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 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 n-Fibonacci numbers tend; it is also called the Template:Mvarth metallic mean, and it is the only positive root of x2nx1=0. For example, the case of n=1 is 1+52, or the golden ratio, and the case of n=2 is 1+2, or the silver ratio. Generally, the case of n is n+n2+42.Template:Citation needed

Generally, U(n) 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 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 n. 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 n.

These sequences, their limiting ratios, and the limit of these limiting ratios, were investigated by Mark Barr in 1913.[5]

Tribonacci numbers

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, … Template:OEIS

The series was first described formally by Agronomof[6] in 1914,[7] 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.[8] The term tribonacci was suggested by Feinberg in 1963.[9]

The tribonacci constant

1+19+3333+1933333=1+4cosh(13cosh1(2+38))31.839286755214161, Template:OEIS

is the ratio toward which adjacent tribonacci numbers tend. It is a root of the polynomial x3x2x1=0, and also satisfies the equation x+x3=2. 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 ξ3+ξ2+ξ=1, can be written as:

ξ=17+333317+333313=31+19+3333+1933330.543689012. Template:OEIS

The tribonacci numbers are also given by[10]

T(n)=3b(13(a++a+1))nb22b+4

where denotes the nearest integer function and

a±=19±3333,b=586+102333.

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

The tetranacci constant is the ratio toward which adjacent tetranacci numbers tend. It is a root of the polynomial x4x3x2x1=0, approximately 1.927561975482925 Template:OEIS, and also satisfies the equation x+x4=2.

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

x=14(1+u+11u+26u)

where,

u=13(1156265+316893+222365+316893)

and u is the real root of the cubic equation u311u2+115u169.

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, … Template:OEIS

The pentanacci constant is the ratio toward which adjacent pentanacci numbers tend. It is a root of the polynomial x5x4x3x2x1=0, approximately 1.965948236645485 Template:OEIS, and also satisfies the equation x+x5=2.

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 a root of the polynomial x6x5x4x3x2x1=0, approximately 1.98358284342 Template:OEIS, and also satisfies the equation x+x6=2.

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 a root of the polynomial x7x6x5x4x3x2x1=0, approximately 1.99196419660 Template:OEIS, and also satisfies the equation x+x7=2.

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

The limit of the ratio of successive terms of an n-nacci series tends to a root of the equation x+xn=2 (Template:OEIS2C, Template:OEIS2C, Template:OEIS2C).

An alternate recursive formula for the limit of ratio r of two consecutive n-nacci numbers can be expressed as

r=k=0n1rk.

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

The above formulas for the ratio hold even for n-nacci series generated from arbitrary numbers. The limit of this ratio is 2 as n increases. 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 for any n>0 is the positive root r of the characteristic equation[11]

xni=0n1xi=0.

The root r is in the interval 2(12n)<r<2. The negative root of the characteristic equation is in the interval (−1, 0) when n is even. This root and each complex root of the characteristic equation has modulus 3n<|r|<1.[11]

A series for the positive root r for any n>0 is[11]

22i>01i((n+1)i2i1)12(n+1)i.

There is no solution of the characteristic equation in terms of radicals when Template:Math.[11]

The Template:Mvarth element of the Template:Mvar-nacci sequence is given by

Fk(n)=rk1(r1)(n+1)r2n,

where denotes the nearest integer function and r is the n-nacci constant, which is the root of x+xn=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 12mFm+2(n).[12]

Fibonacci word

Template:Main In analogy to its numerical counterpart, the Fibonacci word is defined by:

Fn:=F(n):={bn=0;an=1;F(n1)+F(n2)n>1.

where + denotes the concatenation of two strings. The sequence of Fibonacci strings starts:

Template:Not a typoTemplate:OEIS

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[13]

Fn(0)=Fn

and

Fn(r+1)=i=0nFiFni(r)

The first few sequences are

r=1: 0, 0, 1, 2, 5, 10, 20, 38, 71, … Template:OEIS.
r=2: 0, 0, 0, 1, 3, 9, 22, 51, 111, … Template:OEIS.
r=3: 0, 0, 0, 0, 1, 4, 14, 40, 105, … Template:OEIS.

The sequences can be calculated using the recurrence

Fn+1(r+1)=Fn(r+1)+Fn1(r+1)+Fn(r)

The generating function of the rth convolution is

s(r)(x)=k=0Fn(r)xn=(x1xx2)r.

The sequences are related to the sequence of Fibonacci polynomials by the relation

Fn(r)=r!Fn(r)(1)

where Fn(r)(x) is the rth derivative of Fn(x). Equivalently, Fn(r) is the coefficient of (x1)r when Fx(x) is expanded in powers of (x1).

The first convolution, Fn(1) can be written in terms of the Fibonacci and Lucas numbers as

Fn(1)=nLnFn5

and follows the recurrence

Fn+1(1)=2Fn(1)+Fn1(1)2Fn2(1)Fn3(1).

Similar expressions can be found for r>1 with increasing complexity as r increases. The numbers Fn(1) are the row sums of Hosoya's triangle.

As with Fibonacci numbers, there are several combinatorial interpretations of these sequences. For example Fn(1) is the number of ways n2 can be written as an ordered sum involving only 0, 1, and 2 with 0 used exactly once. In particular F4(1)=5 and 2 can be written Template:Nowrap, Template:Nowrap, Template:Nowrap, Template:Nowrap, Template:Nowrap.[14]

Other generalizations

The Fibonacci polynomials are another generalization of Fibonacci numbers.

The Padovan sequence is generated by the recurrence P(n)=P(n2)+P(n3).

The Narayana's cows sequence is generated by the recurrence N(k)=N(k1)+N(k3).

A random Fibonacci sequence can be defined by tossing a coin for each position n of the sequence and taking F(n)=F(n1)+F(n2) if it lands heads and F(n)=F(n1)F(n2) 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 S(n)=S(n1)+S(n2) 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 (S(0),S(1)), the Fibonacci sequence F(n)=(0,1) and the shifted Fibonacci sequence F(n1)=(1,0) are seen to form a canonical basis for this space, yielding the identity:

S(n)=S(0)F(n1)+S(1)F(n)

for all such sequences Template:Mvar. For example, if Template:Mvar is the Lucas sequence Template:Nowrap, then we obtain

L(n)=2F(n1)+F(n).

Template:Mvar-generated Fibonacci sequence

We can define the Template:Mvar-generated Fibonacci sequence (where Template:Mvar is a positive rational number): if

N=2a13a25a37a411a513a6prar,

where Template:Mvar is the Template:Mvarth prime, then we define

FN(n)=a1FN(n1)+a2FN(n2)+a3FN(n3)+a4FN(n4)+a5FN(n5)+...

If n=r1, then FN(n)=1, and if n<r1, then FN(n)=0.Template:Citation needed

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 a(2n+1)=a(2n)+a(2n1) and a(1)=1, but for even indices a(2n)=a(n), n1. The bisection Template:OEIS link of odd-indexed terms s(n)=a(2n1) 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, ... Template:OEIS

which occur as s(n)=a(2k(2n1)),k=0,1,....

References

Template:Reflist

Template:Fibonacci