Skip to main content
OlympiadHQ

Browse · MathNet

Print

National Math Olympiad

Slovenia number theory

Problem

Find all positive integers for which there exists a multiple of with the sum of its digits equal to .
Solution
Denote the sum of the digits of a positive integer by . Then . We notice that for the first few multiples of the sum of the digits is always even. The first multiple for which the sum of the digits is odd is and this sum is . Using these two examples we can construct multiples of with the sum of the digits equal to for almost all positive integers .

The number of the form with repeated times in a row is divisible by and the sum of the digits is . Hence, for all even there exists a multiple of with the sum of its digits equal to .

As we have just seen we can get the sum of from . Any number of the form with followed by repetitions of is divisible by and the sum of its digits is . So, for all odd integers greater than or equal to , there exists a multiple of with the sum of the digits equal to .

The only positive integers still in question are , , , and . Let us show that in these cases we cannot find multiples of with the required sum of digits.

Let be a multiple of . Assume that . Let denote the sum of the digits of in the odd positions and let be the sum of the digits in the even positions. Since , we have . The criterion for divisibility by implies that is divisible by , but on the other hand we have . So, or . We conclude that is even and no multiple of can have the sum of its digits equal to , , , or .
Final answer
All even positive integers and all odd integers at least 11; no multiple of 11 has digit sum 1, 3, 5, 7, or 9.

Techniques

Divisibility / Factorization