I am studying combinatorics and I understand the basic combinations formula $C(n, k) = \binom{n}{k}$ for choosing $k$ items from $n$ distinct items without repetition.
But I am confused about **combinations with repetition** (also called multisets). The formula is: