Permutation Group
calculator.
Multiply permutations in cycle notation, and see the order, sign and inverse of each.
- Order of σ∘τ
- 5
- Sign of σ∘τ
- Even (+1)
- Cycle type
- (5)
Applying τ and then σ moves all 5 numbers. Repeating σ∘τ 5 times brings every number back, and it is even, so it lies in the alternating group.
Where each number goes
Each number on the top row points to where σ∘τ sends it on the bottom row. σ∘τ = (1 2 5 4 3); arrows of the same colour belong to the same cycle, and plain arrows are fixed points.
Two-line notation: i and its image
| i | σ(i) | τ(i) | (σ∘τ)(i) |
|---|---|---|---|
| 1 | 2 | 1 | 2 |
| 2 | 3 | 4 | 5 |
| 3 | 1 | 3 | 1 |
| 4 | 5 | 2 | 3 |
| 5 | 4 | 5 | 4 |
Working
- 1Write σ and τ as disjoint cyclesσ = (1 2 3)(4 5)τ = (2 4)
- 2Follow each number: τ first, then σ1 → 1 → 22 → 4 → 53 → 3 → 14 → 2 → 35 → 5 → 4
- 3Read off the cycles, leaving out fixed pointsσ∘τ = (1 2 5 4 3)
- 4Check: undo τ and σ comes back(σ∘τ)∘τ⁻¹ = (1 2 3)(4 5), and σ = (1 2 3)(4 5)
σ, τ and σ∘τ side by side
| Property | σ | τ | σ∘τ |
|---|---|---|---|
| Cycles | (1 2 3)(4 5) | (2 4) | (1 2 5 4 3) |
| Order | 6 | 2 | 5 |
| Sign | Odd (−1) | Odd (−1) | Even (+1) |
| Inversions | 3 | 3 | 4 |
| Fixed points | 0 | 3 | 0 |
| As swaps | (1 3)(1 2)(4 5) | (2 4) | (1 3)(1 4)(1 5)(1 2) |
Powers of σ
2 mod 6 = 2, so σ² = (1 3 2)
σ to the powers 1 to 6
| Power | σ to that power | Order |
|---|---|---|
| 1 | (1 2 3)(4 5) | 6 |
| 2 | (1 3 2) | 3 |
| 3 | (4 5) | 2 |
| 4 | (1 2 3) | 3 |
| 5 | (1 3 2)(4 5) | 6 |
| 6 | e | 1 |
Solve for an unknown permutation
Check: σ∘x = (2 4), which is τ. In the right to left order, σ∘x means apply x first, then σ.
Order and sign of a list
Each permutation
| As typed | Cycles | Order | Sign |
|---|---|---|---|
| (1 2)(3 4 5) | (1 2)(3 4 5)odd | 6 | Odd |
| (1 2 3 4) | (1 2 3 4)odd | 4 | Odd |
| 2 3 1 5 4 | (1 2 3)(4 5)odd | 6 | Odd |
| (1 2)(2 3) | (1 2 3)even | 3 | Even |
How it's worked out
A permutation of 1 to n is a rearrangement: it sends each number to exactly one number, and no two to the same place. In cycle notation (1 2 3)(4 5) means 1 goes to 2, 2 goes to 3, 3 goes back to 1, and 4 and 5 swap. A number that does not appear stays where it is. One-line notation lists the images in order instead, so the same permutation of 1 to 5 is 2 3 1 5 4.
Which one acts first. Most textbooks treat a permutation as a function, so σ∘τ means apply τ first and then σ, the way f(g(x)) applies g first. Judson/05%3A_Permutation_Groups/5.01%3A_Definitions_and_Notation) puts it plainly: to compute στ, do τ first and then σ. Some books and software read left to right instead. Composing left to right gives the same permutation as composing the other way round in the other order, so σ∘τ left to right is τ∘σ right to left.
Order. The order of σ is the smallest number of times you must apply it to get every number back. Written as disjoint cycles, which share no numbers, the order is the least common multiple/06:_Permutation_and_Dihedral_Groups/6.02:_Symmetric_Groups) of the cycle lengths.
Sign. A swap of two numbers is a transposition. A cycle of length k can be written as k − 1 transpositions, so the total over all cycles decides whether σ is even or odd. Even permutations have sign +1 and odd ones −1, and the even ones form the alternating group, which holds half of the permutations.
Cycle type and conjugates. The cycle type is the list of cycle lengths. Conjugating σ by τ, written τστ⁻¹, renames every number a in the cycles of σ as τ(a). So conjugates share a cycle type, and in the symmetric group two permutations with the same cycle type are always conjugate. DLMF 26.4.7 counts the permutations of each type.
Worked examples
Checking a textbook product in S5
Take σ = (1 2 3)(4 5) and τ = (2 4), right to left, so τ acts first. Follow 2: τ sends it to 4, then σ sends 4 to 5. Follow 4: τ sends it to 2, then σ sends 2 to 3. Doing this for each number gives σ∘τ = (1 2 5 4 3).
The product is a single 5-cycle, so its order is 5 and it is even. Read left to right, the same two inputs give (1 4 5 2 3), which is τ∘σ in the usual order. The two answers differ, so σ and τ do not commute.
For σ itself the cycles have lengths 3 and 2, so its order is 6. Its inverse is (1 3 2)(4 5), and conjugating by τ swaps the labels 2 and 4 to give (1 4 3)(2 5).
The smallest pair that does not commute
In S3, with σ = (1 2 3) and τ = (1 2), the product σ∘τ is (1 3) while τ∘σ is (2 3). Both are swaps, but of different pairs, so the order of multiplication matters even in a group of only 6 permutations.
To solve σ∘x = τ, apply σ⁻¹ on the left of both sides. That gives x = σ⁻¹∘τ = (2 3), and multiplying back, σ∘x is (1 2) again. Writing x = τ∘σ⁻¹ instead is a common slip, and it answers a different equation.
A shuffle written in one-line notation
Card 1 goes to place 2, card 2 to place 4, and so on, which is the one-line list 2 4 6 1 3 5. As cycles it is (1 2 4)(3 6 5), two 3-cycles.
So the shuffle repeated 3 times puts every card back where it started. It is even, and 40 of the 720 permutations of six cards have this same cycle type.
Reading your result
Overlapping cycles must be multiplied first. The lcm rule needs disjoint cycles. For (1 2 3 4)(2 6 7)(3 9), the lengths 4, 3 and 2 suggest 12, but multiplied out the permutation is (1 2 6 7 3 9 4) with order 7. The tool always rewrites the input as disjoint cycles before it reads the order.
A 4-cycle is odd. It needs 3 transpositions, so (1 2 3 4) has sign −1, while the 3-cycle (1 2 3) uses 2 and has sign +1. The sign of a cycle is the opposite of what its length suggests.
Negative powers run backward. σ to the power −1 is the inverse, found by reading each cycle in reverse. For the 5-cycle (1 2 3 4 5) that is (1 5 4 3 2). Powers repeat every order steps, so any power can be cut down to one between 0 and the order.
Common mistakes
- Composing in the wrong order. If your book writes στ and means τ first, a left to right product gives τσ instead. Check one number by hand before you trust a whole answer.
- Reading the order off overlapping cycles. Multiply into disjoint cycles first, then take the lcm of their lengths.
- Counting a cycle's length as its number of swaps. A k-cycle uses k − 1 transpositions, so a 3-cycle is even and a 2-cycle is odd.
- Mixing up one-line and cycle notation. The list 3 1 2 is the permutation (1 3 2), but the cycle (3 1 2) is (1 2 3). Brackets tell the tool which one you mean.
Questions people ask
Sources
- Judson, Abstract Algebra: Theory and Applications, 5.1 Definitions and Notation (LibreTexts)
- Sklar, First-Semester Abstract Algebra: A Structural Approach, 6.2 Symmetric Groups (LibreTexts)
- NIST Digital Library of Mathematical Functions, section 26.13, Permutations: Cycle Notation
- NIST Digital Library of Mathematical Functions, section 26.4, Lattice Paths: Multinomial Coefficients and Set Partitions
- Groupprops, Cycle type determines conjugacy class