# permutation_power function

A permutation to a whole power.

## How to write it

### permutation_power(p, n)

**p**

A permutation, written as the list of where 1, 2, 3 and so on go. Takes a list.

**n**

The power. Takes a whole number.

## Examples

- $\displaystyle \operatorname{permutation\_power}(\left[ 2, 3, 1 \right], 2) = \begin{pmatrix} 1 & 3 & 2 \end{pmatrix}$

  `permutation_power([2, 3, 1], 2)`

  In the solver, `permutation_power([2, 3, 1], 2)` gives `[[1, 3, 2]]`.

  [Open in the solver](https://hilberon.com/?q=permutation_power%28%5B2%2C%203%2C%201%5D%2C%202%29)

## Related functions

- [permutation_product](https://hilberon.com/library/permutation_product)

  The product of two permutations.
- [permutation_order](https://hilberon.com/library/permutation_order)

  The order of a permutation: the least power that is the identity.
- [permutation_sign](https://hilberon.com/library/permutation_sign)

  The sign of a permutation: 1 when it is even, -1 when odd.
- [permutation_inverse](https://hilberon.com/library/permutation_inverse)

  The inverse of a permutation.
- [permutations](https://hilberon.com/library/permutations)

  All the orderings of a list.
- [is_irreducible](https://hilberon.com/library/is_irreducible)

  Test whether a polynomial cannot be factored, over the rationals or modulo a prime.

---
Source: https://hilberon.com/library/permutation_power
