I'm working through Pitman's Probability (1993) problem 23b, page 221 (for knawledge not school).
Specifically, I am having trouble calculating $E[(X)_3] = G^{(3)}(1)$, with $G^{(k)}(z) = \sum_{i=k}^{\infty}(P(X=i)\cdot(i)_k\cdot z^{i-k}$), where $G(z)$ is the probability generating function of $X$ distributed geometric(p); i.e. number of trials for first success. Pitman claims $E[(X)_k] = G^{(k)}(1)$
Pitman and WolframAlpha give $E[(X)_k] = 6(q/p)^3$. My solution gives $6q^2/p^3$.
Here's my process: $$ \begin{align} G^{(3)}(1) &= q^2p(3)_3 + q^3p(4)_3 + q^4p (5)_3 + \cdots \\ &= q^2p \cdot \Sigma_1,\quad\Sigma_1 = 3\cdot2\cdot 1 \ + 4\cdot 3\cdot 2q\ +5\cdot 4\cdot 3q^2 +\cdots\\ \end{align} $$
Solving for $\Sigma_1$, we do the subtraction trick: $$\begin{align}\Sigma_1 - q\Sigma_1 &= 3\cdot2\cdot (1 + 3q + 6q^2 + 10q^3 + 15q^4+\cdots)\\ &=6\cdot \Sigma_2, \quad \Sigma_2 = 1 + 3q + 6q^2 + 10q^3 + 15q^4+\cdots \end{align} $$
Solving for $\Sigma_2$, we do the old subtraction trick again: $$\begin{align}\Sigma_2 - q\Sigma_2 &= 1 + 2q+ 3q^2 +4q^3+\cdots = \Sigma_3\\ \end{align} $$
Solving for $\Sigma_3$, we do grandpa's subtraction trick again to get: $$\Sigma_3 = 1/(1-q)^2 \Rightarrow \Sigma_2 = 1/(1-q)^3 \Rightarrow \Sigma_1 = 6/(1-q)^4 $$
Hence $E[(X)_3] = q^2 p \cdot \frac{6}{(1-q)^4} = 6q^2/p^3$.
Did my subtractions fail? Are my assumptions wrong? What happened?
Edit: Pitman mentions in problem 23a) that $X$ is distributed $geometric(p)$ on ${0,1,2,...}$, which he explains in problem 6 is equivalent to the standard geometric distribution. I did not do problem 6 and used the wrong geometric distribution. Sad. The clever posters point out the difference more explicitly.
It seems like the issue might be in distinguishing between the geometric distribution and the shifted geometric distribution. Wolfram Alpha uses the standard (non-shifted) geometric distribution, where
$$ \mathbb{P}[X=k]=q^kp $$
where $q=1-p$. For this distribution, you should have
$$ G^{(3)}(1)=(3\cdot2\cdot1)q^3p +\cdots $$
(note the $q^3$). This should then recover the missing factor of $q$ in your calculations.
See the beginning of the Wikipedia article for an explanation of the two distributions.