"I want to choose m elements from a set of n numbers, where some elements may appear multiple times. How can I calculate the number of possible selections?
For example, if the set of numbers is given as {1,2,2,3}, I can choose three numbers in 3 possible ways: {1,2,3}, {1,2,2}, or {2,2,3} (I understand the probabilities are different). How can I calculate the number of combinations if I know which elements are repeated and how many times?"