How many ternary words in seven letters do not contain the word $121$?
My naive approach is:
- If starts with 2 or 3, move to $T(n-1)$
- If starts with 12, move to $T(n-3)$
- If starts with 13, move to $T(n-2)$
But what if we start with $11$? I've seen some techniques using two recursive sequences...