I've been learning Linear Recurrences in my Discrete Math course and I've learned how to solve them when the characteristic equation is a quadratic. Is solving a linear recurrence with a cubic equation similar? This is the question I'm working on:
Solve the Linear Recurrence:
$f(0) = 0$
$f(1) = 0$
$f(2) = 18$
$f(n) = 3f(n − 1) − 4f(n − 3)$
...assuming the form will be of the kind $x^n$, I ended up getting:
$x^n = 3x^n-1 - 4x^n-3$
Which becomes the below once you divide the common factor from each term:
$x^3 = 3x^2 + 4$
Which is the cubic equation $x^2 - 3x^2 + 4$
Factoring everything out gave me the following Zeros: $2, 2, -1$ (not sure if this accurate, I'm using to factoring quadratics or using the quadratic equations to get zeros).
I then tried to set up a system of equations, but I've never done this $3$ equations:
$f(n) = a(2)^n + b(2)^n + c(-1)^n$
$f(0) = a(2)^0 + b(2)^0 + c(-1)^0 = a + b + c = 0$ $f(1) = a(2)^1 + b(2)^1 + c(-1)^1 = 2a + 2b - c = 0$ $f(2) = a(2)^2 + b(2)^2 + c(-1)^2 = 4a + 4b - c = 18$
...I have no idea if I did this correctly. I basically followed the procedure I used to solve a quadratic linear recurrence but now I'm stumped. Any help would be most welcome!