How many sequences of zeros and ones of length 20 have all the zeros consecutive, or all the ones consecutive, or both? $\textbf{(A)}\ 190\qquad\textbf{(B)}\ 192\qquad\textbf{(C)}\ 211\qquad\textbf{(D)}\ 380\qquad\textbf{(E)}\ 382$
Sequences with all zeros consecutive: the all-ones sequence, plus for each block length $k=1,\dots,20$ there are $21-k$ positions, giving $1+(20+19+\dots+1)=211$. The same count holds with the ones consecutive.
Both conditions hold for the $2$ constant sequences and for $0\dots01\dots1$ or $1\dots10\dots0$ with $1$ to $19$ zeros: $2+2\cdot19=40$.