I have this problem of
$$ \sqrt{1+2+3+4+\ldots+n}=m $$
where both n and m are whole positive numbers . I am asked to find the lowest and second lowest possible n that fulfills the equation apart from 0 and 1.
I have rewritten the sum as $1+2+3+4+\ldots+n = n(n+1)/2$ to obtain
$$ n(n+1)/2=m^2 $$
I get stuck at this stage. I have tried defining $j=2m^2$ to get the simplest possible quadratic equation, but with no luck:
$$ n^2+n-j=0 $$
The answers are 8 and 49, but I need to show this.
Any good ideas or inspiration?