第 557 题:(2019 AMC 10b, 25; 2019 AMC 12b, 23)
How many sequences of $0$s and $1$s of length $19$ are there that begin with a $0$, end with a $0$, contain no two consecutive $0$s, and contain no three consecutive $1$s?
$\textbf{(A)}\ 55\qquad\textbf{(B)}\ 60\qquad\textbf{(C)}\ 65\qquad\textbf{(D)}\ 70\qquad\textbf{(E)}\ 75$
- Such a sequence is $0\,B_1\,0\,B_2\,0\cdots B_k\,0$ where each block $B_i$ is $1$ or $11$.
- If $m$ of the blocks are $11$, the length is $(k+1)+k+m=19$, so $2k+m=18$ with $0\le m\le k$.
- The possibilities are $(k,m)=(9,0),(8,2),(7,4),(6,6)$, giving $\binom90+\binom82+\binom74+\binom66=1+28+35+1=65$.
- The answer is (C).
How many sequences of $0$s and $1$s of length $15$ begin with a $0$, end with a $0$, contain no two consecutive $0$s, and contain no three consecutive $1$s?