Maxima Function
multinomial (r, part)
where r is the weight of the partition part. This function returns the associate multinomial coefficient: if the parts of part are i_1, i_2, ..., i_k, the result is r!/(i_1! i_2! ... i_k!).
r!/(i_1! i_2! ... i_k!)