2023 AMC 10B Problems/Problem 16
Contents
Problem
Define an to be a positive integer of or more digits where the digits are strictly increasing moving left to right. Similarly, define a to be a positive integer of or more digits where the digits are strictly decreasing moving left to right. For instance, the number is an upno and is a downno. Let equal the total number of and let equal the total number of . What is ?
Solution 1
First, we know that is greater than , since there are less upnos than downnos. To see why, we examine what determines an upno or downno.
We notice that, given any selection of unique digits (notice that "unique" constrains this to be a finite number), we can construct a unique downno. Similarly, we can also construct an upno, but the selection can not include the digit since that isn't valid.
Thus, there are total downnos and total upnos. However, we are told that each upno or downno must be at least digits, so we subtract out the -digit and -digit cases.
For the downnos, there are -digit cases, and for the upnos, there are -digit cases. There is -digit case for both upnos and downnos.
Thus, the difference is
~Technodoggo ~minor edits by lucaswujc
Solution 2
Since Upnos do not allow 0s to be in their first -- and any other -- digit, there will be no zeros in any digits of an Upno. Thus, Upnos only contain digits [1,2,3,4,5,6,7,8,9].
Upnos are 2 digits in minimum and 9 digits maximum (repetition is not allowed). Thus the total number of Upnos will be (9C2)+(9C3)+(9C4)+...+(9C9), since every selection of distinct numbers from the set [1,2,3,4,5,6,7,8,9] can be arranged so that it is an Upno. There will be (9C2) 2 digit Upnos, (9C3) 3 digit Upnos and so on.
Thus, the total number of Upnos will be (9C2)+(9C3)+(9C4)+...+(9C9) = 2^9-(9C0)-(9C1) = 512 - 10 = 502.
Notice that the same combination logic can be done for Downnos, but Downnos DO allow zeros to be in their last digit. Thus, there are 10 possible digits [0,1,2,3,4,5,6,7,8,9] for Downnos.
Therefore, it is visible that the total number of Downnos are (10C2)+(10C3)+(10C4)+...+(10C10) = 2^10-(10C0)-(10C10) = 1024 - 11 = 1013.
Thus abs(#Upno-#Downno) = abs(1013-502) = 511.
~yxyxyxcxcxcx
Solution 3
Note that you can obtain a downo by reversing an upno (like is an upno, and you can obtain ). So, we need to find the amount of downos that end with 0. We can use stars and bars to get: to get 512. However, 0 is not a valid case so we subtract 1. Our answer is 511.
-aleyang
-ap246(LaTeX)
Solution 4 (Educated Guess)
First, note that the only that are not contained by the set of is every that ends in .
Next, listing all the two digits , we find that the answer is more than 9, since there are more digits to be tested and there are 9 two digit . This leaves us with or .
Next, we notice that all the possibilities for through digit ending in pair up with one another, as the possibilities are equal (e.g. possibilities for digits = possibilities for digits, etc.).
This leaves us with one last possibility, the ten digit .
Since all the previous possibilities form an even number, adding one more possibility will make the total odd. Therefore, we need to choose the odd number from the set .
Our answer is 511.
~yourmomisalosinggame (a.k.a. Aaron)