I have seen this question.
However, mine is slightly different.
Let $p,q\in (0,1), p+q=1$. Assume that random variables $X$ and $Y$ are independent and both have the geometric distribution with parameters $p,q$, i.e.,
$$P(X=k)=P(Y=k)=q^kp\,,$$
where $k\in\mathbb{N}_0=\{0,1,2,...\}$.
I would like to show that
$$P(X=k\mid X+Y=n)=\frac{1}{n+1}$$
The questions I have seen here seem to arrive to the conclusion that it's equal to $\frac{1}{n-1}$. How do I arrive to $\frac{1}{n+1}$?
We have: $$P(X=k\mid X+Y=n)=\frac{P((X=k) \cap (X+Y=n))}{P(X+Y=n)}$$ Now: $$\begin{align} P((X=k) \cap (X+Y=n))~&=~P((X=k) \cap (Y=n-k))\\&=P(X=k)\, P(Y=n-k)\\&=q^k p\;q^{n-k}p\\&=q^n p^2\end{align} $$ whereas $$\begin{align} P(X+Y=n)&=\sum_{i=0}^n P((X=i) \cap (Y=n-i))\\&=\sum_{i=0}^n P(X=i) \, P(Y=n-i)\\&=\sum_{i=0}^n q^i p\, q^{n-i} p\\&=\sum_{i=0}^n q^n p^2\\&= (n+1)\,q^n p^2 \end{align}$$ and you only have to divide to get the result.