I started this problem by trying proof by contradiction.
I first noted that the problem stated that $x$ had to be a positive integer, and thus $x=0$ could not be a solution. I then assumed that $x^2+1=n^2$ for some integer $n$ other than $1$. From here I have tried various methods, to no avail:
- Factoring:
$n^2-x^2=1\implies(n+x)(n-x)=1$. It would be nice if I could say $(n+x)=(n-x)=1$ and $(n+x)=(n-x)=-1$. However, the issue here is that $(n+x)$ and $(n-x)$ could take on any value. For example, $(n+x)=2$ and $(n-x)=\frac{1}{2}$, or $(n+x)=3$ and $(n-x)=\frac{1}{3}$. Thus, I ruled out factoring.
- For any number $n$, $n\equiv 0 \pmod4$ or $n\equiv 1 \pmod 4$.
The trouble with this is that I would have to prove the above statement, so I ruled this out.
Does anyone have any tips on how to continue? I feel like this should be an easy proof, but no solutions are coming to me, without having to prove something else.
Your factoring is abosolutely correct. However, since $x,n$ are integers, this gives us $x-n$ is a natural number. Thus $x-n = \pm 1$.
An alternate proof would use that a square can not exist between two consecutive squres and $$x^2 < n^2 < x^2+2x+1$$