the replacement of each of the elements a of a given set by another element ϕ(a) of the same set. Each element of the initial set must be obtained precisely once as a result of the permutation. Thus, a permutation is essentially a one-to-one mapping of a set onto itself. The concept of permutation is applied chiefly to finite sets, and only this case will be considered here.
A permutation is commonly symbolized
Here, each element of the given set is written above the element corresponding to it. Since the properties of a permutation are independent of the nature of the elements a, b, …, c, the latter are usually replaced by the integers 1, 2, …, n. In the upper row, the integers are usually written in their natural order. The permutation then has the form
or simply
where ϕ1, ϕ2, …, ϕn are the numbers 1, 2, …, n, possibly in a different order. Thus, the second row of a permutation is an arrangement, ϕ1, ϕ2, …, ϕn of the numbers 1, 2, …, n. There are as many different permutations of n elements as there are arrangements—that is, n! = 1 × 2 × 3 × … × n.
The permutation
which leaves invariant all elements, is called the identity permutation. Every permutation A has an inverse, that is, a permutation that carries ϕi to i. The inverse of A is denoted by A–1. For example, if
then
The result of the successive application of two permutations A and B is itself a permutation C. If A carries i to ϕi and B carries ϕi to ψi, then C carries i to ψi. C is called the product of A and B; this relationship is written C = AB. For example, if
and
then
Multiplication of permutations is not commutative; that is, in general AB ≠ BA. In the above example,
It can be easily seen that IA = AI = A, that AA–1 = A–1A = I, and that the associative law A(BC) = (AB)C holds. Thus, all the permutations of n elements form a group, which is called the symmetric group of degree n.
A permutation that interchanges two elements i and j is called a transposition and is denoted by (i, j); for example,
Any permutation can be factored into a product of transpositions. When a given permutation is factored into a product of transpositions in different ways, there will be either an even or an odd number of factors. The permutation will accordingly be said to be even or odd; for example, A = (1, 3) (5, 4) (5, 1) is an odd permutation. Define an inversion as an ordered pair of natural numbers such that the first is greater than the second. It turns out that the parity of a permutation can also be determined from the number of inversions in the lower row of the permutation if the numbers in the upper row are arranged in their natural order. The parity of the permutation coincides with the parity of the number of inversions. For example, the lower row of A contains five inversions: (3, 2), (3, 1), (2, 1), (5, 1), and (5, 4). There exist n!/2 even and n!/2 odd permutations of n elements.
A permutation that cyclically permutes a given group of elements while leaving invariant the other elements is called a cycle. The number of permuted elements is called the length of the cycle. For example, A is a cycle of length four: it carries 1 to 3, 3 to 5, 5 to 4, and 4 to 1. This fact is often denoted simply by A = (1, 3, 5, 4). A transposition is a cycle of length two. Any permutation can be factored into a product of disjoint cycles, that is, a product of cycles without common elements. For example,