Calculates the number of ways to arrange n items where some are identical, n! ÷ (a! × b! × …). List the group sizes separated by commas: for "aaabbc", enter 3, 2, 1.
This counts the ways of arranging items in a row when some of them are identical. Divide the factorial of the total by the factorial of each group of identical items.
Here are the group sizes, and together they add up to .
Rearrange the six letters of "aaabbc". There are 3 a's, 2 b's and 1 c, so the group sizes to enter are 3, 2, 1.
There are 60 distinct arrangements.
If all six letters were different there would be orders. But the three a's are indistinguishable: the ways of shuffling them among themselves all produce exactly the same visible word.
The same goes for the shuffles of the b's. Dividing by removes every duplicate.
The combination is the special case of this formula with only two groups.