I need to calculate $\mathbb{E}(X|Z)$ where $X$, $Y$ are Geometric r.v. and $Z= X+Y$. The conditional distribution of $\mathbb{E}(X|Z)$ is $\frac{1}{n-1}$ (See here: Conditional probability distribution with geometric random variables)
So now, $\mathbb{E}(X|Z) = \sum_{k=1}^{n-1}\frac{k}{n-1}=\frac{n}{2}$. However,$\mathbb{E}(X) = \frac{1}{p}$. And by property of conditional Expectation $\mathbb{E}(\mathbb{E}(X|Z))=\mathbb{E}(X)$. So I get $\frac{n}{2}=\frac{1}{p}$. What am I doing wrong? How do I get $\mathbb{E}(\mathbb{E}(X|Z))= \frac{1}{p}$.