Matrix Exponentiation can be used to solve Linear Recurrence . I know how to solve linear recurrences like :
$f(n) = f(n-k_1) + f(n-k_2) + ... +\ constant$
But i couldn't find any information on how to solve recurrences like
$f(n) = f(n-k_1) + f(n-k_2) + ... + n^m$
or
$f(n) = f(n-k_1) + f(n-k_2) + ... + n\cdot m$
or
$f(n) = f(n-k_1) + f(n-k_2) + ... + k^n$
i.e.
involving an '$n$' term.
Can anyone provide me with any link or explain how to solve such recurrences or how to form the initial matrix whose power will be used to solve the recurrence?
This is required in :