Consider a representation with even number of zeros at step $n-1$. At the next step $n$, you can construct $3$ even number of zeros by following it with $1,2,3$. Similarly if you have a representation with odd number of zeros, you have to follow it with $0$ to keep it still even $0$s.
So at $i$th step let $n_{odd,i}$ be the number of odds and $n_{even,i}$ be the number of even. We have that
\begin{equation}
n_{even,i+1}=3n_{even,i}+n_{odd,i},~n_{odd,i+1}=3n_{odd,i}+n_{even,i}
\end{equation}
These are your recurrence relations. The starting point is $n_{even,1}=3$, $n_{odd,1}=1$.
You can verify by induction that $n_{even,i}=2^{i-1}(1+2^i)$ is the general formula.