Matrix Exponentiation
Let's call our matrix that represents a single iteration of the Fibonacci recurrence . What can we do now that we have as a matrix?
Well, let's start with our initial values . We have that
All is as expected: we've moved along to the next value of the Fibonacci sequence.1 Doing it more, we get
In general, we seem to have that
(Remember, order matters but we can remove the parentheses: matrix multiplication is associative but not commutative.)
So now we have a new question: how can we compute efficiently?
- If you're new to matrices, try doing these calculations yourself and verifying my work.↩
Matrix Exponentiation
Let's call our matrix that represents a single iteration of the Fibonacci recurrence . What can we do now that we have as a matrix?
Well, let's start with our initial values . We have that
All is as expected: we've moved along to the next value of the Fibonacci sequence.1 Doing it more, we get
In general, we seem to have that
(Remember, order matters but we can remove the parentheses: matrix multiplication is associative but not commutative.)
So now we have a new question: how can we compute efficiently?
- If you're new to matrices, try doing these calculations yourself and verifying my work.↩