Random variables are independent and $\mathbb{P}\{X=n\}=\mathbb{P}\{Y=n\}=p, \ n=1,\dots,N$, and $N\in \mathbb{N}$. Find $p$ and $\mathbb{E}(X\mid X+Y=n)$ for $n\in\mathbb{N}$
So the first part:
$\sum^{N}_{n=1} \mathbb{P}\left\{ X=n\right\} =Np=1 \rightarrow p=\frac{1}{N}$
But how do I calculate expected value?