Skip to main content
OlympiadHQ

Browse · MathNet

Print

Argentine National Olympiad 2016

Argentina 2016 number theory

Problem

Let be the digit sum of , . Find the minimum value of .
Solution
The minimum of is , attained already for .

Since we have , and so for . Thus is among the numbers Clearly never holds, so to prove it suffices to show that is also impossible.

Suppose on the contrary that holds for some . Consider the number . Because ends in or , the digit sum of is . Now observe that (), hence ; thus is divisible by . Let its digits at odd (respectively even) positions have sum (respectively ). Then . On the other hand equals the digit sum of . Hence , implying that is possible only if . However then , which is a contradiction. The solution is complete.
Final answer
19

Techniques

Modular ArithmeticDivisibility / Factorization