Take a test Sign in 中文
← Exercise 471 →
Search
Go to
{{searchResults.length}} {{searchResults.length === 1 ? 'result' : 'results'}} for “{{searchWords}}” No results found for “{{searchWords}}” × back to contents
Contents · by chapter
Basic Counting (147)
Balls in Boxes (6)
Probability (142)

Exercises and their solutions

Exercise 471
How many sequences of zeros and ones of length $15$ have all the zeros consecutive? (The sequence with no zeros counts.)
← Back to Problem 471
Solution
  1. No zeros: $1$ sequence, $111\dots1$.
  2. Otherwise the zeros form one block of length $k$, $1\le k\le15$, and the block can start at any of $16-k$ positions. For example, with $k=3$ the block can be in positions $1$–$3$, $2$–$4$, \dots, $13$–$15$: $13$ ways.
  3. So there are $15+14+\dots+1=\frac{15\cdot16}2=120$ such sequences.
  4. Another way to see it: a block of zeros is determined by its first and last positions, so with $k\ge1$ there are $\binom{15}2+15=120$ choices (two different ends, or a block of length $1$).
  5. Total: $1+120=\boxed{121}$.
Search Go to Prev      Next

Contact Us

Thanks! Your message has been sent.
By year