I've been trying to prove the following and I'm really stuck.
Consider $N\sim \mathrm{Geometric}\left(p\right)$, and let $X=(-1)^N$. Show that the probability mass function of $X$ is given by
$$ p_X\left(k\right) = \begin{cases} \frac{1}{2-p}, \qquad k=1,\\ \frac{1-p}{2-p},\qquad k=-1. \end{cases} $$
I've managed to compute the expected value of $X$, $\mathbb{E}\left[X\right] = \frac{p}{2-p}$, and the variance as well, $\mathrm{Var}\left(X\right) = \frac{4\left(1-p\right)}{\left(2-p\right)^2}$. But I don't know if these values are helpful or not.
I am looking for hints. Thank you very much in advance.