Permutation

A permutation is a sequence (i.e., an ordered list of elements from a set), where elements are not replaced. The total number of permutations of elements from a set of elements is

where the denominator “cuts off” the arrangements of the elements that are not selected.

Permutation counting is used to count the number of ways to arrange distinct objects in a specific order, such as the number of ways to seat five different people around a table.

Intuition

The number of ways to rearrange a sequence is given as . This is valid when elements in the set of origin are not taken out of the set. However, given a starting amount of elements, which ARE taken out of the set, the total number of elements is .

However, this formula only accounts for sequences where all elements in the set are used up. If we are trying to solve for a certain constrained length of a sequence , then we must “remove” any arrangements of the remaining elements, thereby deriving .

Examples

Anagrams

Anagrams are rearrangements of a word’s letters.

The Count