InversePermutation[perm]
returns the inverse of permutation perm.
InversePermutation
InversePermutation[perm]
returns the inverse of permutation perm.
Examples
open all close allBasic Examples (2)
InversePermutation[Cycles[{{3, 2, 5, 1}, {4, 7}}]]Their product gives the identity permutation:
PermutationProduct[Cycles[{{3, 2, 5, 1}, {4, 7}}], %]Some permutations, called involutions, are their own inverse:
InversePermutation[Cycles[{{1, 2}, {3, 4}}]]Scope (1)
Generalizations & Extensions (1)
On symbolic expressions other than permutations the result is given in terms of PermutationPower:
InversePermutation[a]Properties & Relations (4)
InversePermutation is equivalent to PermutationPower with exponent -1:
InversePermutation[Cycles[{{1, 6, 12}, {2, 9}}]] == PermutationPower[Cycles[{{1, 6, 12}, {2, 9}}], -1]Inverting a permutation is equivalent to reversing its cycles:
InversePermutation[Cycles[{{1, 6, 12}, {2, 9}}]] == Map[Reverse, Cycles[{{1, 6, 12}, {2, 9}}], {2}]For a permutation of finite degree, its inverse can always be obtained as the power with a positive integer:
perm = Cycles[{{1, 13, 3, 9, 5, 4, 14, 2}, {6, 12}, {7, 11, 8, 10, 15}}];PermutationOrder[perm]InversePermutation[perm]PermutationPower[perm, 40 - 1]Ordering gives the inverse of a permutation list:
perm = Cycles[{{1, 9, 6, 5, 10, 7, 8, 4}, {2, 3}}];list = PermutationList[perm]iperm = InversePermutation[perm]PermutationList[iperm]Ordering[list]Tech Notes
Related Guides
History
Text
Wolfram Research (2010), InversePermutation, Wolfram Language function, https://reference.wolfram.com/language/ref/InversePermutation.html.
CMS
Wolfram Language. 2010. "InversePermutation." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/InversePermutation.html.
APA
Wolfram Language. (2010). InversePermutation. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/InversePermutation.html
BibTeX
@misc{reference.wolfram_2026_inversepermutation, author="Wolfram Research", title="{InversePermutation}", year="2010", howpublished="\url{https://reference.wolfram.com/language/ref/InversePermutation.html}", note=[Accessed: 12-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_inversepermutation, organization={Wolfram Research}, title={InversePermutation}, year={2010}, url={https://reference.wolfram.com/language/ref/InversePermutation.html}, note=[Accessed: 12-June-2026]}