🎲 Combinations Calculator C(n,r)

📐 工作原理与说明
组合数 C(n,r) = n! / (r! · (n−r)!);对称性 C(n,r) = C(n, n−r);递推 C(n,r) = C(n−1,r−1) + C(n−1,r)
本校验工具依据对应数据格式与语法规范进行合法性检查,实时给出校验结果与错误定位;纯前端运行,代码不离开浏览器。 工具名称:组合数计算 - 科学研究领域的在线工具。

Compute the number of ways to choose r items from n without repetition using C(n,r) = n! / (r!(n−r)!).

从 n 个不同元素中取 r 个的组合数:C(n,r) = n! / (r!·(n−r)!)

查看具体方案(可选)Browse actual combinations (optional)

关闭去重时,相同文本按出现位置区分(显示为 [1] A、[2] A)。方案数超过 500 时只计算数量,不展开列表。When dedupe is off, identical text is distinguished by position ([1] A, [2] A). Above 500 schemes only the count is shown.

📚 深度解析:组合数 C(n, r)

💡 常见使用场景

  • 从 n 个取 r 个不计顺序。
  • 抽奖选号或分组时计算不重复的组合总数。
计算
C(10,3)=10!/(3!·7!)=120。

❓ 常见问题(FAQ)

组合与排列?
组合不计顺序 C(n,r),排列计顺序 P(n,r)=C·r!。
允许重复怎么算?
可重组合数为 C(n+r−1, r)。

Formula & Standard References

Item Formula / Note Source / Standard
Combination C(n,r) = n! / (r!·(n−r)!) Combinatorics; Pascal triangle
⚠️ 使用说明与注意事项