Skip to main content

2023 AMC 10B Problem 16

Problem 16 of 25IntermediateNumber TheoryCombinatorics

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 ∣U−D∣?|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=29−1−9=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=210−1−10=1013.D = 2^{10} - 1 - 10 = 1013. So ∣U−D∣=∣502−1013∣=511.|U - D| = |502 - 1013| = 511. Therefore, the answer is E.
AoPS wiki

Tagged: subsets · digits

More practice