combinat
multinomial
compute the multinomial coefficients
Calling Sequence
Parameters
Description
Examples
multinomial(n, k1, k2, ..., km)
n
-
a positive integer
k1, k2, ..., km
positive integers whose sum is n
The procedure multinomial(n, k1, k2, ..., km) computes the multinomial coefficient denoted nk1,k2,…,km equal to nk1!k2!⋯km! where it is assumed that n=k1+k2+⋯+km . If n≠0, then it is also assumed that 0<m; that is, there are at least 2 arguments.
The command with(combinat,multinomial) allows the use of the abbreviated form of this command.
withcombinat,multinomial
multinomial8,2,6
28
binomial8,2
multinomial8,2,3,3
560
See Also
binomial
Download Help Document