Browse · MathNet
PrintNational Math Olympiad
Slovenia number theory
Problem
For which positive integers does there exist a multiple of , such that the sum of its digits is equal to ?
Solution
Any number with the sum of the digits equal to is a power of , so it cannot be a multiple of . Let us try and find a multiple of such that the sum of its digits will be equal to . This number must have two digits equal to . We check the first few positive integers with this property. The numbers , and are not divisible by , but is.
The positive integer , made by repetitions of the number , has the sum of the digits equal to and is obviously a multiple of . Hence, it is also a multiple of . We conclude that for all even positive integers there exists an integer , which is a multiple of with the sum of its digits equal to .
It is easy to find a multiple of with the sum of the digits equal to . The number has these properties. Any number of the form , which consists of followed by repetitions of , has the sum of the digits equal to and is a multiple of . So, for all odd positive integers there exists an integer , which is a multiple of , such that the sum of the digits of is equal to .
We have shown that all positive integers except have the required property.
The positive integer , made by repetitions of the number , has the sum of the digits equal to and is obviously a multiple of . Hence, it is also a multiple of . We conclude that for all even positive integers there exists an integer , which is a multiple of with the sum of its digits equal to .
It is easy to find a multiple of with the sum of the digits equal to . The number has these properties. Any number of the form , which consists of followed by repetitions of , has the sum of the digits equal to and is a multiple of . So, for all odd positive integers there exists an integer , which is a multiple of , such that the sum of the digits of is equal to .
We have shown that all positive integers except have the required property.
Final answer
All positive integers greater than 1
Techniques
Factorization techniquesIntegers