# permutation_power 函数

置换的整数次幂。

## 怎么写

### permutation_power(p, n)

**p**

一个置换，写成 1、2、3 等分别被映到的位置所构成的列表。接受一个列表。

**n**

幂次。接受一个整数。

## 示例

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

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

  在求解器中，`permutation_power([2, 3, 1], 2)` 的结果是 `[[1, 3, 2]]`。

  [在求解器中打开](https://zh.hilberon.com/?q=permutation_power%28%5B2%2C%203%2C%201%5D%2C%202%29)

## 相关函数

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

  两个置换的乘积。
- [permutation_order](https://zh.hilberon.com/library/permutation_order)

  置换的阶：使其成为恒等置换的最小幂次。
- [permutation_sign](https://zh.hilberon.com/library/permutation_sign)

  置换的符号：偶置换为 1，奇置换为 -1。
- [permutation_inverse](https://zh.hilberon.com/library/permutation_inverse)

  置换的逆。
- [permutations](https://zh.hilberon.com/library/permutations)

  列表的所有排列。
- [is_irreducible](https://zh.hilberon.com/library/is_irreducible)

  判断多项式在有理数上或模某个素数时是否不可分解。

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