Let $X \sim \mathcal{N}(0,\sigma^2)$. Find $E[X^n]$, where $n \in N$.
What I did was comparing two forms of MGFs, one using the definition of expectation and the other one using taylor series:
$$M_X(s) = e^{\frac{\sigma^2s^2}{2}} = \sum_{n=0}^\infty \frac{(\sigma s)^{2n}}{2^nn!}$$
$$M_X(s) = E[e^{sX}] = \sum_{n=0}^\infty \frac{s^n}{n!} \cdot E[X^n]$$
Then I equate them: $\frac{(\sigma s)^{2n}}{2^nn!} = \frac{s^n}{n!}\cdot E[X^n]$, but this gives me $E[X^n] = \Big(\frac{\sigma^2s}{2}\Big)^n$, which does not make sense because it contains the parameter $s$. Where did I do wrong ? Thanks.