Browse · MathNet
PrintXXVII Olimpiada Matemática Rioplatense
Argentina number theory
Problem
For every positive integer , we write for the sum of its digits. For example, . We say a positive integer is rioplatense if there is a positive integer such that . Find all positive integers that are rioplatenses.
Solution
For every positive integer , we know that and have the same remainder modulo . Then, has the same remainder as and so, it is a multiple of . Therefore, if a number is rioplatense, then it is a multiple of .
Now we are going to show that every multiple of is rioplatense. We will prove by induction on that every integer divisible by with at most digits can be written as for an integer with at most digits.
For , the result is immediate, since , and . Assume the result holds for and consider an integer multiple of with digits. We have , since is the smallest multiple of with digits. Let us call . When dividing by , we obtain a quotient and a remainder . Note that , since . On the other hand, and it is a multiple of , since and both and are multiples of , which implies that and so, it has at most digits. By the induction assumption, there exists such that .
Take , where is the quotient . Note that has digits and as desired.
Now we are going to show that every multiple of is rioplatense. We will prove by induction on that every integer divisible by with at most digits can be written as for an integer with at most digits.
For , the result is immediate, since , and . Assume the result holds for and consider an integer multiple of with digits. We have , since is the smallest multiple of with digits. Let us call . When dividing by , we obtain a quotient and a remainder . Note that , since . On the other hand, and it is a multiple of , since and both and are multiples of , which implies that and so, it has at most digits. By the induction assumption, there exists such that .
Take , where is the quotient . Note that has digits and as desired.
Final answer
All positive integers divisible by 3.
Techniques
OtherInduction / smoothingExistential quantifiers