Let $ X_1,X_2,X_3 ,\ldots$ be a sequence of i.i.d. random variables with mean $1$. If $N$ is a geometric random variable with the probability mass function $\mathbb{P}(N=k)=\dfrac{1}{2^k}$;
$k=1,2,3,\ldots$ and it is independent of the $X_i$'s, then $\mathbb{E}(X_1+X_2+\ldots+X_N)=$?
My work:
Since mean of $X_i$s are $1$, so $\frac{X_1+X_2+\ldots+X_N}{N}=1$. Hence $\mathbb{E}(X_1+X_2+\ldots+X_N)=\mathbb{E}(N)=\sum_{k=1}^{\infty}k\mathbb{P}(N=k) = \sum_{k=1}^\infty \dfrac{k}{2^k}=2$.
Is my solution correct? Is this the right process to do it? Help please. Thanks.
Only a way to solve it correctly. In the answers of Ant and André it is explained what you did wrong.
If $S_N:=X_1+\cdots+X_N$ then: $$\mathbb ES_N=\sum_{k=1}^{\infty}\mathbb E(S_N\mid N=k)\Pr(N=k)$$
Observe that $\mathbb E(S_N\mid N=k)=\mathbb ES_k=\mathbb EX_1+\cdots+\mathbb EX_k=k$.
I leave the rest to you.
Edit
To explain why $\mathbb E(S_N\mid N=k)=\mathbb ES_k$, observe that $\left\{ S_{N}\in A\wedge N=k\right\} =\left\{ S_{k}\in A\wedge N=k\right\} $ for any measurable $A$, leading to:$$\Pr\left(S_{N}\in A|N=k\right)=\frac{\Pr\left(S_{N}\in A\wedge N=k\right)}{\Pr\left(N=k\right)}=\frac{\Pr\left(S_{k}\in A\wedge N=k\right)}{\Pr\left(N=k\right)}=\Pr\left(S_{k}\in A\right)$$
The last equation is a consequence of the fact that $N$ and $S_k$ are independent. So the distribution of $S_N$ under condition $N=k$ is the same as the distribution of $S_k$.