Related questions with answers
a) Find a recurrence relation for the number of bit strings of length n that contain three consecutive 0s. b) What are the initial conditions? c) How many bit strings of length seven contain three consecutive 0s?
Solution
Verified(a) Let represent the number of bit strings of length that contain three consecutive 0's.
The bit string is a sequence ending in , then the bit string of length (ignore the last 1) has possible strings that contain a pair of consecutive 0's.
The bit string is a sequence ending in , then the bit string of length (ignore the last two digits 10) has possible strings that contain a pair of consecutive 0's.
The bit string is a sequence ending in , then the bit string of length (ignore the three two digits 100) has possible strings that contain a pair of consecutive 0's.
The bit string is a sequence ending in . There are bit strings of length and thus there are bit strings of length followed by 00.
Adding the number of sequences of all three cases, we then obtain:
Create an account to view solutions
Create an account to view solutions
Recommended textbook solutions

Discrete Mathematics and Its Applications
7th Edition•ISBN: 9780073383095 (1 more)Kenneth Rosen

Advanced Mathematics: Precalculus with Discrete Mathematics and Data Analysis
ISBN: 9780395551899Brown
Discrete Mathematics and Its Applications
8th Edition•ISBN: 9781259676512 (4 more)Kenneth RosenMore related questions
1/2
1/3