WLJS LogoWLJS Notebook

PermutationOrder

PermutationOrder[perm] gives the order of permutation perm.

Examples

Find the order of a permutation:

PermutationOrder[Cycles[{{1, 2, 3}}]]

Order of a transposition:

PermutationOrder[Cycles[{{1, 2}}]]

Please visit the official Wolfram Language Reference for more details.

On this page