合并计算器

计算在顺序不重要时从 n 项中选择 r 项的方法。

组合(nCr) —
公式 —
定序安排 —

输入结果时更新 。

这个计算器给你正确的答案了吗?

关于此计算器

A combination counts how many ways you can choose r items from a set of n when order does not matter — picking the same group in a different sequence counts once. This calculator returns the exact count, the formula, and the matching number of ordered arrangements (nPr) for comparison.

The formula is nCr = n! / (r! × (n − r)!). For 10 items taken 3 at a time there are 120 distinct groups. Combinations are always smaller than permutations because each unordered group corresponds to r! different orderings, so nCr = nPr ÷ r!. Choosing none or all gives nC0 = nCn = 1, and as with permutations, r cannot exceed n.

Combinations answer "how many groups?" — the odds in a lottery, the number of possible five-card poker hands, ways to pick a committee, or terms in a binomial expansion. The value nCr is also called the binomial coefficient, the "n choose r" number in Pascal's triangle.

经常问到的问题

什么是组合公式?

nCr = n! / (r! ) xx (n ~ r!) 。 10项一次3次拍摄: 120个不同组 。

为什么NCr小于nPr?

组合忽略顺序, 所以每个未排序的组都对应 r! 命令的排列。 这就是为什么 nCr = nPr!

我什么时候该用密码?

顺序不重要:彩票号码、一张牌手、选择一个委员会,或任何选择,如果集团是重要,而不是其安排。

什么是二元系数?

这是 nCr 的另一个名称, 即二进制定理中出现的“ n 选择 r” 值, 并构成 Pascal 三角形的条目 。

NC0 或 nCn 是什么东西?

Both equal 1 — there is one way to choose none, and one way to choose all of them.

此工具是否也显示变异?

是的,它显示 nPr = nCr × r! 与组合一起, 这样您就可以比较有顺序和无顺序的计数 。

❤️ 爱 Calculator.Free? 分享它

𝕏  X Facebook Reddit
API - 使用代码中的计算器

将此计算器称为自由 JSON 端点 。 不需要按键 。 将字段值发送到下面作为查询参数或 JSON 。 任何您省略的, 都会使用相同的默认值, 此页面预填的默认值是预填的; 未知参数是 400, 而不是静音零 。 读取 API 全部文件 →

终点

GET https://calculator.free/api/v1/combination/

curl

curl "https://calculator.free/api/v1/combination/?n=10&r=3"

JavaScript fetch()

const r = await fetch(
  "https://calculator.free/api/v1/combination/?" + new URLSearchParams({
    "n": "10",
    "r": "3"
  }));
const data = await r.json();
console.log(data.results);

成果仅是一般指导的估计数,而不是财务、医疗或税务咨询。