The question is
Let $T(n)$ be the number of length-$n$ strings of letters $a$, $b$ and $c$, that do not contain three consecutive $a$'s. Give a recurrence relation for $T(n)$ and justify it. (You do not have to solve it.)
How would I go about solving this problem. I found the initial conditions of
$n = 0, T(n) = 1$
$n = 1, T(n) = 3$
$n = 2, T(n) = 9$
$n = 3, T(n) = 26$
But I do not know what to do after that point.