做测试 登录 English
← 练习 548 →
搜索
跳转
找到 {{searchResults.length}} 条与“{{searchWords}}”相关的结果 没有找到与“{{searchWords}}”相关的结果 × 返回目录
目录 · 按章节
基础计数 (147)
球与盒子 (6)
概率 (142)

练习及解答

练习 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?
← 返回第 548 题
解答
  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}$.
搜索 跳转 上一题      下一题

联系我们

谢谢!您的消息已发送。
按年份