Skip to content

Esta página también está en español.

Léela en español

このページは日本語でも読めます。

日本語で読む

本页也有简体中文版本。

阅读简体中文版本

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

  • permutation_power⁡([2,3,1],2)=(132)\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