Why does the formula for repetition without order sometimes have a $-1$ at the bottom?

63 Views Asked by At

How many solutions are there of the equation $x_1 + x_2 + x_3 = 12$ with $x_1, x_2, x_3$ non-negative integers? Solution. This is the same as the number of ways to choose 12 objects from 3 distinct objects with repetition and order does not matter, i.e.,

$${12+3-1}\choose{3-1}$$

So from What I thought, the number of ways to choose 12 objects from 3 distinct objects with repetition and order does not matter would be $${12+3-1}\choose{3}$$ as my formula doesn't have a -1 at the bottom, so why does this one?

That is, why sometimes $${n+r-1}\choose{r-1}$$ and some times $${n+r-1}\choose{r}$$?

3

There are 3 best solutions below

2
On BEST ANSWER

How many solutions are there of the equation $x_1 + x_2 + x_3 = 12$ in the nonnegative integers?

A particular solution corresponds to the placement of two addition signs in a row of twelve ones. For instance, $$1 1 1 1 1 + 1 1 1 1 + 1 1 1$$ corresponds to the solution $x_1 = 5$, $x_2 = 4$, $x_3 = 3$, while $$+ 1 1 1 1 1 1 1 1 + 1 1 1 1$$ corresponds to the solution $x_1 = 0$, $x_2 = 8$, $x_3 = 4$. The number of solutions of the equation is the number of ways we can fill two of the fourteen positions required for twelve ones and two addition signs to be filled with addition signs, which is $$\binom{12 + 2}{2} = \binom{14}{2}$$ or, equivalently, the number of ways we can fill twelve of the fourteen positions with ones, which is $$\binom{12 + 2}{12} = \binom{14}{12}$$

Now, let's look at the general case. Suppose we wish to solve the equation $$x_1 + x_2 + x_3 + \cdots + x_n = k$$ in the nonnegative integers. A particular solution corresponds to the placement of $n - 1$ addition signs in a row of $k$ ones. The number of ways we can do this is the number of ways we could select which $n - 1$ of the $k + n - 1$ positions required for $k$ ones and $n - 1$ addition signs will be filled with addition signs, which is $$\binom{k + n - 1}{n - 1}$$ or, equivalently, the number of ways we could select $k$ of the $k + n - 1$ positions to be filled with ones, which is $$\binom{k + n - 1}{k}$$

The solution can represent the number of ways $k$ identical objects can be placed in $n$ distinct boxes, or the number of ways $k$ objects can be selected from $n$ types of objects, provided that there are at least $k$ objects available from each of the $n$ types of objects.

0
On

So you want $x_1+x_2+x_3=12$(assume for a second that $x_i\geq 1$) so lets write 12 in this way
$$12=1+1+1+1+1+1+1+1+1+1+1+1,$$ if we take out the $+$ we would like to put the pluses in the middle of the $1's$, so there are $11$ pluses, and $3$ summands, so we have to select $2$ places to partition in $3$ ways, so $$\binom{12-1}{3-1}.$$ Now, if we allow $x_i=0,$ then is the same as injecting a $1$ in each $x_i$ to form the equation $\underbrace{(x_1+1)}_{y_1}+\underbrace{(x_2+1)}_{y_2}+\underbrace{(x_3+1)}_{y_3}=12+1+1+1=15$ so in this case we have $\binom{12+3-1}{3-1}$

0
On

How many solutions are there of the equation $x_1+x_2+x_3=12$ with $x_1,x_2,x_3$ non-negative integers?

Imagine you have n ones next to each other: $1\ 1\dots1$. Selecting k integers that sums to n is the same as disposing $k-1$ separators in this line of n ones.

Examples:

$11|1111|111111$ corresponds to $x_1=2,x_2=4,x_3=6$ and equivalently $s_1=3,s_2=8$

$11||1111111111$ corresponds to $x_1=2,x_2=0,x_3=10$ and equivalently $s_1=3,s_2=4$

Therefore there are n+k-1 positions available for each separator. And there are $ {n+k-1}\choose{k-1} $ ways to choose an (unordered) subset of k-1 elements from a fixed set of n+k-1 elements.