I'm just running through my midterm review.. I'm usually pretty bad at applying simple combinatorics to word problems.. So I just was wondering if anyone could confirm the following answers.
We're dealing with binary strings of length 10.
a) How many binary strings of length 10 have at least three 0's?
So, this is equal to the total number of binary strings of length 10 minus the number of binary strings of length 10 with zero, one, and two 0's.
zero 0's: There is only 1 string like this: 1111111111
one 0: There are ten places to place the one 0, and thus there are ten of such cases
two 0's: There are ten places to place the first 0 and nine places to place the second 0. However, there is an overlap so we divide by $2!$.
b)How many binary strings of length 10 have an even number of 1's?
So here I just applied the method I used for the number of strings with two 0's.
zero 1's: 1 string
two 1's: $\dfrac{10*9}{2!}$
four 1's: $\dfrac{10*9*8*7}{4!}$
six 1's: $\dfrac{10*9*8*7*6*5}{6!}$
eight 1's: $\dfrac{10*9*8*7*6*5*4*3}{8!}$
ten 1's: $\dfrac{10!}{10!}$
So if you sum all of that up, you get 512 strings which makes sense because $2^{10} = 1024$..
c) The number of binary strings of length 10 with alternating 0's and 1's
This one's really easy... There are only two options: $1010..$ and $0101..$
d) Four consecutive 0's
Here, there are $7$ places to put the block of zeros, then $2$ ways to fill in each remaining space, for a total of $7 * 2^6$ possible strings.
Any help / comments are greatly appreciated.
Cheers