Consider three sets of cards colored Blue, Red and Yellow. Each set has cards numbered $1-10$. The $4$ remaining cards are all indistinguishable cards numbered $0$.
Card numbered $i$ has the value of $2^i$. How many ways are there to choose a group of cards that sums up to $2016$.
I'm having a problem with creating a generating function for this problem, any help would be appreciated.
So far I have $f(x) = (x^1 + x^2 + x^3 + x^4)\cdot(1 + x^{2^{1}} + x^{2^{2}} + x^{2^{3}} ... + x^{2^{10}})^3$ but I'm not really sure that's even correct.
We can represent the number of selecting zero up to four indistinguishible cards which have value $2^0=1$ as \begin{align*} 1+x+x^2+x^3+x^4=\frac{1-x^5}{1-x} \end{align*}
We can represent the number of selecting zero up to three distinguishible cards numbered with value $2^i$ as \begin{align*} \left(1+x^{2^i}\right)^3\qquad 1\leq i\leq 10 \end{align*}
The corresponding generating function is \begin{align*} &\frac{1-x^5}{1-x}\left(1+x^{2^{1}}\right)^3\left(1+x^{2^{2}}\right)^3\left(1+x^{2^{3}}\right)^3\cdots\left(1+x^{2^{10}}\right)^3\\ &\qquad=\frac{1-x^5}{1-x}\left(\sum_{j=0}^{2^{10}-1}x^{2j}\right)^3\\ &\qquad=\frac{1-x^5}{1-x}\left(\frac{1-x^{2^{11}}}{1-x^2}\right)^3\tag{1} \end{align*} in accordance with the generating function given by the answer from @RossMillikan.
Next we have to extract the coefficient of $x^{2016}$ from (1). It is convenient to use the coefficient of operator $[x^k]$ to denote the coefficient of $x^k$ of a series.
Comment:
In (2) we omit terms in the numerator with powers of $x^{2^{11}}$ since they do not contribute to the coefficient of $x^{2016}$.
In (3) we apply $[x^{p-q}]A(x)=[x^p]x^qA(x)$ and do a geometric and binomial series expansion.
In (4) we use the binomial identity $\binom{-p}{q}=\binom{p+q-1}{p-1}(-1)^q$.
In (5) we skip coefficients of odd powers since they do not contribute.
In (6) we select the coefficients accordingly.