2

How many bit strings of length eight contain either three consecutive $0'$s or four consecutive $1'$s?

$$2^5 + 2^4 + 2^4 + 2^4 + 2^4 + 2^4 + 2^4 + 2^4$$

$$2^4 + 2^3 + 2^3 + 2^3 + 2^3 + 2^3 + 2^3$$

take the first line plus the second line minus $5!$

Would this be the correct answer, if not why?

user60862
  • 503

0 Answers0