N K Ladder using matrix exponentiation

The video says if we use the recurrence relation
f(i)=2f( i-1)+f( i-(k-1) )
then the time complexity for exponentiation method would be O(logN), but should it still not be O(K^3 logN) only since f(i-k-1) is the last term on which ith term is dependent?

firstly correct your recurrences.
second if you use matrix exponentiation then your solution would show time complexity of (k^3logN)

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.

So even if we use the recurrence relation f(i)=2f( i-1)+f( i-(k+1) ) , the time complexity remains O(k^3logN) only, right?

yess!!!