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。