[Math] How many bit strings of length 10 contains…

combinationspermutations

I have a problem on my home work for applied discrete math

How many bit strings of length 10 contain

A) exactly 4 1s

the answer in the book is 210

I solve it

$$C(10,4) = \frac{10!}{4!(10-4)!} = 210
$$

for the last 3 though I can't even get close. Did I even do part A right or is the answer only a coincidence?

B) at most 4 1s

the answer in the book is 386

C) at least 4 1s

the answer in the book is 848

D) an equal number of 0s and 1s

the answer in the book is 252

Best Answer

Your answer for part (a) is fine. For part (b), we have to ask what does "at most four" mean? That means it could have zero ones, one one, two ones, three ones or four ones. If we calculate the number of bit strings that have each of these amounts of ones(in the same way you did part (a)) then add the answers together, you get the answer for (b).

(C) is similar to (b), but "at least four" means four or more. Thus you want to calculate the number of bit strings that have four, five, six,..., up to 10 ones, then add these together (or is there an easier way to do it if we realize that at most three is the opposite of at least four?)

Then for (D), if we have the same number of zeros and ones, how many ones do we have? If we calculate the number of bit strings that have that many ones, we are done.