Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

On the other hand, if b n = 0 , then by assumption, b n - 1 must be 1 . This shows that S

On the other hand, if bn=0, then by assumption, bn-1 must be 1.
This shows that Sn=Sn-1+Sn-2, which completes the proof.
Therefore the number of n-bit strings with last digit 1 is Sn-1.
Since 0,1 are the 1-bit strings without the pattern 00, and 11,01,10 are the 2-bit strings without the pattern 00, we have S1=2=f3 and S2=3=f4.
Let b1b2dotsbn be an n-bit string without the pattern 00.
Then b1dotsbn-2 can be any (n-2)-bit string without the pattern 00.
Therefore the number of n-bit strings with last digit 0 is Sn-2.
It suffices to show that Sn and fn+2 have the same initial conditions and the same recurrence relation, i.e.,S1=f3 and S2=f4, and Sn=Sn-1+Sn-2 for n3.
If bn=1, then b1dotsbn-1 can be any (n-1) bit string without the pattern 00.
Now it remains to show that Sn=Sn-1+Sn-2 for n3.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Concepts of Database Management

Authors: Philip J. Pratt, Mary Z. Last

8th edition

1285427106, 978-1285427102

More Books

Students also viewed these Databases questions