Visual Studio Code – How to calculate nth term of higher order GENERALIZED Fibonacci sequence using matrix exponentiation in C++?
I am interested in calculating the nth term of higher order Fibonacci sequence in C++, using matrix exponentiation, while allowing n to be reasonably large (in the range of hundreds). The sequences I have described are not Fibonacci sequence only…