ord w
The order of a permutation $p$ is the smallest positive integer $n$ such that $p^n$ is the identity permutation, i.e., its order in the symmetric group.
|
|
The object ord is a method function.