Maxima Function
lgtreillis (n, m)
returns the list of partitions of weight n and length m.
(%i1) lgtreillis (4, 2); (%o1) [[3, 1], [2, 2]]
Also see: ltreillis, treillis and treinat.
ltreillis
treillis
treinat