Comment Comment by fennecs What’s more, if you need to compute F_n, you can do the matrix power by exponentiation by squaring. It can speed up the calculation quite a bit. parent fennecs 2 years ago