Fibonacci finding using matrix exponentiation

First you incremented the value of n , then decremented it and hence the value of n remains the same but we have to calculate T^(n-1) , how to deal with this.

Refer this

Hope this helps.
Cheers

Tuto-1
Tuto-2
Tuto-3