This is documentation for Mathematica 7, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)

InversePermutation

InversePermutation[p]
yields the multiplicative inverse of permutation p.