Maths Olympiad Prep

Library / /3 of 63

Algebra Difficulty 5.7 AIME, harder Prove it Japan

How many 3-digit numbers are there that can appear as the top three digits of a 6-digit number, which is a perfect square?

Solution

Since (n+1)2n2=2n+1(n+1)^2 - n^2 = 2n + 1 holds for any positive integer nn, the difference of any contiguous pair of perfect squares, larger of which is no more than 5002=250000500^2 = 250000, does not exceed 2499+1=9992 \cdot 499 + 1 = 999. From this fact it follows that for any positive integer mm satisfying 100m<250100 \le m < 250, there exists a perfect square of 6 digits whose top 3 digits coincide with mm. For if there is no such perfect square for some such mm, then the smallest perfect square greater than or equal to 100(m+1)100(m+1) and the largest perfect square less than or equal to 1000m1000m will constitute a contiguous pair of perfect squares less than or equal to 5002500^2 and with difference more than 10001000.

On the other hand, the difference of any contiguous pair of perfect squares, the smaller of which is greater than or equal to 5002500^2, is at least 2500+1=10012 \cdot 500 + 1 = 1001, the top 3 digits of 5002,5012,,9992500^2, 501^2, \dots, 999^2 are all distinct.

Consequently, the numbers that can appear as the top 3 digits of a 6-digit perfect square are every mm satisfying 100m<250100 \le m < 250 and the top 3 digits of the numbers 5002,5012,,9992500^2, 501^2, \dots, 999^2, and there are exactly 150+500=650150 + 500 = 650 such numbers.

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

Source: MathNet, licensed CC-BY-4.0. Statement and solution reproduced as published; topic and difficulty added by this site.