partition



hi alexandre,

> Is there something in Maxima to get the "partition" of an integer n in m
> parts, [...]

i see that there are some functions about partitions in src/nset.lisp --
http://cvs.sf.net/viewcvs.py/maxima/maxima/src/nset.lisp?rev=1.3&view=markup
is the most recent revision.

not sure whether any of those functions (set_partitions, integer_partitions,
num_partitions, and num_distinct_partitions) is exactly what you're looking
for, or if you could use them as the basis of a solution.
barton willis and stavros macrakis would know more about it (if they're around).

nset is not yet part of any released maxima, but you should be able
to download the cvs file and load ("nset.lisp"); .

hth,
robert dodier