Let $U(x)=\sum_{n=0}^{\infty} u_nx^n$, where $u_n$ is the number of partitions of $n$ into at most two parts. For example, $u_4=3$ because $4$ can be partitioned into at most two parts as $4$, $3+1$, or $2+2$. Use the convention that $u_0=1$.
Then $\frac 1{U(x)}$ is a polynomial. What polynomial is it?
Can I use generating functions to solve this? If so, how?
Hint:
First show that (think about how the partitions of $n$ are related to those of $n-2$) $$u_{n} = u_{n-2}+1$$
By multiplying the recurence relation above by $x^{n}$ and summing over $n=2,3,\ldots$ we get
$$U(x)-1-x = x^2 U(x) + \frac{x^2}{1-x}$$
Showing that $\frac{1}{U(x)}$ is a polynomial is now just simple algebra.