From this question,
Find the number of ways to fill the same $14$ balls into $4$ different boxes, but the last box must not have more than the sum of number of balls in the first three boxes.
I have done these following steps and I'm lost. Can you help me solve?
$x_1$ $+$ $x_2$ $+$ $x_3$ $+$ $x_4$ $=$ $14$ and $x_4$ $\geq$ $x_1$ $+$ $x_2$ $+$ $x_3$ So, $f(x)$ $=$ $($ $1$ $+$ $x$ $+$ $x^2$ $+$ $...$ $)$ $^3$ $\cdot$ $?$
You might want to try something like this:
$$f(x, y) = (1 + x + x^2 + ... + x^{14})^3 (1 + y + y^2 + ... + y^{14})$$
Where $x$ is the dummy variable for the first 3 boxes and $y$ is for the last. Since the two parts are just partial sums of the geometric series, f(x,y) is equal to:
$$\left(\frac{1-x^{15}}{1-x}\right)^3 \frac{1-y^{15}}{1-y}$$
We can simplify the left term using the binomial expansion:
$$ (1-x^{15})^{3} = \sum_{k=0}^{3} {3 \choose k} 1^k (-x^{15})^{3-k} = -x^{45} + 3x^{30} - 3x^{15} + 1$$
Reciprocating the denominator and using the negative binomial expansion, we get:
$$(1-x)^{-3} = \sum_{k=0}^{\infty} (-1)^k {3+ k - 1 \choose k} (-x)^k 1^{-3-k} = \sum_{k=0}^{\infty} {3+ k - 1 \choose k} x^k = 1 + 3x + ... + {16 \choose 14} x^{14} + ...$$
You don't care about powers higher than 14 because there are only 14 balls. This means the left term is:
$$(1-x^{15})^{3} (1-x)^{-3} = (-x^{45} + 3x^{30} - 3x^{15} + 1)( 1 + 3x + ... + {16 \choose 14} x^{14} + ...)$$
Now just do the same for the $y$ terms, multiply the two results together and add up the coefficients where the power of y is less than or equal to the power of x.