-
Notifications
You must be signed in to change notification settings - Fork 0
multinomial
Subhajit Sahu edited this page Aug 7, 2022
·
2 revisions
Find the number of ways to put n objects in m bins (n=sum(kᵢ)).
Similar: factorial, binomial, multinomial.
function multinomial(...ks)
// ks: objects per bin (kᵢ)
const {multinomial} = require('extra-number');
multinomial(1, 2);
// → 3
multinomial(1, 2, 3);
// → 60
multinomial(1, 2, 3, 4);
// → 12600