- In my last post Top 5 2x2 matrices ranked, the Fibonacci matrix was able to calculate the usual Fibonacci pattern . However, we only examined one recursive sequence. What if I told you, you could do this for any pattern possible!
Lucas Numbers and creating your own sequence
- The classical Fibonnaci sequence starts at 0, 1. However, this property can hold for any sequence you want. Suppose you wanted to start with the numbers 2 and 1. then your initial vector will be . If we apply the same technique, we will generate the following sequence : . this sequence is called the Lucas Numbers.
Facts about the Lucas Numbers
Tribonacci sequence:
- The Tribonacci sequence is a little different, where instead of adding two numbers, you add three numbers. Lets suppose the first three numbers of the sequence are . The Tribonacci sequence would look like and our recursive formula would look like Hence, our base case would be and our transformation would be of the form
Why use a matrix?
While the matrix approach to any n-th Fibonacci sequence is tedious, it does provide a clever way to compute Fibonacci numbers in a quicker speed than a naive approach. When you tell a computer to calculate an n-th Fibonacci number, it will take n steps to do it. With computers, we can divide and conquer the matrix multiplication, resulting in only taking log(n) steps!
Final Facts. The Golden Ratio!
- Take our 2x2 matrix used for finding the Fibonacci numbers. Now evaluate its eigenvalues
Step By step guide of solving it such that
Hence,
Using which every method of your choosing to solve a quadratic, we get that
- Look closely to one of the Eigenvalues. ITS THE GOLDEN RATIO!
Fibonacci ain't Done
We then arrive to the following:
Giving us the same quadratic!
- In the end, the Fibonacci Sequence seems to revolve around the golden ratio and it being a root to the polynomial :
More Resources and Questions to the audience
- This post reaches many different aspects of the Fibonacci sequence, and its various oddities, but it gets even more convoluted! When examining the relationships between n-th Fibonacci sequence and their polynomials. I will describe a new notion, the Fibonacci Polynomial to describe the polynomial of the following form :
, where is the positive root of . For example, , the golden ratio. Does this sequence converge? Does it converge to 2?
Suppose we have a sequence
This question spawned from this post I was reading the other day
- Anyways, thanks for reading my rabbit hole into the recursive nature of the Fibonacci sequence, and with the nature of recursive functions, they are always mysteriously magical and AWESOME!