53.9k views
0 votes
Let an equal the number of ternary strings of length n made up of Os, .ls, and 2s, such that the substrings 00, 01, 10, and 11 never occur. Prove that an = an-l + 2an-2, (n 2: 2), with ao = 1 and al =3. Then find a formula for

1 Answer

3 votes

Answer:

Please see attachment

Explanation:

Please see attachment

Let an equal the number of ternary strings of length n made up of Os, .ls, and 2s-example-1
User Szamanm
by
6.8k points