Having polynomial in form $\sum \limits_{i=1}^{n} c_i x^i$ and linear recurrence, for example $$ R(n)=2 R(n-1)+3R(n-2) + f(n)$$
where $f(n)$ is our polynomial and $R(n)$ is linear reccurence, how can we calculate $R(n)$?
So in other words having $f(n-1)$ how can we calculate $f(n)$?
I'm a bit confused and can't get proper states for my matrix.
Thanks for any hints.