FUNCTION: Compo2MajorIndex - major index of a given composition
 
CALLING SEQUENCE:
-   Compo2MajorIndex(compo)
-   COMP[Compo2MajorIndex](compo)
-  
   
PARAMETERS:
- compo =  any list denoting a composition
 
 
SYNOPSIS:
-  The   Compo2MajorIndex   function computes  the major  index of a  given
  composition.   Let   I = [i_1, i_2, ..., i_m]   be a composition,   then
  Compo2MajorIndex(I)  is set to be  (m-1) i_1 + (m-2) i_2 + ... + i_{m-1}.
 
 
-  Whenever there is a conflict between the function name  Compo2MajorIndex
  and another  name  used  in  the  same  session,  use  the   long   form
  COMP['Compo2MajorIndex'].
 
 
EXAMPLES:
> with(COMP):
> Compo2MajorIndex([2,3,1,2]);
 
                                      13
 
SEE ALSO: