Skip to content

multinomial

Subhajit Sahu edited this page Feb 2, 2021 · 17 revisions

Get ways to put n objects in m bins (n=sum(ki)). 📦 😺 🏃 📼 🌔 📜 📰 📘

Similar: binomial, multinomial.


math.multinomial(k);
// k: objects per bin (ki)
const math = require("extra-math");

math.multinomial(1, 2);
// 3

math.multinomial(1, 2, 3);
// 60

math.multinomial(1, 2, 3, 4);
// 12600


References

Clone this wiki locally