Take a test Sign in 中文
← Exercise 548 →
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 548
Call a positive integer \emph{humble} if no digit is used more than once and no digit is adjacent to two smaller digits. (For example, $531$, $40$, and $3102$ are humble, but $1546$ and $120$ are not.) How many humble positive integers are there?
← Back to Problem 548
Solution
  1. No digit has two smaller neighbors, so the digits decrease down to the smallest digit and then increase.
  2. For a set of $k$ digits, the smallest sits at the bottom and each of the other $k-1$ digits goes either left or right of it, after which the order is forced: $2^{k-1}$ arrangements.
  3. Sets without $0$: all arrangements are allowed, giving $\sum_{k=1}^9\binom9k2^{k-1}=\frac{3^9-1}2=9841$.
  4. Sets with $0$ and $j$ other digits: $0$ is the smallest, and it may not be the first digit, which happens only when all $j$ other digits go to its right. So there are $2^j-1$ humble integers, giving $\sum_{j=0}^9\binom9j(2^j-1)=3^9-2^9=19683-512=19171$.
  5. Total: $9841+19171=\boxed{29012}$.
Search Go to Prev      Next

Contact Us

Thanks! Your message has been sent.
By year