Help me understand this question -- "Three consecutive zeros" in a binary string

  • Thread starter r0bHadz
  • Start date
  • #1
r0bHadz
194
17

Homework Statement


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

Homework Equations




The Attempt at a Solution


This might sound dumb, but would the eight bit string of all zeros satisfy the conditions on the question? I understand its asking for three consecutive zeros, but even if the entire string was all zeros, you would still have 3 consecutive zeros so I don't see why there would be a problem. If you guys don't understand what I mean, what about a string like 0000 0000 or 0000 1010 or 0000 1111 0000 0101 etc etc
 

Answers and Replies

  • #2
phyzguy
Science Advisor
5,095
2,106
what about a string like 0000 0000 or 0000 1010 or 0000 1111 0000 0101

All of those have three consecutive zeros, so they all satisfy the conditions. What about the question don't you understand?
 
  • #3
r0bHadz
194
17
All of those have three consecutive zeros, so they all satisfy the conditions. What about the question don't you understand?

I just wanted to make sure if it would still be valid if it was more than 3 consecutive zeros
 
  • #4
phyzguy
Science Advisor
5,095
2,106
I just wanted to make sure if it would still be valid if it was more than 3 consecutive zeros

Well, you'd have to ask the person who wrote the question to be certain, but I would interpret having more than three consecutive zeros as 'having three consecutive zeros'.
 

Suggested for: Help me understand this question -- "Three consecutive zeros" in a binary string

Replies
2
Views
665
  • Last Post
Replies
6
Views
523
  • Last Post
Replies
10
Views
637
  • Last Post
Replies
1
Views
504
Replies
3
Views
746
Replies
6
Views
378
Replies
18
Views
2K
Replies
12
Views
910
  • Last Post
Replies
3
Views
779
Top