Multinomial Coefficient Calculator

Compute the multinomial coefficient from the total and category counts.

📐 计算公式
多项式系数(本页代码口径):n!/(k1!k2!k3!) 表示把 n 个不同对象分成三组(数量分别为 k1、k2、k3)的方案数。校验:n 与 k1–k3 必填且为非负整数(允许 0 组),空值、小数、负数报错;必须满足 k1+k2+k3=n;为控制体量 n 上限 1000。计算用 BigInt 精确阶乘与整除,结果显示完整精确整数(千分位),不再受 Number 2⁵³ 限制。

输入总数 n 与三个类别数 k₁、k₂、k₃(和为 n),求多项式系数。

Formula & Standard References

Item Formula / Note Source / Standard
Multinomial coefficient n! / (n1! · n2! · ... · n_k!), where the n_i sum to n Brualdi RA, Introductory Combinatorics (5th ed.), Pearson
Multinomial theorem The coefficient of x1^n1 · ... · x_k^n_k in the expansion of (x1 + ... + x_k)^n Brualdi RA, Introductory Combinatorics (5th ed.)
Reduction to the binomial case For k = 2 it reduces to the binomial coefficient C(n, n1) Brualdi RA, Introductory Combinatorics (5th ed.)
Multiset permutations The number of permutations of a multiset where identical items are indistinguishable Feller W., An Introduction to Probability Theory and Its Applications, Vol. 1
📌 计算说明
  • 多项展开项的系数。
  • 6!/(3!2!1!) → 60。