Maths Olympiad Prep

Library / Singapore Mathematical Olympiad (SMO) /24 of 52

Singapore Mathematical Olympiad (SMO)

Number theory Difficulty 5.7 AIME, harder Prove it Singapore

Find all 6-digit integers nn such that nn is a perfect square and that the number formed by the last 3 digits of nn is 1 more than the number formed by the first 3 digits of nn.

Solution

Let n=y2n = y^2 and xx be the number formed by the first 3 digits of nn. Note that yy is a 3-digit number. Then
y2=1000x+x+1=1001x+1⇒(y−1)(y+1)=7×11×13x. y^2 = 1000x + x + 1 = 1001x + 1 \quad \Rightarrow \quad (y-1)(y+1) = 7 \times 11 \times 13x.

Since y≤999y \le 999, not all of 7, 11, 13 can be factors of y−1y-1. Thus we have 6 cases:

Case 1: 77∣y+1,13∣y−177 \mid y+1, 13 \mid y-1. Then y+1=77α≤1000y+1 = 77\alpha \le 1000 and so α≤12\alpha \le 12. Testing α=1,2,…,12\alpha = 1, 2, \dots, 12, we see that only α=11\alpha = 11 works. We get y=846y = 846 and n=715716n = 715716. The other 5 cases are 7×13∣y+1,11∣y−17 \times 13 \mid y+1, 11 \mid y-1; 11×13∣y+1,7∣y−111 \times 13 \mid y+1, 7 \mid y-1; 7∣y+1,11×13∣y−17 \mid y+1, 11 \times 13 \mid y-1; 11∣y+1,7×13∣y−111 \mid y+1, 7 \times 13 \mid y-1; 13∣y+1,7×11∣y−113 \mid y+1, 7 \times 11 \mid y-1. They yield the solutions n=528529,183184,328329,75076,24025n = 528529, 183184, 328329, 75076, 24025. The 2 5-digit numbers are discarded and we have 4 solutions.

Want a route through all this instead of an archive? The track puts 2,604 problems in a working order, from Junior Challenge level to the IMO shortlist.

Source: MathNet, licensed CC-BY-4.0. Statement reproduced verbatim; metadata (topic, difficulty) added by this project.