I haven't been able to answer this question. Here's what I have so far ...
The sum of the first $n$ consecutive positive integers can be represented algebraically using the formula for the sum of an arithmetic series:
$$ S_n = \frac{1}{2}n(2a + (n-1)d) $$
In this case $a = 1$ and $d = 1$, so this reduces to:
$$ S_n = \frac{1}{2}n(n + 1) $$
So my question becomes, is there an $n$ such that:
$$ \frac{1}{2}n(n + 1) = p^2 $$
where $p$ is prime?
I re-arranged this to: $$ n^2 + n -2p^2 = 0 $$
and tried to see if the quadratic equation would help but I didn't get very far.
Am I on the right track? Any better ideas?
$n$ and $n+1$ are coprime numbers, hence if their product equals $2p^2$ either they are $1$ and $2p^2$ or $2$ and $p^2$ (there are no other ways for writing $2p^2$ as the product of two coprime integers), but both chances do not lead to solutions.