Skip to main content
OlympiadHQ

Browse · MathNet

Print

Japan Mathematical Olympiad

Japan number theory

Problem

Suppose we denote by the decimal representation for a positive integer . Suppose three distinct positive integers satisfy all of the following conditions: coincides with the number obtained by removing a 6 from . coincides with the number obtained by removing a 6 from . * The number of digits for coincides with the number of digits for , and is a multiple of . Determine the smallest possible value that can have satisfying these conditions.
Solution
We note that under the hypothesis the top digits of and must be different, since if they are the same, then we get which violates the condition that is a multiple of . Therefore, we must have the top digit of or to be 6, but if the top digit of is 6, then the fact that forces to have more digits than , contradicting the assumption. Therefore, the top digit of must be 6. Furthermore, since the number of digits of and are the same, must be one of the numbers 2, 3, 4, 5, 6. Let us call this number .

Next, we will show that if is the minimum number satisfying the conditions, then the 6 to be removed from to get must be one of the last three digits of . First we note that the minimality of implies that cannot be a multiple of 10. For if the last digit of is 0, this forces the last digit of both and to be 0, and thus dividing every one of by 10, we get a triple satisfying all the conditions, thereby violating the minimality of . Now if the 6 to be removed from to get is not among the last three digits of , then we must have . But from the fact it follows that , from which it follows that is a multiple of 10, as , but this is impossible.

Next, we separate the cases depending on which digit the 6 to be removed from lies. We keep in mind that is not a multiple of 10 in the following discussion.

(1) Case when 6 to be removed is the last digit of . Since the fact that determines the last digit of , which would be equal to the next to the last digit of . The consideration in terms of , then determines the next to the last digit of , which equals the third digit from the bottom of . Continuing in this fashion, one can determine the digits of one by one from the bottom up. If the -th digit from the bottom of equals 6, then we let be what are determined thus far. If this pair satisfies , then with determined from by removing the 6 in the last digit of , we have the triple satisfying all the conditions. If the value of is given, then the obtained in this way will be the minimum one under the condition (1). Checking for each of the cases we see that with , we get , and the corresponding gives the minimum.

(2) Case when 6 to be removed is next to the last digit of . From and we can determine the last digit of to be 2, 4, 6 or 8 if , and be 5 if or 5. If we check each of these possibilities as we have done in the case (1), we see that in each case the obtained has at least 6 digits.

(3) Case when 6 to be removed is the third digit from the bottom of . From and we can get that the last two digits of are 25 and 75 respectively. If we check these cases further as we have done in the case (1), we see that in each case we get a having at least 6 digits.

Consequently, we can conclude that the smallest possible desired is 15348.
Final answer
15384

Techniques

Modular ArithmeticIntegers