InversePermutation
InversePermutation[perm] returns the inverse of permutation perm.
Examples
Find the inverse of a permutation list:
InversePermutation[{3, 1, 2}]
(* {2, 3, 1} *)Find the inverse of a cycles permutation:
InversePermutation[Cycles[{{1, 3, 2}}]]
(* Cycles[{{1, 2, 3}}] *)Please visit the official Wolfram Language Reference for more details.