Browse · MathNet
PrintNational Math Olympiad
Slovenia number theory
Problem
For which positive integers does there exist a multiple of 13, 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 and the remaining digits must be . We check the first few positive integers with this property. The numbers , and are not divisible by , but is.
Similarly, let us try and find a positive integer with the sum of the digits equal to . Let where . The remainder of when divided by is . The remainder of when divided by is . For we get , for we get and for we get . The sum of the remainders given by , and is , so divides .
Any number of the form with repetitions of is a multiple of , so it is also a multiple of . The sum of its digits is equal to . Any number of the form where is followed by repetitions of is also a multiple of and has the sum of the digits equal to .
We have shown that all positive integers except have the required property.
Similarly, let us try and find a positive integer with the sum of the digits equal to . Let where . The remainder of when divided by is . The remainder of when divided by is . For we get , for we get and for we get . The sum of the remainders given by , and is , so divides .
Any number of the form with repetitions of is a multiple of , so it is also a multiple of . The sum of its digits is equal to . Any number of the form where is followed by repetitions of is also a multiple of and has the sum of the digits equal to .
We have shown that all positive integers except have the required property.
Final answer
All positive integers except 1
Techniques
Modular ArithmeticPrime numbers