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

练习及解答

练习 568
Call a set of integers spacy if it contains no more than one out of any three consecutive integers. How many subsets of $\{1,2,\dots,15\}$, including the empty set, are spacy?
← 返回第 568 题
解答
  1. Let $s_n$ be the number of spacy subsets of $\{1,\dots,n\}$ (including the empty set). A spacy subset either does not contain $n$, and is then a spacy subset of $\{1,\dots,n-1\}$, or contains $n$ but not $n-1$ or $n-2$, and is then $n$ together with a spacy subset of $\{1,\dots,n-3\}$. So $s_n=s_{n-1}+s_{n-3}$, with $s_1=2$, $s_2=3$, $s_3=4$.
  2. Then $s_4,\dots,s_{12}$ are $6,9,13,19,28,41,60,88,129$.
  3. Continuing, $s_{13}=129+60=189$, $s_{14}=189+88=277$, and $s_{15}=277+129=\boxed{406}$.
搜索 跳转 上一题      下一题

联系我们

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