$$x_1 + 2x_2 + 3x_3 = n, \qquad x_1, x_2, x_3 \geq 0$$
Find a regression formula (or a recursive function, not sure how it's called in English) to calculate the number of solutions for all $n≥0$.
Find the number of solution for $n=7$.
So far I only got the following generating function
$$f(x) = \left( \sum_{i=0}^\infty x^i \right) \left( \sum_{i=0}^\infty x^{2i} \right) \left( \sum_{i=0}^\infty x^{3i} \right)$$



I'm not too sure the generating function helps in this case.
Recursively, it is obvious that the number of ways of solving it $x_1+2x_2=n$ is just $\lfloor\frac{n}{2}\rfloor+1$. Thus the number of ways for solving $x_1+2x_2+3x_3=n$ is just $$\sum_{i=0}^{\lfloor \frac{n}{3}\rfloor}\lfloor\frac{i}{2}\rfloor+1$$
(summing over $i$s where $x_3=i$)
which you can split into cases depending on the parity of $\lfloor\frac{n}{3}\rfloor$ and find a closed form expression for.