
| ACE | BN | BNA | CG | CLG | COMP | FM | FREE | HEKA | IDCA | NCA | NCSF | PART | SFA | SGA | SP | SYMF | TAB | TYP |
FUNCTION: Perm2Desc - compute the list of descents of a permutation
CALLING SEQUENCE:
PARAMETERS:
SYNOPSIS:
EXAMPLES:
> with(SG):
> perm:=[3,1,4,2,6,5,7]:
> Perm2Desc(perm);
[1, 3, 5]
> Perm2Desc(perm, 'nb');
3
> Perm2Desc(perm, 'maj');
9
> Perm2Desc(perm, 'comaj');
12
SEE ALSO: Perm2Rise