Using generating functions, Find a closed formula to next expression:
$\sum_{k=0}^m{k(k+2)}$
If i use calculus power series rules, The question is fairly simple. But how can i find the proper relation with generating functions?
Using generating functions, Find a closed formula to next expression:
$\sum_{k=0}^m{k(k+2)}$
If i use calculus power series rules, The question is fairly simple. But how can i find the proper relation with generating functions?
First note that
$$\sum_{k=0}^nk(k+2)x^k=\sum_{k=0}^n(k+1)^2x^k-\sum_{k=0}^nx^k\;.$$
The last summation is a geometric series, so you know a closed form for it. Next, check that
$$\sum_{k=0}^n(k+1)^2x^k=\sum_{k=1}^{n+1}k^2x^{k-1}=\left(\sum_{k=1}^{n+1}kx^k\right)'=\left(\sum_{k=0}^{n+1}kx^k\right)'\;.$$
If you can find a closed form for $\displaystyle\sum_{k=0}^{n+1}kx^k$, you can differentiate it to get one for $\displaystyle\sum_{k=0}^n(k+1)^2x^k$. And
$$\sum_{k=0}^{n+1}kx^k=\sum_{k=1}^{n+1}kx^k=x\sum_{k=1}^{n+1}kx^{k-1}=x\left(\sum_{k=1}^{n+1}x^k\right)'=x\left(\sum_{k=0}^{n+1}x^k\right)'\;,$$
for which you can easily find a closed form.