Take a test Sign in 中文
← Exercise 421 →
Search
Go to
{{searchResults.length}} {{searchResults.length === 1 ? 'result' : 'results'}} for “{{searchWords}}” No results found for “{{searchWords}}” × back to contents
AIME Contents · by chapter
Basic Counting (90)
---- (44)
Probability (91)

Exercises and their solutions

Exercise 421
An integer is called parity-monotonic if its decimal representation $a_{1}a_{2}a_{3}\cdots a_{k}$ satisfies $a_{i}<a_{i+1}$ if $a_{i}$ is odd, and $a_{i}>a_{i+1}$ if $a_{i}$ is even. How many three-digit parity-monotonic integers are there?
← Back to Problem 421
Solution
  1. After an odd digit $d$ come the $9-d$ larger digits; after an even digit $d$ come the $d$ smaller digits.
  2. So the possible successors number $0{:}0$, $1{:}8$, $2{:}2$, $3{:}6$, $4{:}4$, $5{:}4$, $6{:}6$, $7{:}2$, $8{:}8$, $9{:}0$.
  3. Summing $\sum_{b\text{ after }a}(\text{successors of }b)$ over first digits $a=1,\dots,9$ gives $32+8+24+16+16+24+8+32+0=160$ three-digit numbers.
  4. The answer is $\boxed{160}$.
Search Go to Prev      Next

Contact Us

Thanks! Your message has been sent.
By year
1985 (1 problems)
1984 (1 problems)