N!/(n1! n2! ... nk!). When sum(ns) < N the leftover items form one extra implicit committee (Morin's remark below eq (1.35)).
Value
list(ns, N, coefficient, assignments); assignments is an alias of coefficient kept for eq (1.35) callers.
References
Morin, D. J. (2016). Probability: For the Enthusiastic Beginner. Createspace. Eqs. (1.35), (1.37).
Examples
Multinom(c(3, 2, 5))$coefficient
#> [1] 2520
