I am trying to solve this quesetion from Serge Lang's Complex analysis book.
Exercise II.1.6 (Difference Equations). Given complex numbers $a_0, a_1, a, b$ define $a_n$ for $n \geq 2$ by $$ a_n=a a_{n-1}+b a_{n-2} $$ If we have a factorization $$ T^2-a T-b=(T-\alpha)\left(T-\alpha^{\prime}\right), \quad \text { and } \alpha \neq \alpha^{\prime} $$ show that the numbers $a_n$ are given by $$ a_n=A \alpha^n+B \alpha^{\prime n} $$ with suitable $A, B$. Find $A, B$ in terms of $a_0, a_1, \alpha, \alpha^{\prime}$. HINT: Consider the power series $$ F(T)=\sum_{n=0}^{\infty} a_n T^n $$ Show that it represents a rational function, and give its partial fraction decomposition.
We first use the standard method of generating functions to write
$$\sum_{n=2}^\infty a_n T^n = \sum_{n=2}^\infty aa_{n-1}T^n + \sum_{n=2}^\infty b a_{n-2}T^n.$$
Now, expanding terms, we have
$$a_2T^2+a_3T^3+a_4T^4+\dots = aa_1T^2+aa_2T^3+aa_3T^4 +\dots ba_0T^2+ba_1T^3+ba_2T^4+\dots.$$
Then, letting $F(T) = \sum_{n=0}^\infty a_nT^n$, we can rewrite this as
$$F(T)(T^2-aT-b) = -aa_0T+a_1T^3+a_0T^2$$
which gives us the form of $F$ a a rational function, namely
$$F(T) = \frac{a_1T^3+a_0T^2-aa_0T}{(T^2-aT-b)} =\frac{a_1T^3+a_0T^2-aa_0T}{(T-\alpha)(T-\alpha')}.$$
Now, the question says to expand in partial fractions. The numerator is greater than the denominator, so we must perform polynomial long division. Doing this yields,
$$F(t) = (a_0+aa_1)+a_1T + \frac{(a_1b-a^2a)T + (a_0b+aa_1b)}{(T-\alpha)(T-\alpha')}.$$ Now, I am stuck. This is too messy to get anything useful from with partial fractions decomposition, and I can't figure out how to relate this back to obtain the form of the $a_n$. What can be done from here?
Hint.
From
$$ a_n x^n-a a_{n-1}x^n-b a_{n-2}x^n=0 $$
we have
$$ T(x) = \frac{\phi(x)}{1-ax-bx^2} = \frac{\phi(x)}{b}\left(\frac{A}{x-x_1}+\frac{B}{x-x_2}\right) $$
where $x_1,x_2$ are the roots from $1-ax-bx^2=0$ and $\phi(x)$ is the initial conditions polynomial. Here $T(x) = \sum a_k x^k$