muEC::SG::Code2Perm – calculates a permutation from its code
The muEC::SG::Code2Perm function calculates a permutation from its Lehmer code.
Let be the code of perm, then
is equal to the number of indices
such that
.
The argument n specifies the degree of the symmetric group.
Call:
muEC::SG::Code2Perm(code, <n>)
Parameters:
code: |
a list denoting the code of a permutation |
n: |
the degree of a symmetric group |
Related Functions:
muEC::SG::Code2Perm( [2,4,0,1] );
muEC::SG::Code2Perm( [2,4,0,1], 8 );