Skip to main content

2023 AMC 10B Problem 16

Problem 16 of 25IntermediateNumber TheoryCounting & Probability

Define an upno to be a positive integer of 22 or more digits where the digits are strictly increasing moving left to right. Similarly, define a downno to be a positive integer of 22 or more digits where the digits are strictly decreasing moving left to right. For instance, the number 258258 is an upno and 86208620 is a downno. Let UU equal the total number of upnos and let DD equal the total number of downnos. What is UD?|U - D|?

Answer choices

Show solution

Solution

An upno is just a choice of at least 22 digits, written in increasing order. A 00 can never appear: it can’t lead and can’t follow a smaller digit. So the digits come from {1,,9},\{1, \ldots, 9\}, giving U=2919=502.U = 2^9 - 1 - 9 = 502. A downno can end in 0,0, so its digits are any subset of {0,,9}\{0, \ldots, 9\} of size 2,\ge 2, giving D=210110=1013.D = 2^{10} - 1 - 10 = 1013. So UD=5021013=511.|U - D| = |502 - 1013| = 511. Therefore, the answer is E.

More practice

Concepts: subsets · digits

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