I am having difficulty with the following proof. A prime $p$ is said to be a Sophie Germain prime if $2p+1$ is also prime. It is known that if $p$ is a sophie Germain prime, then $2p+1$ is a factor of the Mersenne number $M_p$. For example, $23$ is a sophie Germain prime since $47$ is also prime, so 47 divides $M_{23}$ and thus $M_{23}$ is not a Mersenne prime.
Given the result that $(\frac{2}{47})=1$ (this is Legendre's symbol), prove that $47$ is indeed a factor of $M_{23}$.
I know Legendre's symbol means that $2^{23}\equiv1\mod 47 $ and that $M_{23}$ is of the form $2^{23}-1$. So can I say:
$2^{23}\equiv1\mod 47$
$2^{23}-1\equiv0\mod 47$
$M_{23}\equiv0\mod 47$ so $47$ is indeed a factor.
This question is worth a few marks so I can't help but feel it isn't as simple as this. Can anyone tell me where/if I may have gone wrong?