[Math] Ordered Quadruples Question

combinatorics

How many ordered quadruples $(x_1,x_2,x_3,x_4)$ that are elements of the $\Bbb N^4$ are there such that $x_1+x_2+x_3+x_4\le 50$?

Best Answer

This is almost a standard stars-and-bars problem. To make it one, add a fifth variable, $x_5$, and count the solutions to $x_1+x_2+x_3+x_4+x_5=50$ in non-negative integers: each solution to your problem corresponds to exactly one solution to the modified problem and vice versa, so the two problems have the same number of solutions. The Wikipedia article to which I’ve linked has a pretty good explanation of how to solve this modified problem, but if you need more help, just leave a comment.

Added: Imagine that I have $50$ identical balls, and I want to put them into $5$ numbered bins. Let $x_1$ be the number of balls that I put into Bin $1$, $x_2$ the number that I put into Bin $2$, and so on. Then each possible distribution of the balls is completely described by a solution to the equation

$$x_1+x_2+x_3+x_4+x_5=50\;,\tag{1}$$

and each solution to $(1)$ describes a possible distribution of the balls amongst the bins. Now I can picture a distribution of balls by arranging all $50$ balls in a line and thinking of the first $x_1$ balls as the contents of Bin $1$, the next $x_2$ balls as the contents of Bin $2$, and so on; I’ll just put down four markers to show where the balls in one bin leave off and those in the next bin begin.

For example, if there were only $10$ balls, I might picture the distribution that has $3$ balls in Bin $1$, none in Bin $2$, $6$ in Bin $3$, $1$ in Bin $4$, and none in Bin $5$ as ooo||oooooo|o|; this also corresponds to the solution $3+0+6+1+0=10$ to the equation $x_1+x_2+x_3+x_4+x_5=10$.

Each of these pictures is then a string of $54$ objects, $50$ balls and $4$ markers. We can put the $4$ markers anywhere in the string, and once they’re in place, the whole string is known: every other position is occupied by a ball. There are $\binom{54}4$ ways to choose $4$ of the $54$ positions in the string, so there are $\binom{54}4$ distributions of the balls and hence $\binom{54}4$ solutions to $(1)$ in non-negative integers.

Related Question