Derive a recurrence relation for the numbers wn justify it


Problem:

Let Wn be the number of strings of length n formed from letters A, B, C, and D that do notncontain a substring AA, BA or CA.

For example, for n = 2, all the strings with this property are AB, AC, AD, BB, BC, BD, CB, CC, CD, DA, DB, DC, DD and thus W2 = 13. (Note that W0 = 1, because the empty string satisfies the condition.)

(a) Derive a recurrence relation for the numbers Wn. Justify it.

(b) Find the formula for the numbers Wn by solving this recurrence. Show your work.

Request for Solution File

Ask an Expert for Answer!!
Science: Derive a recurrence relation for the numbers wn justify it
Reference No:- TGS01281833

Expected delivery within 24 Hours