So the question has 2 parts to it.
Let $f(n)$ be the number of sequences in length n that are built of 0, 1, and 2, so that after zero there's always 1 right after it.
Let $g(n)$ be the number of sequences in length n that are built of 0, 1 and 2, so that between two 2's in the sequence theres 0. (not necessarily right after it)
I need to find recurrence relations for $f(n)$ and $g(n)$.
I need some hints or ideas, thanks in advance.
As requested here is an alternative solution for $g$:
We call the sequences with the requested property g-sequences. Furthermore, we call a sequence X-sequence if adding a symbol 2 in the end yields a g-sequence. Obviously, any X-sequence is a g-sequence too. Let $X(n)$ be the number of X-sequences of length $n$.
If the last symbol of a g-sequence is 0 or 1, the remaining part is an arbitrary g-sequence. If the last symbol is 2, the remaining part is an arbitrary X-sequence. So $$g(n) = 2g(n-1) + X(n-1).$$
An X-sequence cannot end on the symbol 2. If the last symbol of a X-sequence is 0, then the remaining part is an arbitrary g-sequence. (But not necessarily a X-sequence, look for example at the sequence 20.) If the last symbol of a X-sequence is 1, then the remaining part is an arbitrary X-sequence. So $$X(n) = g(n-1) + X(n-1).$$
Iterated replacement of the expressions $X(i)$ in the recursion for $g(n)$ yields the recursion formula of the other answer (involving the summation).