Combinations with repetition

The combinations with repetition of $n$ taken elements of $k$ in $k$ are the different groups of $k$ elements that can be formed from these $n$ elements, allowing the elements to repeat themselves, and considering that two groups differ only if they have different elements (that is to say, the order does not matter). They are represented as $CR_{n,k}$ .

Let's consider the set $A=\{a,b,c,d,e \}$. The different combinations with repetition of these 5 elements are:

As we see in this example, many more groups are possible than before. The following formula says to us how many combinations with repetition of $n$ taken elements of $k$ in $k$ are:

$$\displaystyle CR_{n,k}=\binom{n+k-1}{k}=\frac{(n+k-1)!}{(n-1)!k!}$$

In the previous example,

To know all the combinations with repetition of 5 taken elements in threes, using the formula we get 35:

$$\displaystyle CR_{5,3}=\binom{5+3-1}{3}=\frac{(5+3-1)!}{(5-1)!3!}=\frac{7!}{4!3!}=7 \cdot 5 = 35$$

Practice exercises