The method I found for solving recursive equations starts like this:
First, I express the equation with the help of polynomials $q$, so
$$q^n = 6q^{n-1} - 9q^{n-2}.$$
This is equivalent to
$$q^2 = 6q - 9,$$
which can be solved with the $p-q$-formula.
The goal is to solve this system of linear equations:
$$f(0) = a_1 + a_2 = 0$$ $$f(1) = a_1q_1 + a_2q_2 = 1$$
with $q_1$ and $q_2$ being the solutions that I receive with the help of the $p-q$-formula. But: The $p-q$-formula only yields one solution in this case, which is $q_1 = 3$, and hence, I don't know how to go further from here.