$n,k$ are positive integers and $n>k$, solve the equation : $$\frac{n(n+1)}{2}=2014+2k.$$
the first thing I did is to write the LHS as $(2n+1)^2$ but I face an equation like $ak+b=m^2$, I know it has infinitely many solution, I know how to deal with this kind of equation if the LHS in the latter one is a second degree polynomial (doing some factorization), but I can't do the same in this case, Can you show me to do it ?
We have $4028=n(n+1)-4k$
As we need $n>k, -k>-n$
$ n(n+1)-4k>n(n+1)-4n=n^2-3n$
$\implies n^2-3n<4028$
the roots of $n^2-3n-4028=0$ are $\frac{3\pm\sqrt{3^2-4\cdot1\cdot(4028)}}2=\frac{3\pm\sqrt{16221}}2$
$\implies 0<n<\approx 64.98$
As Inceptio has identified $n\ge 63, n=63, 64$