Show that the solution for the Diophantine equation $x^2 - y^2 = N$ is unique if and only if $\mid N \mid$ or $\frac{\mid N \mid}{4}$, respectively, is $1$ or prime.
I have an idea of how to show $\mid N \mid$ or $\frac{\mid N \mid}{4}$ is $1$ or prime $\Rightarrow$ the solution for the Diophantine equation is unique.
We can show this by going through the separate cases $ \mid N \mid = 1$ or $p$ and $\frac{\mid N \mid}{4} = 1 $ or $p$. For example, if $\mid N \mid = 1$, then $x^2 - y^2 = (x -y)(x+y) = 1$ or $(x -y)(x+y) = -1 $. For $(x -y)(x+y) = 1$, we have $x = 1, y = 0$ and $x = -1, y = 0$ as solutions (more than one solution? Doesn't uniqueness imply only one?).
How do I show the other direction?: The solution for the Diophantine equation is unique $\Rightarrow$ $\mid N \mid$ or $\frac{\mid N \mid}{4}$ is $1$ or prime.