Recall that the number of possible permutations of a set of
This can be easily tested. The number
Repetition of some elements complicates the calculation of permutations, because it allows for there to be multiple ways in which a specific order of elements can be arranged. For example, given the numbers
To correct for the "multiplicity" of certain permutations, we must divide the factorial of the total number of elements by the product of the factorials of the number of each repeated element. This can generally be represented as:
Where
To understand why we would divide by the number of repetitions, consider that
Example: Consider the set of numbers:
There are five terms, so
The same logic can apply to more complicated systems.
Example: Consider the set:
In total, there are
This logic can be applied to problems involving anagrams of given words.
Example: Consider how many distinct ways you can order the letters of the word "waterfall."
The word waterfall consists of