做测试 登录 English
← 练习 443 →
搜索
跳转
找到 {{searchResults.length}} 条与“{{searchWords}}”相关的结果 没有找到与“{{searchWords}}”相关的结果 × 返回目录
AIME 目录 · 按章节
基础计数 (90)
---- (44)
概率 (91)

练习及解答

练习 443
Consider sequences that consist entirely of $A$'s and $B$'s and that have the property that every run of consecutive $A$'s has even length, and every run of consecutive $B$'s has odd length. Examples of such sequences are $AA$, $B$, and $AABAA$, while $BBAB$ is not such a sequence. How many such sequences have length 16?
← 返回第 443 题
解答
  1. Let $a_n$ and $b_n$ count valid sequences of length $n$ ending in $A$ and $B$.
  2. Then $a_n=a_{n-2}+b_{n-2}$ and $b_n=a_{n-1}+b_{n-2}$.
  3. Starting from $a_1=0,b_1=1,a_2=1,b_2=0$ and iterating to $n=16$ gives $a_{16}+b_{16}=377$.
  4. The answer is $\boxed{377}$.
搜索 跳转 上一题      下一题

联系我们

谢谢!您的消息已发送。
按年份
1985 (1 题)
1984 (1 题)