WLJS LogoWLJS Notebook

PermutationMax

PermutationMax[perm] returns the largest integer moved by the permutation perm.

Examples

Find the largest moved element:

PermutationMax[Cycles[{{1, 3, 5}}]]

For a permutation involving larger indices:

PermutationMax[Cycles[{{2, 7}, {4, 10, 6}}]]

Please visit the official Wolfram Language Reference for more details.

On this page