if $d(n)$ is the number of words created by the alphabet $\{a,b,c\}$ of length $n$ that do not contain $abc$ term then write a recursive relation for $d(n)$.
I have read the same questions but there is no detailed answer for me to learn how to write the recursive relations please give me detailed answer.