Question 175Positive integers $a$, $p$ satisfy: $p = 2^a - 1$. Find all $a$ such that $\frac{1}{2}(p^2+1)$ is a square of an integer.