We have

and

for

. Define
 = \sum_{n=0}^\infty t_n x^n)
. As per usual to find the generating function we multiply the recurrence equation by

and sum over all values of n for which the recurrence is valid. The rest is just about having the fortitude to carry out the computation, which with enough experience doesn't require much thinking at all. However, I'm aware it can be difficult to do (and understand) in the beginning, so feel free to ask about any of the steps below if you're confused and I'll go through how it works.

The left hand side is just
 - t_0 x^0 = T(x) - 1)
. At this point I want to interchange the order of summation (to break the inner sum's dependence on the outer sum's dummy variable).


Now I'm going to perform an index shift in the inner sum, by starting the sum at n=0, and replacing n by n+i in the summand.

 \left(\sum_{n=0}^\infty t_{n} x^{n} \right))
And we've broken the sum into independent parts, which is what I tried to hint at as my reason for interchanging summation order. The second bracket is just
)
, so we'll work on the first bracket. To do this we perform an index shift starting the sum at i=0 and changing i to i+1 in the summand.
 \left(\sum_{n=0}^\infty t_{n} x^{n} \right))
 \left(\sum_{n=0}^\infty t_{n} x^{n} \right))
)^2)
And we've done the hard part. We have
 - 1 = x (T(x))^2)
. Now you can solve this functional equation for
)
. You'll get a quadratic and hence two solutions, think about which one you should select.
