Olympiad Maths Prep

Track / Stage 5 / 359 of 400 #959 of 2000

Problem 959

AIME late
Number theory Difficulty 5.9 Prove it

In the decimal representation of an integer A, all digits except the first and last are zeros, the first and last are non-zero, and the number of digits is no less than three.

Prove that AA is not a perfect square.

This one wants a proof. Work it on paper, read the official solution, then mark yourself honestly — the ladder only means something if the record is true.

Official solution

Suppose that AA is a perfect square. Then its last digit will be 1,4,5,61, 4, 5, 6 or 9. But a perfect square cannot end in 05 or 06. Therefore, the number AA ends in one of the digits 1,4,91, 4, 9. Let xx be the square root of the last digit of the number AA. Let kk be the number of zeros in the number Ax2A - x^2. (We can assume that k>2k > 2.) Since the number xx is not divisible by 5, exactly one of the numbers Ax,A+x\sqrt{A} - x, \sqrt{A} + x is divisible by 5, and hence by 5k5^k. Therefore, one of these numbers is at least 5k5^k, and the other is at least 5k65^k - 6, so the product of these numbers is at least 5k(5k6)>5k92k=910k5^k (5^k - 6) > 5^k \cdot 9 \cdot 2^k = 9 \cdot 10^k, which contradicts the (k+1)(k+1)-digit nature of the number AA. Thus, the number AA cannot be a perfect square.

Source: NuminaMath-1.5, licensed Apache-2.0. Statement and solution reproduced as published; topic, difficulty and ordering added by this site.