Combination Calculator (nCr)
นับวิธีเลือก r รายการจาก n รายการ เมื่อลำดับไม่สำคัญ
ผลลัพธ์จะปรับปรุงเมื่อคุณพิมพ์
เกี่ยวกับเครื่องคิดเลขนี้
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! × (n − r)!). สำหรับ 10 รายการที่ใช้3ครั้งในเวลาเดียวกัน: 120 กลุ่มที่แตกต่างกัน
ทำไม nCr เล็กกว่า nPr
การรวมตัวกันจะไม่คำนึงถึงลำดับ ดังนั้น กลุ่มที่ไม่เรียงลำดับแต่ละกลุ่มจะตรงกับการเปลี่ยนแปลงที่เรียงลำดับ r! ดังนั้น nCr = nPr ÷ r!
ฉันควรใช้คู่มือเมื่อไหร่
เมื่อลำดับไม่สำคัญ เลขลอตเตอรี่ มือของบัตร การเลือกคณะกรรมการ หรือการเลือกใด ๆ ที่กลุ่มคือสิ่งที่สำคัญ ไม่ใช่การจัดเรียง
อะไรคือค่าคูณสองตัว
มันเป็นชื่ออื่นสำหรับ nCr ค่า "n เลือก r" ที่ปรากฏในทฤษฎีสองตัวเลข และเป็นส่วนหนึ่งของสามเหลี่ยมของปาสกาล
อะไรคือ nC0 หรือ nCn?
Both equal 1 — there is one way to choose none, and one way to choose all of them.
เครื่องมือนี้แสดงการเปลี่ยนแปลงได้หรือไม่
ใช่ มันแสดง nPr = nCr × r! ข้างๆการรวมตัวกัน ดังนั้นคุณจะสามารถเปรียบเทียบการนับที่เรียงลำดับและไม่เรียงลำดับได้
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);
ผลลัพธ์เป็นเพียงการประมาณการ สำหรับคำแนะนำทั่วไปเท่านั้น ไม่ใช่การเงิน การรักษา หรือคำแนะนำเกี่ยวกับภาษี