Wednesday, 10 June 2020

Fibonacci-like Sequences

I've posted a lot about Fibonacci numbers over the years:
The Fibonacci sequence is the most famous example of a generalised sequence that begins with two seed numbers a and b and then proceeds as follows:an={aif n=0;bif n=1;an1+an2otherwise.
No matter what the values of the seed numbers, the ratio of one term to its predecessor always approaches ϕ, the golden ration. This ratio is equal to: 1+52
There is an even more generalised sequence that also begins with two seed numbers a and b but then proceeds as follows:an={aif n=0;bif n=1;Aan1+Ban2otherwise.
Here A and B are constants and in the case where A=1 and B=1, we have the earlier sequence. The ratio of one term to its predecessor however, is no longer the golden ratio. The n-th term for such a sequence is given by:αnβnαβ
Here α and β are the roots of the quadratic x2=Ax+B. Let's take a specific example where A=3 and B=3 and so x2=3x+3. The solution to this is:α=3+212 and β=3212
Thus the n-th term approaches:(3+21)n(321)n2n×21
This simplifies to:121(3+212)n
Thus the ratio between successive terms will tend to 3+212

In the case where A=1 and B=1, the ratio is  1+52=ϕ and so different surds will appear depending on the values of A and B.

As we've seen in the case of A=3 and B=3, the surd turns out to be 21. Here is an example of an OEIS sequence with seed numbers a0=1 and a1=2 that has both constants equal to 3:



a(n) = 3*a(n-1) + 3*a(n-2) with a(0)=1 and a(1)=2           


The first terms of the sequence are 1, 2, 9, 33, 126, 477, 1809, 6858, 26001, 98577, 373734, 1416933, ... Naturally the terms get larger far more quickly than the Fibonacci sequence. Note that the ratio of the last two terms is getting close to the predicted value:14169333737343.79128738621586 and 3+2123.79128784747792
A further point to note is that the formula: αnβnαβ
only produces the correct terms of the sequence when a(0)=0 and a(1)=1 and the result is rounded to the nearest whole number. See permalink. However, no matter what the seed numbers, the ratio of terms for a particular sequence always approaches the same limit.

No comments:

Post a Comment