Olympiad Maths Prep

Track / Stage 3 / 7 of 260 #7 of 2000

Problem 7

AMC 10/12, early questions
Combinatorics Difficulty 3.0 Find the answer

Define an upno\textit{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\textit{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 upnosupnos and let DD equal the total number of downnosdownnos. What is UD|U-D|?
(A) 512(B) 10(C) 0(D) 9(E) 511\textbf{(A)}~512\qquad\textbf{(B)}~10\qquad\textbf{(C)}~0\qquad\textbf{(D)}~9\qquad\textbf{(E)}~511

Official solution

First, we know that DD is greater than UU, 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 00 since that isn't valid.
Thus, there are 2102^{10} total downnos and 292^9 total upnos. However, we are told that each upno or downno must be at least 22 digits, so we subtract out the 00-digit and 11-digit cases.
For the downnos, there are 1010 11-digit cases, and for the upnos, there are 99 11-digit cases. There is 11 00-digit case for both upnos and downnos.
Thus, the difference is ((210101)(2991))=291=(E) 511.\left(\left(2^{10}-10-1\right)-\left(2^9-9-1\right)\right)=2^9-1=\boxed{\textbf{(E) }511}.
~Technodoggo ~minor edits by lucaswujc

Source: NuminaMath-1.5, licensed Apache-2.0. Statement and solution reproduced as published; topic, difficulty and ordering added by this site.