I have the following problem.
Assume we have an unlimited number of blocks of 1cm, 2cm and 3cm height. Ignoring the position of the blocks, how many towers of 15cm height can we build?
I know I must find the coefficient of $x^{15}$ of the function $$ f(x)=\frac{1}{1-x}\frac{1}{1-x^2}\frac{1}{1-x^3}=(1+x+x^2)\frac{1}{1-x^2}\frac{1}{(1-x^3)^2} $$ How do I find it?
Denote the coefficient of $x^n$ in $(\frac{1}{1-x} \frac{1}{1-x^2})$ by f(n). Then $f(n) = \lceil \frac{n+1}{2} \rceil$. Obviously, the answer is
$f(0) + f(3) +...+f(12) + f(15) = 1 + 2 + 4 + 5 + 7 + 8 = 27 $