Skip to content

PermutationPower ​

The nnth power of a permutation under composition; a negative nn powers the inverse.

✓ checked against that system · ! checked, with disagreements (hover a chip)Wolfram LanguagePermutationPower✓
PermutationPower(p, n)pnp^n, in the same notation as p
SageMathenumeratio_permutation_power(p, n)
Typed signatures
TypePackageApplies
(expression<Cycles> | list<integer> | permutation, integer) -> expression<Cycles> | list<integer> | permutationcombinatoricsreplaces groupalgebraalways
(expression<Cycles> | list<integer>, integer) -> expression<Cycles> | list<integer>groupalgebraalways

Domain: Permutations

Details
  • Either notation or a Permutation, as PermutationProduct reads them; the result keeps the notation it was given
  • p0p^0 is the identity, and pnp^n is the identity whenever PermutationOrder divides nn
  • A non-integer exponent leaves the call unevaluated

Examples

Basic #
live ↗
InPermutationPower(Cycles([[1,2,3]]),2)\mathrm{PermutationPower}(\mathrm{Cycles}(\bigl\lbrack\bigl\lbrack1, 2, 3\bigr\rbrack\bigr\rbrack), 2)OutCycles([[1,3,2]])\mathrm{Cycles}(\bigl\lbrack\bigl\lbrack1, 3, 2\bigr\rbrack\bigr\rbrack)

Known value · wolframscript 15.0

Scope #

the inverse

live ↗
InPermutationPower(Cycles([[1,2,3]]),−1)\mathrm{PermutationPower}(\mathrm{Cycles}(\bigl\lbrack\bigl\lbrack1, 2, 3\bigr\rbrack\bigr\rbrack), -1)OutCycles([[1,3,2]])\mathrm{Cycles}(\bigl\lbrack\bigl\lbrack1, 3, 2\bigr\rbrack\bigr\rbrack)

Known value · wolframscript 15.0

live ↗
InPermutationPower(Cycles([[1,2,3]]),−2)\mathrm{PermutationPower}(\mathrm{Cycles}(\bigl\lbrack\bigl\lbrack1, 2, 3\bigr\rbrack\bigr\rbrack), -2)OutCycles([[1,2,3]])\mathrm{Cycles}(\bigl\lbrack\bigl\lbrack1, 2, 3\bigr\rbrack\bigr\rbrack)

Known value · wolframscript 15.0

live ↗
InPermutationPower([2,3,1],2)\mathrm{PermutationPower}(\bigl\lbrack2, 3, 1\bigr\rbrack, 2)Out[3,1,2]\bigl\lbrack3, 1, 2\bigr\rbrack

Known value · wolframscript 15.0

a Permutation gives a Permutation

live ↗
InPermutationPower(Permutation⁡([2,3,1]),2)\mathrm{PermutationPower}({\operatorname{Permutation}}([2, 3, 1]), 2)OutPermutation⁡([3,1,2]){\operatorname{Permutation}}([3, 1, 2])

Known value · wolframscript 15.0, on the one-line word

Properties #

the identity

live ↗
InPermutationPower(Cycles([[1,2,3]]),0)\mathrm{PermutationPower}(\mathrm{Cycles}(\bigl\lbrack\bigl\lbrack1, 2, 3\bigr\rbrack\bigr\rbrack), 0)OutCycles([])\mathrm{Cycles}(\bigl\lbrack\bigr\rbrack)

Known value · wolframscript 15.0

7≡3(mod4)7 \equiv 3 \pmod 4, and the 4-cycle has order 4

live ↗
InPermutationPower(Cycles([[1,2,3,4]]),7)\mathrm{PermutationPower}(\mathrm{Cycles}(\bigl\lbrack\bigl\lbrack1, 2, 3, 4\bigr\rbrack\bigr\rbrack), 7)OutCycles([[1,4,3,2]])\mathrm{Cycles}(\bigl\lbrack\bigl\lbrack1, 4, 3, 2\bigr\rbrack\bigr\rbrack)

Known value · wolframscript 15.0

About
Examples7
Checked againstWolfram Language 7 agreeSageMath 7 agree
CrosswalkWolfram LanguageSageMath

Implementation

mappedsagepackages/oracle/src/mappings.ts

See also: PermutationProduct, InversePermutation, PermutationOrder