Fermat Squares

By Fermat's Little Theorem, the number $$x = \dfrac{2^{p−1} − 1}{p}$$ is always an integer if $$p$$ is an odd prime. For what number of values of $$p$$ is $$x$$ a perfect square?

×