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

FUNCTION: ListPart - list of partitions of a given weight

CALLING SEQUENCE:

ListPart(n)
PART[ListPart](n)

PARAMETERS:

n = any non negative integer

SYNOPSIS:

EXAMPLES:


> with(PART):
> ListPart(4);
 
              [[4], [3, 1], [2, 2], [2, 1, 1], [1, 1, 1, 1]]
 
> ListPart(5, 'maxlg'=3);
 
                [[5], [4, 1], [3, 2], [3, 1, 1], [2, 2, 1]]
 
> ListPart(5, 'maxpart'=[3,2], 'maxlg'=3);
                         [[3, 2], [3, 1, 1], [2, 2, 1]]
 
> ListPart(100, 'nb');
                                   190569292
 

SEE ALSO: ListPartIn ListSkewDiag