for the binary case the recurrence relation as follows:
$a_{n}=a_{n-1}+a_{n-2}$.
why?
because any n-digit binary sequence has to start with $0$ or $1$ since it is
binary.
If it starts with $0$ the rest will be same with the $a_{n-1}$, if it starts
with $1$ then next number has to be $0$ meaning that it will start exactly
with $10$ so the rest now will be same with $a_{n-2}$.
......................
by using similar idea, for the ternary case we have the following:
$a_{n}=2a_{n-1}+2a_{n-2}$
the sequence can start with $0,1$ or $2$.
if the sequence starts with $0$ or $2$ then the rest will be same with $%
a_{n-1}$, if the sequence starts with $1$, next one can be $0$ or
$2$, so it can be start with $10$ or $12,$ the rest will be same
with $a_{n-2}$.
As a result, since we have two choices for both cases we have recurrence
with coefficient $2.$
.......
for part C i refer to Recurrence relation for the number of $n$-digit ternary sequences with no consecutive $1$s or $2$s
the solution also can be obtained by same argument with part A and B.