Find all positive integer n such that n2+2n is a perfect square.
Let 2n+n2=k2. Then 2n=(k−n)(k+n)⟹k+n=2a,k−n=2b where a≥b,a+b=n