Browse · MathNet
PrintUSA IMO 2003
United States 2003 number theory
Problem
Prove that for every positive integer there exists an -digit number divisible by all of whose digits are odd.
Solution
We proceed by induction. The property is clearly true for . Assume that is divisible by and has only odd digits. Consider the numbers The numbers give distinct remainders when divided by . Otherwise the difference of some two of them would be a multiple of , which is impossible, because neither is a multiple of , nor is the difference of any two of the numbers . It follows that one of the numbers is divisible by , and the induction is complete.
---
Alternative solution.
For an digit number , where , let denote the leftmost digits of . (That is, we consider as an -digit number.) It is clear that we can choose a large odd number such that has at least digits. Assume that has digits, where . Note that the is an odd multiple of . Hence the unit digit of is .
If the rightmost digits of are all odd, then the number satisfies the conditions of the problem, because has only odd digits (the same as those leftmost digits of ) and that is the difference of two multiples of .
If there is an even digit among the rightmost digits of , assume that is the smallest positive integer such that the th rightmost digit of is even. Then number is a multiple of with at least digits. The th rightmost digit is the same as that of and the th rightmost digit of is odd. If the rightmost digits of are all odd, then satisfies the conditions of the problem. If there is an even digit among the rightmost digits of , assume that is the smallest positive integer such that the th rightmost digit of is even. Then . Set . We can repeat the above process of checking the rightmost digits of and eliminate the rightmost even digits of , if there is such a digit among the rightmost digits of . This process can be repeated for at most times because the unit digit of is . Thus, we can obtain a number , for some nonnegative integer , such that is a multiple of with its rightmost digits all odd. Then is a number that satisfies the conditions of the problem.
---
Alternative solution.
Consider all the nonnegative multiples of that have no more than digits. There are such multiples, namely, . For each , we define an -digit binary string . If is a -digit number, the leftmost digits of are all 's, and the th digit, , of is (or ) if the th rightmost digit of is odd (or even). (For example, for , , and .) There are -digit binary strings. It suffices to show that is one-to-one, that is, for . Because then there must be a with being a string of 's, that is, has digits and all of them are odd.
We write and in binary system. Then there is a smallest positive integer such that the th rightmost digit in the binary representations of and are different. Without loss of generality, we assume that those th digits for and are and , respectively. Then and , where are positive integers such that divides both and and that . Note that adding to will change the parity of the th rightmost digit of while not affect the rightmost digits of . Note also that adding (or ) to (or ) will not affect the last digits of (or ). Hence the th rightmost digits in the decimal representations of and have different parities. Thus , as desired.
---
Alternative solution.
For an digit number , where , let denote the leftmost digits of . (That is, we consider as an -digit number.) It is clear that we can choose a large odd number such that has at least digits. Assume that has digits, where . Note that the is an odd multiple of . Hence the unit digit of is .
If the rightmost digits of are all odd, then the number satisfies the conditions of the problem, because has only odd digits (the same as those leftmost digits of ) and that is the difference of two multiples of .
If there is an even digit among the rightmost digits of , assume that is the smallest positive integer such that the th rightmost digit of is even. Then number is a multiple of with at least digits. The th rightmost digit is the same as that of and the th rightmost digit of is odd. If the rightmost digits of are all odd, then satisfies the conditions of the problem. If there is an even digit among the rightmost digits of , assume that is the smallest positive integer such that the th rightmost digit of is even. Then . Set . We can repeat the above process of checking the rightmost digits of and eliminate the rightmost even digits of , if there is such a digit among the rightmost digits of . This process can be repeated for at most times because the unit digit of is . Thus, we can obtain a number , for some nonnegative integer , such that is a multiple of with its rightmost digits all odd. Then is a number that satisfies the conditions of the problem.
---
Alternative solution.
Consider all the nonnegative multiples of that have no more than digits. There are such multiples, namely, . For each , we define an -digit binary string . If is a -digit number, the leftmost digits of are all 's, and the th digit, , of is (or ) if the th rightmost digit of is odd (or even). (For example, for , , and .) There are -digit binary strings. It suffices to show that is one-to-one, that is, for . Because then there must be a with being a string of 's, that is, has digits and all of them are odd.
We write and in binary system. Then there is a smallest positive integer such that the th rightmost digit in the binary representations of and are different. Without loss of generality, we assume that those th digits for and are and , respectively. Then and , where are positive integers such that divides both and and that . Note that adding to will change the parity of the th rightmost digit of while not affect the rightmost digits of . Note also that adding (or ) to (or ) will not affect the last digits of (or ). Hence the th rightmost digits in the decimal representations of and have different parities. Thus , as desired.
Techniques
Prime numbersOtherRecursion, bijectionInduction / smoothing