Difference between revisions of "2003 USAMO Problems/Problem 1"
m (→Solution 3 (Construct digits of exemplar.)) |
m (→Solution 3 (Construct digits of exemplar.)) |
||
Line 30: | Line 30: | ||
<math>5^n \pmod {10} \equiv 5</math>. | <math>5^n \pmod {10} \equiv 5</math>. | ||
− | <math>2^k 5^n \ | + | <math>2^k 5^n \pmod {10^{k +1} } \equiv 10^k 5^{n-k} \equiv 5 \cdot 10^k</math>. |
− | For any <math>n</math>, we can construct a | + | For any <math>n</math>, we can construct a <math>a = 5^n \cdot \sum_{0 \leq i < n}{2^{x_i}}</math>: |
<math>x_0 = 1</math> | <math>x_0 = 1</math> | ||
Line 46: | Line 46: | ||
By construction, the digits in all the places up through <math>10^{n-1}</math> are odd, and since <math>a<10^n</math>, there are no other digits. | By construction, the digits in all the places up through <math>10^{n-1}</math> are odd, and since <math>a<10^n</math>, there are no other digits. | ||
+ | In fact, if <math>A_m = a</math> that solves the case <math>n=m</math>, then <math>A_{m+1} \mod 10^ m \equiv A_m</math>. | ||
Note that in some cases (like <math>n=5</math>) , both of <math>x_{n-1} \in \{0,1\}</math> yield distinct numbers <math>a-5\cdot10^{n-1}</math> and <math>a</math> with all odd digits. | Note that in some cases (like <math>n=5</math>) , both of <math>x_{n-1} \in \{0,1\}</math> yield distinct numbers <math>a-5\cdot10^{n-1}</math> and <math>a</math> with all odd digits. |
Revision as of 21:14, 3 March 2023
Contents
Problem
(Titu Andreescu) Prove that for every positive integer there exists an -digit number divisible by all of whose digits are odd.
Solutions
Solution 1
We proceed by induction. For our base case, , we have the number 5. Now, suppose that there exists some number with digits, all of which are odd. It is then sufficient to prove that there exists an odd digit such that is divisible by . This is equivalent to proving that there exists an odd digit such that is divisible by 5, which is true when . Since there is an odd digit in each of the residue classes mod 5, exists and the induction is complete.
Solution 2
First, we note that there are digit numbers with only odd digits. Now, we will prove that none of these numbers have the same residue mod , and therefore one of them must be 0 mod .
Proof by contradiction:
Assume we have two distinct numbers and with only odd digits that leave the same residue mod . Then, subtracting the larger from the smaller would yield a new number that is a multiple of and has only even digits. We could then halve all of the digits in that number to get a second multiple of with at most n digits that only uses the digits 0 through 4.
Lemma: Every multiple of with n digits or less has a 5 as one of its digits.
All numbers of this type can be written as . Then, let have factors of in it. (, or else our number would have more than n digits). So, we have for some odd a. Now is an odd multiple of 5 () with x zeroes after it, and all multiples of 5 end in 5. Therefore, always contains a 5 as its digit, and we have proven our lemma.
By our lemma, our number with only the digits 0 through 4 cannot be a multiple of , and so we have reached a contradiction. QED
Note: Not only does this prove the desired claim that there exists such a number, but it also proves that there is exactly one such number.
Solution 3 (Construct digits of exemplar.)
.
.
For any , we can construct a :
(this makes the place of odd, without changing the the smaller place digits).
, with digits in place odd, for .
Since , .
By construction, the digits in all the places up through are odd, and since , there are no other digits.
In fact, if that solves the case , then .
Note that in some cases (like ) , both of yield distinct numbers and with all odd digits. has digits, and so is needed for padding.
Alternate solutions are always welcome. If you have a different, elegant solution to this problem, please add it to this page.
See also
2003 USAMO (Problems • Resources) | ||
Preceded by First question |
Followed by Problem 2 | |
1 • 2 • 3 • 4 • 5 • 6 | ||
All USAMO Problems and Solutions |
The problems on this page are copyrighted by the Mathematical Association of America's American Mathematics Competitions.