English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

How many bit strings of length 10 either begin with 5 consecutive 0's or 5 consecutive 1's?

That is : 00000_ _ _ _ _ or 11111_ _ _ _ _

Im way to tired, im sure it is simple but my brain is dead. :(

2007-11-07 18:19:04 · 2 answers · asked by webnerd 2 in Science & Mathematics Mathematics

I understand what you are saying.. just think of [00000] = 1 bit and _ _ _ _ _ = 5 bits which is 2^6. I totally knew that , heh its to late in the morning to be doing this stuff... haha

2007-11-07 18:35:53 · update #1

2 answers

2^6

Just think of it as a 6 bit binary number. 5 of the bits are from the blanks, and the 6th bit (the leftmost bit) is either 0 or 1.

2007-11-07 18:24:09 · answer #1 · answered by rath 5 · 1 0

Another (closely related) answer would be -- there are two ways to pick the first five bits and 32 to pick the last five, and the choices are independent, so the answer is 2 x 32.

2007-11-07 19:05:29 · answer #2 · answered by Curt Monash 7 · 0 0

fedest.com, questions and answers