Compute exact binomial coefficients C(n, k) and permutations P(n, k) using precise integer arithmetic. Ideal for combinatorics, probability theory, statistical experiments, and algorithm analysis.
In discrete mathematics, combinations (C(n,k) or binomial coefficients) count the number of ways to choose k items from n distinct items without regard to order. Permutations (P(n,k)) count ordered arrangements of k items selected from n. These fundamental concepts drive probability theory, statistical inference, cryptography, and algorithm design.
\[ \binom{n}{k} = \frac{n!}{k!\,(n-k)!}, \quad P(n,k) = \frac{n!}{(n-k)!} \]
Where n! (factorial) = n × (n-1) × ... × 1, with 0! = 1.
Many online tools approximate large combinatorial numbers using floating‑point arithmetic, leading to loss of precision. Our calculator uses BigInt arithmetic to deliver exact integer results even for values like C(200, 100) — essential for rigorous combinatorial proofs, cryptography key space analysis, and lottery odds.
Binomial coefficients satisfy Pascal’s identity: C(n, k) = C(n-1, k-1) + C(n-1, k). This recurrence forms the famous Pascal’s triangle, where each entry is the sum of the two above. Permutations follow a multiplicative pattern: P(n,k) = n × (n-1) × ... × (n-k+1). Our implementation leverages multiplicative product formulas to minimize intermediate factorial blow‑up and guarantee speed.
Consider a 6/49 lottery where you pick 6 numbers from 49. The total number of possible tickets is C(49,6) = 13,983,816. Winning the jackpot requires matching all 6 numbers: probability ≈ 1 / 13.98 million. Understanding permutations also matters for “order matters” lotteries (e.g., exact sequence). Our calculator provides exact combinatorial numbers to help educators and analysts illustrate the long odds and risk assessment.
| Scenario | n, k | Combinations C(n,k) | Permutations P(n,k) | Interpretation |
|---|---|---|---|---|
| Poker hand (5 cards) | 52,5 | 2,598,960 | 311,875,200 | Unordered vs ordered hands |
| Committee selection | 15,4 | 1,365 | 32,760 | Choosing 4 people vs assigning roles |
| Binary strings length n | n,k | C(n,k) | — | Number of strings with k ones |
| Password possibilities (digits) | 10,6 | 210 | 151,200 | 6‑digit codes with/without repetition restriction |
| Scenario | Formula | Example | Result |
|---|---|---|---|
| Selecting a committee (order irrelevant) | C(15,4) | Choose 4 members from 15 | 1,365 |
| Assigning president, VP, secretary | P(15,3) | Ordered roles from 15 | 2,730 |
| Poker hand (5 cards from 52) | C(52,5) | unordered hand | 2,598,960 |
| 4‑digit PIN (digits 0‑9, no repeat) | P(10,4) | ordered sequence | 5,040 |