Find coefficient of $x^n$ in $(1+x+2x^2+3x^3+.....+nx^n)^2$ Such coefficient is clearly $$ 2n+\sum_{k=1}^{n-1} k(n-k) = \frac{n(n^2+11)}{6}.$$