Given:
I'll try to map out some logic for you. I'm sorry this took so many edits for me to get the correct answer. These problems can some times be a little tricky, and I just kept tripping up on the logic.:
First, calculate the maximum amount of possibilities, without any constants.
This step is optional, however it gives you a check on your final answer.
Length = 10
n = 2
Therefore, the maximum amount of possibilities without any constants is 2^10 = 1084. If you get a number higher than 1084, which in one of my edits I did, than your answer is obviously incorrect.
Case 1: Fiveconsecutivezeros
[0][0][0][0][0][?][?][?][?][?] ==> 2^5 possibilities (2 x 2 x 2 x 2 x 2)
[1][0][0][0][0][0][?][?][?][?] ==> 2^4 possibilities
[?][1][0][0][0][0][0][?][?][?] ==> 2^4 possibilities
[?][?][1][0][0][0][0][0][?][?] ==> 2^4 possibilities
[?][?][?][1][0][0][0][0][0][?] ==> 2^4 possibilities
[?][?][?][?][1][0][0][0][0][0] ==> 2^4 possibilities (1 possibility duplicated from case 2)
Case 2:
[1][1][1][1][1][?][?][?][?][?] ==> 2^5 possibilities (2 x 2 x 2 x 2 x 2)
[0][1][1][1][1][1][?][?][?][?] ==> 2^4 possibilities
[?][0][1][1][1][1][1][?][?][?] ==> 2^4 possibilities
[?][?][0][1][1][1][1][1][?][?] ==> 2^4 possibilities
[?][?][?][0][1][1][1][1][1][?] ==> 2^4 possibilities
[?][?][?][?][0][1][1][1][1][1] ==> 2^4 possibilities (1 possibility duplicated from case 1)
Special Cases (don't count these, they are counted twice in previous cases)
[0][0][0][0][0][1][1][1][1][1] ==> 1 possibility (counted in case 1)
[1][1][1][1][1][0][0][0][0][0] ==> 1 possibility (counted in case 2)
We need to subtract 2 from the final answer to account for this.
As you can see, the number of possibilities for each case are:
2^5 + 5(2^4) = 112
There are two cases, you can multiply that by 2 to get your answer.
2(2^5 + 4(2^4)) = 2(112) = 224 possibilities
Subtract the special cases:
224 possibilities - 2 possibilities = 222 possibilities
The answer to the question is:
There are 222 unique ten bit strings that contain five consecutive zeros or five consecutive ones.
Five zeros.
The number 2.5 million is written in figures as 2500000 - and therefore contains five zeroes.
Five zeros
Five of them.
Five zeros: 5,700,000
Five (5) have one or the other but not both. Six (6) have both. Total of eleven (11).
Five zeros.
the total 128 ^5 the strings without @ at all 127^5 to get the strings that has at least @ once 128^5 - 127^5
Five zeros.
The number 2.5 million is written in figures as 2500000 - and therefore contains five zeroes.
In English speaking countries there are 9 zeros in five billion. 5,000,000,000 In other countries there may be 12 zeros in five billion. 5,000,000,000,000
Most people refer five consecutive strikes as a five bagger.
Five zeros
Five of them.
Five zeros: 5,700,000
Ten zeros.
a 5 followed by 12 zeros