A) Find a recurrence relation for the number of n-digit binary sequences with no pair of consecutive 1s. (A binary sequence only uses the numbers 0 and 1 for those who don't know)
B) Repeat for n-digit ternary sequences. (only uses numbers 0, 1, and 2)
C) Repeat for n-digit ternary sequences with no consecutive 1s or consecutive 2s.
Let $b_n$ be the number of ways we can produce a ternary sequence of length $n$ with no two consecutive $1$'s. Call such $n$-sequences good.
There are two types of good sequence of length $n$, (i) the ones that don't end in $1$ and (ii) the ones that do end in $1$.
Any Type (i) good sequence of length $n$ can be obtained in $2$ ways from a uniquely determined good sequence of length $n-1$ by appending a $0$ or a $2$. So there are $2b_{n-1}$ of them.
Any Type (ii) good $n$-sequence can be obtained from an arbitrary good sequence of length $n-2$ by appending $01$ or $21$. So there are $2b_{n-2}$ of them.
That yields the recurrence $b_n=2b_{n-1}+2b_{n-2}$.
Though we were not asked, one should add that $b_0=1$ and $b_1=3$.
Problem a) is somewhat easier, and problem c) somewhat harder.