Let $P_n$ be the number of strings of length n formed from letters A, B, C, E, O, that do not contain two consecutive consonants (that is, B or C). For example, AABOCA and BACOOEBO satisfy this condition, while AABCEC does not. Derive a recurrence relation for the numbers $P_n$.
So the recurrence is $P_n = 3P_{n - 1} + 6P_{n - 2}$ but I am having trouble proving it. If anyone can help me with the proof I would really appreciate it!
Take an acceptable $n$-letter string and consider the cases: $$AXXX\cdots$$ $$BXXX\cdots$$ $$CXXX\cdots$$ $$EXXX\cdots$$ $$OXXX\cdots$$ In the three cases $AXXX\cdots$, $EXXX\cdots$, $OXXX\cdots$ the $XXX\cdots$ part can be any acceptable $n-1$-letter string. Can you continue with the cases $BXXX\cdots$ and $CXXX\cdots$?