I was trying to get the probability distribution $p(n)$ from a generating function $G(s)$ like this:
$G(s) = e^{a(s-1)^2}=\sum s^np(n)$
I need first to do Maclaurin expansion of the exponential and then get the $n$th order term for $p(n)$.
My first thinking was it would be simple to calculate the derivatives. But it turns out to be much more difficult and also very interesting to generalize the $n$ order derivative.
I list a table for the powers and coefficients of each derivative order, finding that the powers are odd numbers for odd $n$, even numbers for even $n$, the coefficients are associated to $(n-1)$th order's powers and coefficients. It is easy to see the association but I cannot generalize it.
This calculation is also like $z$ transform but no existing result for it.
Anyone could give a shot and help me out?


$G$, using your notation, is known in probability as the probability generating function. See here for more details. It is seen on this link that $$p(k) = \dfrac{\left.G^{(k)}(s)\right|_{s=0}}{k!}$$ where $G^{(k)}$ denotes the $k$th derivative.