How many ways are there (in both case where order matters (permutations) and order does not matter (combinations) ) if one
pick $k$ candidates from $n$ elements of $p$ different kinds where:
$n_1$ are alike, $n_2$ are alike, … , $n_p$ are alike?
Here $\sum_{i=1}^p n_i = n$.
--
e.g. pick 3 balls from bag of 10 balls, where 1 is red, 2 is blue, 3 is purple, 4 is black. How many permutations and combinations?
--
Special case:
If $k = n$, in other words, one pick all the elements, then there is clearly 1 combination, and exactly: $$\frac{n!}{\Pi_{i=1} (n_i !) }$$ permutations.