Combination & Permutation Calculator
Advanced combinatorics engine. Calculate nCr and nPr with step-by-step big number logic, Pascal's triangle visualization, and subset generation.
About
In statistical mathematics, the distinction between order and selection is the fundamental barrier to accuracy. This tool bridges that gap by resolving the two primary distinct functions of combinatorics: Combination (nCr) and Permutation (nPr).
Miscalculation in probability theory often stems from ignoring boundary conditions. Factorials scale super-exponentially; calculating outcomes for just n=100 exceeds the atoms in the universe. This engine utilizes BigInt arithmetic to process standard combinatorial explosion without floating-point errors, strictly handling values where n ≥ r ≥ 0.
Formulas
The calculator uses the optimized multiplicative formulas to reduce overflow risks during intermediate steps.
Where n is the total set size and r is the subset size. The logic automatically cancels terms before division to maximize precision.
Reference Data
| Concept | Notation | Formula | Order Matters? | Repetition? |
|---|---|---|---|---|
| Permutation | P(n,r) | n!(n − r)! | YES | FALSE |
| Combination | C(n,r) | n!r!(n − r)! | NO | FALSE |
| Repetitive Permutation | nr | nr | YES | TRUE |
| Multiset Coefficient | H(n,r) | (n + r − 1)!r!(n − 1)! | NO | TRUE |