Need to solve:
$$2a_{n-2} = a_n + a_{n-1}$$
with: $a_0 = 0$ and $a_1=1$
I get:
$$f(x) = \frac{2x^3-x^2-x}{2x^2-x-1}$$ so I tried to scompose the denominator and I get:
$$f(x) = \frac{2x^3-x^2-x}{(x-1)(x+\frac{1}{2})}$$ now I think I have to use partial fraction but in this case I do not see any $x^3$ coming out so how should I procede?
$$\frac{A}{x-1}+\frac{B}{x+\frac{1}{2}}$$