Prove: for $n$ is positive integer, it's impossible that: $$\exists k \in \mathbb Z, n(n+1)=k^{2}$$
I know that $(n,n+1)=1$, but the process seems odd using it.
$$n^2 < n(n+1) < (n+1)^2$$
Suppose for contradiction that there's some non zero $k$ such that $n(n+1)=k^2$
Then $(n-k)(n+k)=-n$
But one of the numbers $n-k$ or $n+k$ has absolute value > $|n|$.
This is a contradiction.
Below is a a solution that works much more generally than $\, n^2 < n(n+1) < (n+1)^2.\ $ Suppose that $\ n(n\!+\!1) = c^2\,$ in a UFD. Then, since $\,n,\,n\!+\!1\,$ are coprime, as in this proof we deduce that $\, n\!+\!1 = ua^2,\ n = u^{-1} b^2,\,$ for some $\,a,b,\,$ unit $\,u.\,$ So $\, 1 = (n\!+\!1)-n = ua^2\!-u^{-1}b^2,\,$ so scaling by $\,u\,$ yields $\, u = \bar a^2\! -b^2\! = (\bar a-b)(\bar a+b),\,\ \bar a = ua.\,$ Thus $\, \bar a+b = v,\ \bar a-b = v^{-1}\,$ for some unit $\,v,\,$ hence $\, \bar a = (v+v^{-1})/2,\,\ b = (v-v^{-1})/2.\ $
In UFDs like $\,\Bbb Z\,$ with finitely many units, there are only finitely many possibilities for the units $\,v,u\,$ hence the proof reduces to checking only finitely many cases.
U can also see it this way n is integer Arithematic mean will be greater than geometric mean So (n + n+1)/2 is greater than equal to [n(n+1)]^1/2 So (n+1/2)^2 is greater than equal to n(n+1) So for any integer n , (n+1/2)^2 cannot be an integer Now u may say that it would the maximum value But u can see for attaining a lesser value u can only decrease n and n is always integer. So it holds true.