If given a GF $F(x) = \frac{1}{(1-rx)^2}$, how do I find the coefficient for the term $x^n$?
I can tell $F(x) = A(x)^2$, where $A(x)$ is the GF for the sequence $1, r, r^2, r^3, r^4, \ldots$ but I don't know how to find the coefficient at $x^n$.
Thanks.
You need to make the Cauchy product of $A$ with itself :
$$F=A^2=\sum_{n\geq 0}r^nx^n\sum_{n\geq 0}r^nx^n=\sum_{n,m\geq 0}r^{n+m}x^{n+m}=\sum_{N\geq 0}\sum_{n=0}^Nr^Nx^N $$
In the last equality I made the change of variable $(n,m)\mapsto (n,n+m)$ the inverse of this change of variable is given by $(n,N)\mapsto (n,N-n)$ (This is exactly the Cauchy-product of two series here).
Now :
$$F=A^2=\sum_{N\geq 0}\sum_{n=0}^Nr^Nx^N=\sum_{N\geq 0}\left(\sum_{n=0}^N1\right)r^Nx^N=\sum_{N\geq 0}(N+1)r^Nx^N$$