Skip to main content

2017 AMC 12B Problem 11

Problem 11 of 25IntermediateCounting & Probability

Call a positive integer monotonous if it is a one-digit number or its digits, when read from left to right, form either a strictly increasing or a strictly decreasing sequence. For example, 3,3, 23578,23578, and 987620987620 are monotonous, but 88,88, 7434,7434, and 2355723557 are not. How many monotonous positive integers are there?

Answer choices

Show solution

Solution

Strictly increasing monotonous numbers correspond to nonempty subsets of {1,,9},\{1, \ldots, 9\}, giving 291=511.2^9 - 1 = 511. Strictly decreasing ones correspond to subsets of {0,1,,9}\{0, 1, \ldots, 9\} other than \varnothing and {0}\{0\} (a leading 00 is not allowed), giving 2102=1022.2^{10} - 2 = 1022. The nine single-digit numbers are counted in both, so the total is 511+10229=1524.511 + 1022 - 9 = 1524. Thus, the correct answer is B.

More practice

Concepts: subsets · bijection · inclusion-exclusion

Problem text and solution from the LIVE past-contest archive. See also the AoPS wiki page for community solutions.