Find the $n^\text{th}$ moment of $p(x=k)=\dfrac{pq^k}{1-q^{N+1}}$, $k=0,1,2,\ldots,N$ , $0\lt p\lt 1$ and $q=1-p$.
My approach is $$M_x(t)=\sum e^{xt}\cdot p(x)=\frac{p}{1-q^{N+1}} \cdot \sum_{x=0}^N e^{tx}q^x$$
Now, $M_x^n(t)=\frac{p}{1-q^{N+1}}\cdot\sum_{x=0}^N x^ne^{tx}q^x$
Thus, $M_x^n(0)=\frac{p}{1-q^{N+1}}\cdot\sum_{x=0}^N x^nq^x$
Can we get any closed form for the expression?