Combinatorica`
Combinatorica`

InversePermutation

InversePermutation[p]

yields the multiplicative inverse of permutation p.

Details and Options