Page 1 of 1

A computer system considers a string of the digits 0, 1, 2, 3 a valid codeword if it has no two consecutive 1's. For exa

Posted: Sat May 14, 2022 2:52 pm
by answerhappygod
A computer system considers a string of the digits 0, 1, 2, 3 a
valid codeword if it has no two consecutive 1's. For example 01213
is a valid codeword of length 5 while 11320, 1022110, and 211133
are not valid. Let an be the number of valid codewords of length n.
Find a recurrence relation for an and hence use it to find a4..