Take a test Sign in 中文
← Exercise 477 →
Search
Go to
{{searchResults.length}} {{searchResults.length === 1 ? 'result' : 'results'}} for “{{searchWords}}” No results found for “{{searchWords}}” × back to contents
Contents · by chapter
Basic Counting (147)
Balls in Boxes (6)
Probability (142)

Exercises and their solutions

Exercise 477
An upno is a positive integer of $2$ or more digits whose digits strictly increase from left to right, and a downno is one whose digits strictly decrease from left to right. (For example, $258$ is an upno and $8620$ is a downno.) Let $U$ and $D$ be the numbers of upnos and downnos whose digits are all at most $6$. What is $|U-D|$?
← Back to Problem 477
Solution
  1. An upno cannot contain $0$, so upnos correspond to subsets of $\{1,\dots,6\}$ with at least $2$ elements; downnos correspond to subsets of $\{0,\dots,6\}$ with at least $2$ elements.
  2. Downnos without $0$ correspond to upnos (reverse the digits), and downnos with $0$ are a nonempty subset of $\{1,\dots,6\}$ followed by $0$.
  3. So $|U-D|=2^6-1=\boxed{63}$.
Search Go to Prev      Next

Contact Us

Thanks! Your message has been sent.
By year