Three digits have been added to a natural number A at its end (for example, 123 ->123456). The new turned out to be the sum of all natural numbers from 1 to A. How can I find A?
P.S. The sum of the numbers from 1 to A equals $\frac{A(A+1)}{2}$, but what to do next?
If $B$ is the number formed by the three added digits then the new number is $1000A+B$ and so $$1000A+B=\frac{A(A+1)}2\ .$$ This is easily rearranged to $$A(A-1999)=2B\ ;$$ it is also obvious from the conditions of the problem that $A>0$ and $0\le B\le999$. So we have $$A>0\ ,\quad 0\le A(A-1999)\le1998$$ and the only solution is $A=1999$.