WLOG let root is of type $1$.
Let $f(k)$ denote number of nodes with type $1$ in level k and $g(k)$ be number of nodes of type other than $1$.
So, in level zero(root) there is only one node of type $1$ and zero nodes of other types. So, $f(0) = 1$ and $g(0) = 0$.
Now, $1$ can be the child of only $2$ and $3$. So, number of $1$'s at level $k+1$ is equal to number of $2$'s and $3$'s at level $k$. So, $f(k+1) = g(k)$.
And number of $2$'s and $3$'s at level $k$ is number of nodes in level $k$ - number of nodes of type $1$. So, $g(k) = 2^k - f(k)$. So,
$$f(k+1) = 2^k - f(k)$$
$$f(k+1) + f(k) = 2^k$$
So, total number of nodes of type $1$ in a tree of height $n$ is equal to
$$f(0) + f(1) + ...... f(n)$$
$$= (f(n) + f(n-1)) + (f(n-2) + f(n-3)) + .....$$
$$= 2^{n-1} + 2^{n-3} + .....$$
And it is equal to $\dfrac{2^{n+1} - 1}{3}$ when n is odd and $\dfrac{2^{n+1} + 1}{3}$ when n is even.