1993 British Mathematical Olympiad, Round 1, Question 1
Find, showing your method, a six-digit integer $n$ with the following properties:
- $n$ is a perfect square,
- the number formed by the last three digits of $n$ is exactly one greater than the number formed by the first three digits of $n$. (Thus $n$ might look like $123124$, although this is not a square.)
I gave it a try, albeit number theory not being a strong suit of mine. $$\text{n = }\overline{ABCABD}\text{, where } D = C +1$$ $$n = 10^5\times A + 10^4\times B + 10^3\times C + 10^2\times A + 10^1\times B + 10^0\times D \\=A(10^5+10^2) + B(10^4+10) + C(10^3+10^0)+1\qquad\qquad\,$$ $$\\n-1 = (10^3+1)\times(10^2\times A+10^1\times B + 10^0 \times C)\\\frac{n-1}{1001} = \overline{ABC}$$ $\text{The question then becomes:}\\\text{Find } r\in\mathbb{Z^+}\,(r = \overline{ABC})\text{ such that } $ $$n = 1001r + 1\\10^5\le n\le 10^6-1,\,n\in\mathbb{Z^+}$$ This, however, appears to have gotten me nowhere as I have no idea how to solve that linear equation.
SIDE NOTE: Using Python, I found that $r\in\{{183,328,528,715}\}$. Therefore, $n\in\{{183184,328329,528529,715716}\}$.
However, I would like to see a mathematical solution.