Multiply two permutations in one-line notation (R = P1 ∘ P2) and see the product in disjoint cycle form, or solve for a missing permutation.
Related Calculators
- Permutations Calculator
- Binomial Coefficient Calculator
- Set Cardinality Calculator
- Pascal’s Triangle Calculator
- Letter Combination Calculator
- Compound Probability Calculator
- All Math and Numbers Calculators
Calculator Functions
| Function | What it does | What it requires |
|---|---|---|
| Product R = P1 ∘ P2 | Finds the product of two permutations, with its disjoint cycle form | Requires P1 and P2 in one-line notation |
| Missing P1 | Finds the left factor of a known product | Requires P2 and the product R in one-line notation |
| Missing P2 | Finds the right factor of a known product | Requires P1 and the product R in one-line notation |
One-line notation lists the images of 1 to n in order, so 2, 3, 1 sends 1 to 2, 2 to 3 and 3 to 1. Entries can be separated by commas or spaces, with or without square brackets. Both lists must be the same length and contain each whole number from 1 to n exactly once. Cycle notation such as (1 2 3) is not accepted as input. Every result also shows the permutation size.
Permutation Multiplication Formulas
| R | The product permutation |
| P1 | The left factor, applied second |
| P2 | The right factor, applied first |
| i | Each element from 1 to n |
Permutations are multiplied the way functions are composed, from right to left: P2 acts first and P1 acts on its result [1].
Product R = P1 ∘ P2
With P1 = 2, 1, 4, 3 and P2 = 2, 3, 4, 1, element 1 goes to 2 under P2 and then to 1 under P1, element 2 goes to 3 and then 4, element 3 goes to 4 and then 3, and element 4 goes to 1 and then 2. The product is R = 1, 4, 3, 2. Swapping the two factors gives 3, 2, 1, 4 instead, so the order matters. A product can also undo itself: 2, 3, 1 ∘ 3, 1, 2 = 1, 2, 3, the identity.
Missing P1
P2⁻¹ is the inverse of P2, which reverses each of its moves. With P2 = 2, 3, 4, 1 and R = 1, 4, 3, 2, the left factor is P1 = 2, 1, 4, 3.
Missing P2
With P1 = 2, 1, 4, 3 and R = 1, 4, 3, 2, the right factor is P2 = 2, 3, 4, 1.
Disjoint cycle form
A cycle (a b c) sends a to b, b to c and c back to a, and leaves every other element where it is [1]. The calculator follows each element until it returns to its start and leaves out elements that do not move. R = 1, 4, 3, 2 swaps 2 and 4, so its cycle form is (2 4), and P2 = 2, 3, 4, 1 is the single cycle (1 2 3 4). A permutation that moves nothing is shown as identity.
Limits of This Estimate
- The product follows the right-to-left convention. Some books multiply permutations from left to right [1], which swaps the roles of P1 and P2. Check which convention a course or text uses before comparing answers.
- Both permutations must act on the same set 1 to n. A permutation written on fewer elements has to be padded with the elements it leaves fixed.
Sources
- Judson, Abstract Algebra: Theory and Applications, Section 5.1, Definitions and Notation: right-to-left multiplication of permutations and cycle notation
