ref: 2.11 Question 2. Gelman et al.: Bayesian Data Analysis 2nd ed
Consider two coins, $C_{1} \text{ and } C_{2}$ with the following characteristics: $Pr(heads|C_{1}) = 0.6$ and $Pr(heads|C_{2})$ = 0.4. Choose one of the coins at random and imagine spinning it repeatedly. Given that the first two spins from the chosen coin are tails, what is the expectation of the number of additional spins until a head shows up?
The solution manual states: "If we knew the coin that was chosen, then the problem would be simple: if a coin has probability $\pi$ of landing heads, and N is the number of additional spins required until a head, then $$ E[N|\pi] = \pi + 2 *(1-\pi)\pi + 3 * (1-\pi)^{2}\pi + ... = \frac{1}{\pi} $$
The rest of the author's approach makes sense to me, save this initial setup -
I don't understand where the author derived this expected value. To my eyes $N \sim \text{Geom(}\pi)$ and $E[N|\pi] = \frac{1-\pi}{\pi}$
Any assistance that can steer me in the right direction would be greatly appreciated!