Browse · MathNet
PrintXXXI Brazilian Math Olympiad
Brazil number theory
Problem
Let , primes. Prove that there exists a multiple of whose digits sum in decimal base is positive and at most 3.
Solution
First notice that is a multiple of , so we are done if and are not coprime. If and are coprime, since is prime, by Fermat's theorem or . If , we are done: the sum of the digits of is . From now on, suppose that .
Consider the minimum positive integer such that , that is, . Then , that is, the possible values of are and . If , , which is not acceptable. So , which means that are all distinct mod .
Now let and . Since , . This and the obvious fact that implies .
So either there are integers such that , in which case , whose digit sum is , is a multiple of , or , in which , whose digit sum is , is a multiple of , or , which is analogous to the previous case. So, in all cases, we are done.
Consider the minimum positive integer such that , that is, . Then , that is, the possible values of are and . If , , which is not acceptable. So , which means that are all distinct mod .
Now let and . Since , . This and the obvious fact that implies .
So either there are integers such that , in which case , whose digit sum is , is a multiple of , or , in which , whose digit sum is , is a multiple of , or , which is analogous to the previous case. So, in all cases, we are done.
Techniques
Fermat / Euler / Wilson theoremsMultiplicative orderPigeonhole principlePrime numbers