It is a Fibonacci like sequence.
Let $\,A_{\small n}\,$ be the total number of $\,(1,\,2,\,3)\,$ combinations that compose $\,n\,$, Then:
$$ A_{\small 1}=1,\,A_{\small 2}=2,\,A_{\small 3}=4,\quad\color{red}{A_{\small n}=A_{\small n-1}+A_{\small n-2}+A_{\small n-3}} \\[4mm] \Rightarrow\quad \left\{A_{\small n}\right\}=\left\{1,\,2,\,4,\,7,\,13,\,24,\,44,\,\cdots\right\} $$
And the idea behind that for $\,n\gt3\,$, you will have the ability to add a Most Significant Digit (MSD) equals $\,1,\,2,\text{ or } \,3\,$. This should left you with $\,n-1,\,n-2,\text{ and } \,n-3\,$ respectively. For Example:
$$ \begin{align}
n &=5 \\[2mm]
\text{MSD} &=\color{red}{1} \quad\Rightarrow\text{ The comination of }\,(n-1=4)= \begin{cases} \color{red}{1}\,1\,1\,1\,1 \\ \color{red}{1}\,1\,1\,2 \\ \color{red}{1}\,1\,2\,1 \\ \color{red}{1}\,1\,3 \\ \color{red}{1}\,2\,1\,1 \\ \color{red}{1}\,2\,2 \\ \color{red}{1}\,3\,1 \end{cases} \\[2mm]
\text{MSD} &=\color{blue}{2} \quad\Rightarrow\text{ The comination of }\,(n-2=3)= \begin{cases} \color{blue}{2}\,1\,1\,1 \\ \color{blue}{2}\,1\,2 \\ \color{blue}{2}\,2\,1 \\ \color{blue}{2}\,3 \end{cases} \\[2mm]
\text{MSD} &=\color{Green}{3} \quad\Rightarrow\text{ The comination of }\,(n-3=2)= \begin{cases} \color{Green}{3}\,1\,1 \\ \color{Green}{3}\,2 \end{cases} \\[2mm]
A_{\small5} &= \color{red}{A_{\small4}}+\color{blue}{A_{\small3}}+\color{green}{A_{\small2}} = \color{red}{7}+\color{blue}{4}+\color{green}{2} = 13
\end{align} $$
For other similar combination $\,\left({\small\text{e.g }}\,(1,2)\,,(1,2,4)\,,\cdots\right)\,$, we start by computing the first required terms, then we apply the concept of Fibonacci sequence and Most Significant Digit (MSD).
$\underline{\bf(1,2)}$:
$$ \begin{align}
(n=1) &\rightarrow \begin{cases} \color{red}{1} \end{cases} \qquad\Rightarrow\, A_{\small 1}=1 \\[2mm]
(n=2) &\rightarrow \begin{cases} \color{blue}{1}\,\color{red}{1} \\ \color{blue}{2} \end{cases} \quad\Rightarrow\, A_{\small 2}=2 \\[2mm]
A_{\small n} &= A_{\small n-1}+A_{\small n-2} = \left\{1,\,2,\,3,\,5,\,8,\,13,\,21,\,\cdots\right\}
\end{align} $$
$\underline{\bf(1,2,4)}$:
$$ \begin{align}
(n=1) &\rightarrow \begin{cases} \color{red}{1} \end{cases} \qquad\qquad\Rightarrow\, A_{\small 1}=1 \\[2mm]
(n=2) &\rightarrow \begin{cases} \color{blue}{1}\,\color{red}{1} \\ \color{blue}{2} \end{cases} \quad\qquad\Rightarrow\, A_{\small 2}=2 \\[2mm]
(n=3) &\rightarrow \begin{cases} \color{green}{1}\,\color{blue}{1}\,\color{red}{1} \\ \color{green}{1}\,\color{blue}{2} \\ \color{green}{2}\,\color{red}{1} \end{cases} \qquad\Rightarrow\, A_{\small 3}=3 \\[2mm]
(n=4) &\rightarrow \begin{cases} 1\,\color{green}{1}\,\color{blue}{1}\,\color{red}{1} \\ 1\,\color{green}{1}\,\color{blue}{2} \\ 1\,\color{green}{2}\,\color{red}{1} \\ 2\,\color{blue}{1}\,\color{red}{1} \\ 2\,\color{blue}{2} \\ 4 \end{cases} \quad\Rightarrow\, A_{\small 4}=6 \\[2mm]
A_{\small n} &= A_{\small n-1}+A_{\small n-2}+A_{\small n-4} = \left\{1,\,2,\,3,\,6,\,10,\,18,\,31,\,\cdots\right\}
\end{align} $$