Browse · MathNet
PrintJapan Mathematical Olympiad
Japan algebra
Problem
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 holds for any positive integer , the difference of any contiguous pair of perfect squares, larger of which is no more than , does not exceed . From this fact it follows that for any positive integer satisfying , there exists a perfect square of 6 digits whose top 3 digits coincide with . For if there is no such perfect square for some such , then the smallest perfect square greater than or equal to and the largest perfect square less than or equal to will constitute a contiguous pair of perfect squares less than or equal to and with difference more than .
On the other hand, the difference of any contiguous pair of perfect squares, the smaller of which is greater than or equal to , is at least , the top 3 digits of are all distinct.
Consequently, the numbers that can appear as the top 3 digits of a 6-digit perfect square are every satisfying and the top 3 digits of the numbers , and there are exactly such numbers.
On the other hand, the difference of any contiguous pair of perfect squares, the smaller of which is greater than or equal to , is at least , the top 3 digits of are all distinct.
Consequently, the numbers that can appear as the top 3 digits of a 6-digit perfect square are every satisfying and the top 3 digits of the numbers , and there are exactly such numbers.
Final answer
650
Techniques
IntegersLinear and quadratic inequalitiesOther