combinations with repeated elements
Definition 1.
A -combination with repeated elements chosen within the set is a multiset with cardinality having as the underlying set.
Note 1.
The definition is based on the multiset concept and therefore the order of the elements within the combination![]()
is irrelevant.
Note 2.
The definition generalizes the concept of combination with distinct elements.
Lemma 1.
Given , the following formula![]()
holds:
Proof.
The formula is easily demonstrated by repeated application of the Pascal’s Rule for the binomial coefficient.∎
Theorem 1.
The number of the -combinations with repeated elements is given by the formula:
Proof.
The proof is given by finite induction![]()
(http://planetmath.org/PrincipleOfFiniteInduction).
The proof is trivial for , since no repetitions can occur and the number of -combinations is .
Let’s then prove the formula is true for , assuming it holds for . The -combinations can be partitioned in subsets as follows:
- •
combinations that include at least once;
- •
combinations that do not include , but include at least once;
- •
combinations that do not include and , but include at least once;
- •
…
- •
combinations that do not include , ,… but include at least once;
- •
combinations that do not include , ,… , but include only.
The number of the subsets is:
which, by the inductive hypothesis and the lemma, equalizes:
∎