Muhammad's strings

How many binary strings of length 10 10 are there such that there are no consecutive zeros and an even number of ones?

This problem is shared by Muhammad A.

Details and assumptions

A binary string is a sequence of integers that are 1 1 or 0 0 . The length of a string refers to the number of integers in it.

As an explicit example, the binary string of length 3 3 are 000 , 001 , 010 , 011 000, 001, 010, 011 , 100 , 101 , 110 , 111 100, 101, 110, 111 .


The answer is 72.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

1 solution

Mei Li Staff
May 13, 2014

First, we observe that if there are 4 4 or fewer ones, then two zeroes must be next to each other.

If there are 6 6 ones, then the 4 4 zeroes can go in 7 7 possible positions, and there are ( 7 4 ) \binom{7}{4} ways to do this. If there are 8 8 ones, then the remaining 2 2 zeros can go in 9 9 possible positions, giving ( 9 2 ) \binom{9}{2} ways. If there are 10 10 ones, there are no zeros to be placed. Thus, the answer is ( 7 4 ) + ( 9 2 ) + 1 = 72. \binom{7}{4}+\binom{9}{2}+1=72.

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...