{{searchResults.length}} {{searchResults.length === 1 ? 'result' : 'results'}} for “{{searchWords}}”No results found for “{{searchWords}}”× back to contents
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.
So there are $15+14+\dots+1=\frac{15\cdot16}2=120$ such sequences.
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$).