Count the numbers of integer solutions of the ecuation $x_1 + x_2 + x_3 + x_4 = 21$

70 Views Asked by At

How to count the number of nonnegative integer solutions to $x_1 + x_2 + x_3 + x_4 = 21$ such that $x_1$, $x_2$, $x_3$, $x_4 ≤ 7$

1

There are 1 best solutions below

4
On

If you think about it you can see that you want the coefficient of $x^{21}$ in the expansion of $(1+x+x^2+\cdots + x^7)^4.$ I don't know an easy way to get that, but on a symbolic algebra calculator the coefficient is $120.$