I have an equation:
$t_n =2t_{n-1}+t_{n-2}; t_0=0, t_1=1$
So, I rewrote this using generating functions as:
$\sum_{n=0}^{\infty} t_nz^n = 2\sum_{n=0}^{\infty} t_{n-1}z^n+\sum_{n=0}^{\infty} t_{n-2}z^n$
$g(z)=2zg(z)+z^2g(z)$
$g(z)={1\over{1-2z-z^2}}$
I don't know how to proceed after this? Can you help me please? Thanks.
The formula $t_n = 2t_{n - 1} + t_{n - 2}$ only makes sense if $n \ge 2$. So you should do the computation as
$$ G(z) = \sum_{n \ge 0} t_nz^n = t_0 + t_1z + \sum_{n \ge 2} t_nz^n = z + \sum_{n \ge 2}\left(2t_{n - 1} + t_{n - 2}\right)z^n$$
from which one finds
$$ G(z) = z + 2z(G(z) - t_0) + z^2G(z) = \frac{z}{1 - 2z - z^2}.$$
To compute this, one needs to factor the denominator:
$$ G(z) = \frac{z}{(1 - (1 - \sqrt 2)z)(1 - (1 + \sqrt 2)z)}.$$
This gives you
$$G(z) = \frac{A}{1 - (1 - \sqrt 2)z} + \frac{B}{1 - (1 + \sqrt 2)z} = \sum_{n \ge 0} \left( A(1 - \sqrt 2)^n + B(1 + \sqrt 2)^n \right)z^n $$
for some values of $A, B$ that you need to determine from the sequence.
By the way, in order to factorize a polynomial
$$ 1 + a_1z + a_2z^2 + \dots + a_nz^n $$
as
$$ (1 - r_1z)(1 - r_2z)\cdots(1-r_nz)$$
what you do is you solve
$$ a_n + a_{n - 1}z + \cdots + a_1z^{n - 1} + z^n = 0 $$
to get $r_1, \dots, r_n$. That is $r_1, \dots, r_n$ are the roots with the coefficients reversed.