ACE BN BNA CG CLG COMP FM FREE HEKA IDCA NCA NCSF PART SFA SG SGA SP SYMF TAB TYP

FUNCTION: Perm2Desc - compute the list of descents of a permutation

CALLING SEQUENCE:

Perm2Desc(perm)
SG[Perm2Desc](perm)

PARAMETERS:

perm = any list denoting a permutation

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