I have the following problem:
Solve the following recurrence relation
$f(0)=3$
$f(1)=12 $
$f(n)=6f(n-1)-9f(n-2)$
We know this is a homogeneous 2nd order relation so we write the characteristic equation: $a^2-6a+9=0$ and the solutions are $a_{1,2}=3$.
The problem is when I replace these values I get:
$$f(n)=c_13^n+c_23^n$$
and using the 2 initial relations I have:
$$f(0)=c_1+c_2=3$$ $$f(1)=3(c_1+c_2)=12$$
which gives me that there are no values such that $c_1$ and $c_2$ such that these 2 relation are true.
Am I doing something wrong? Is the way it should be solved different when it comes to identical roots for the characteristic equation?