HI @abhishek_trigunait bhaiya - i am not able to understand completely but i will share my understanding and doubt .
what i understood from above explanation :-
when N and M are given as an input in that case linear recurrence we can have as below
f(N) + f(N+1)+f(N+2)+ -------+f(M) = f(M+2) - f(N+1)
if that is the case , how i can get the transformation matrix for this linear recurrence . I am not getting this .
If my above understanding is correct than please help me with the transformation matrix for it or else please correct me ?
And as well in such problems how we can find out linear recurrence for any of the given problem ?
Second Doubt (Fast Fibonacci https://hack.codingblocks.com/contests/c/473/280):
For this problem i am getting wrong answer for two of the test cases could you please let me know where i am missing .
https://ide.codingblocks.com/#/s/14175
I am trying to solve it using matrix and binary exponentiation .