Sorry if my question is not mathematically correct. Please help me fix it if there is a better way to phrase it.
So first of all, I know that if you have a list of numbers {1, 2, 3} then the number of permutations is 3 x 2 x 1 = 6 different combinations where order does matter.
But what if you have repeating elements? For example {1, 1, 2} So the order still matter but picking the first '1' followed by the second '1' is the same thing as picking the second '1' first before picking the first '1'? How many different combinations would there be?
Doing it by hand, I know that there are 3. They are {1, 1, 2} {1, 2, 1} and {2, 1, 1} but how do you generalise it? For example, say if you have {1, 1, 2, 2, 2, 3, 3, 3, 3}, how do you know how many permutations there are?