Skip to main content
OlympiadHQ

Browse · MathNet

Print

40th Hellenic Mathematical Olympiad

Greece number theory

Problem

For the various values of the positive integer , determine all positive integers which are perfect squares and in their decimal representation have times the digit and one time the digit .
Solution
Answer: and .

Proof. Since a perfect square cannot have its last digit , must be of the form: where the digit there exists times, .

Working mod , then , , where is a positive integer, we can see that only in the case results a positive integer leading to . Then we have or equivalently Since is a positive integer, the discriminant of the equation (2) must be perfect square, that is must be perfect square. Thus we must have for some odd integer . If , , then: with . We distinguish cases with respect to :

If , then , and . If , then , and . * If , since , from equation (3) we get: and so , absurd.
Final answer
25 and 225

Techniques

Techniques: modulo, size analysis, order analysis, inequalitiesFactorization techniques