2023 AMC 10B Problem 16
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 ?
Show solution without answering
Key insight
Picking the digits decides the number, so count sets of digits. The digit 0 can end a downno but can never start an upno.
Solution
Choosing the digits decides the number. For example, the digits give exactly one upno, , and exactly one downno, . So instead of counting numbers, count sets of digits.
1. How many sets can you pick from some digits? For each digit you either take it or leave it, two choices. From digits there are possible sets; from digits there are . (These include the empty set and the one-digit sets.)
2. Upnos. The digit can never be used: in increasing order it would come first, and a number cannot start with . So the digits come from . Out of the sets, remove the empty set and the single-digit sets, since an upno needs at least digits:
3. Downnos. Now is fine, because in decreasing order it comes last (like ). So the digits come from . Out of the sets, remove the empty set and the single-digit sets:
4. Subtract.
The answer is .
Why this works
When the order of the digits is forced (increasing or decreasing), each number matches exactly one set of digits, and sets are easy to count with powers of . The whole difference between and comes from the digit , which can sit at the end of a number but never at the start.
Alternative approach
Match upnos with downnos directly.
- Reverse any upno and you get a downno without a . For example, becomes . Every downno without a comes from exactly one upno this way. So those cancel out in .
- The downnos left over are the ones that end in . Such a number is some digits from to written in decreasing order, followed by .
- The digits before the can be any set from to except the empty set (the number needs at least digits, and one of them is the ). That is choices.
So is more than .
Concise solution
A shorter write-up, the way contest solutions are usually written. It may take a different route from the solution above.
A strictly increasing (or decreasing) number is determined by its set of digits: once the digits are chosen, there is exactly one way to arrange them in increasing order and one way in decreasing order. So counting upnos and downnos is counting sets of digits.
Upnos: the digit cannot appear, because in increasing order it would be the leading digit. So an upno is a subset of with at least elements:
Downnos: may appear, since in decreasing order it lands at the end (like ). A downno is a subset of with at least elements:
Therefore .
The answer is .
Review in the AoPS books
- Introduction to Counting & Probability, Chapter 1: Counting Is Arithmetic
- Introduction to Number Theory, Chapter 8: Base Numbers
- Intermediate Counting & Probability, Chapter 4: Constructive Counting and 1-1 Correspondences (§4.4, §4.5, §4.6)
- Introduction to Counting & Probability, Chapter 2: Basic Counting Techniques (§2.3)
Similar problems
Problem © Mathematical Association of America (MAA), American Mathematics Competitions. Reproduced for non-commercial educational use. Solution and commentary are original to this site.