Hi everyone, I have solved this problem spoj.pl/problems/FIBTWIST/
using matrix exponentiation of 4x4 matrix. But while visiting forum i found that some people have solved it using 2x2 matrix. I am curious to know how it can be solved in 2x2 matrix.
PS: In case if anyone thinks that by disclosing this method the solution of problem is discussed, then you can send me a message
.