Let $$m^2-n^2=r,$$ where $\gcd (m,n) =1,\;m>n>0,\;$ $m$ and $n$ are of opposite parity, and $r$ is an odd positive integer.
Then, according to my study materials, determining all the $(m,n)$ solutions involves systematically trying every $n$ such that $1\leq n<\frac r2.$
(For example: given $m^2-n^2=21,$ the only solutions $(5,2)$ and $(11,10)$ are determined by trying $n=1,2,3,...,10.)$
But why the upper bound $\frac r2$ for $n\,?$
On a related note, for $m^2+n^2=r$ instead, I am able to see that $1\leq n<\sqrt \frac r2.$
(Please correct me, though, if I'm wrong.)
P.S. This Question is related (though not a duplicate).