2004 AIME I Problems/Problem 6
Contents
Problem
An integer is called snakelike if its decimal representation satisfies if is odd and if is even. How many snakelike integers between 1000 and 9999 have four distinct digits?
Solution 1
We divide the problem into two cases: one in which zero is one of the digits and one in which it is not. In the latter case, suppose we pick digits such that . There are five arrangements of these digits that satisfy the condition of being snakelike: , , , , . Thus there are snakelike numbers which do not contain the digit zero.
In the second case we choose zero and three other digits such that . There are three arrangements of these digits that satisfy the condition of being snakelike: , , . Because we know that zero is a digit, there are snakelike numbers which contain the digit zero. Thus there are snakelike numbers.
Solution 2
Let's create the snakelike number from digits , and, if we already picked the digits there are 5 ways to do so, as said in the first solution. And, let's just pick the digits from 0-9. This get's a total count of But, this over-counts since it counts numbers like 0213. We can correct for this over-counting. Let's lock the first digit as 0, and permute 3 other chosen digits . There are 2 ways to permute to make the number snakelike, b-a-c, or c-a-b. And, we pick a,b,c from 1 to 9, since 0 has already been chosen as one of the digits. So, the amount we have overcounted by is .
See also
2004 AIME I (Problems • Answer Key • Resources) | ||
Preceded by Problem 5 |
Followed by Problem 7 | |
1 • 2 • 3 • 4 • 5 • 6 • 7 • 8 • 9 • 10 • 11 • 12 • 13 • 14 • 15 | ||
All AIME Problems and Solutions |
The problems on this page are copyrighted by the Mathematical Association of America's American Mathematics Competitions.