Order
Nota
Working with abstract algebra? See Order (Abstract algebra).
Returns the order of a permutation, that is the number of times a permutation should be composed with itself in order to achieve the identity. If the permutation is represented by cycles, the order is the least common multiple of the length of the cycles.
Syntax
order(Permutation)
Description
Given a permutation, returns its order.