User Rating 0.0
Total Usage 0 times
Possible Outcomes
10
Calculated using BigInt
Is this tool helpful?

Your feedback helps us improve.

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 nr ≥ 0.

combinatorics probability permutations statistics factorial

Formulas

The calculator uses the optimized multiplicative formulas to reduce overflow risks during intermediate steps.

Permutation: ri=1 (ni + 1)
Combination: 1r! ri=1 (ni + 1)

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

ConceptNotationFormulaOrder Matters?Repetition?
PermutationP(n,r)n!(nr)!YESFALSE
CombinationC(n,r)n!r!(nr)!NOFALSE
Repetitive PermutationnrnrYESTRUE
Multiset CoefficientH(n,r)(n + r − 1)!r!(n − 1)!NOTRUE

Frequently Asked Questions

Think of a safe vs. a salad. In a "Combination" (Salad), the order of ingredients (Lettuce, Tomato, Onion) doesn't matter; it's the same salad. In a "Permutation" (Safe Lock), the order (12-30-5) is critical; 30-12-5 will not open the safe. If order implies a different outcome, use nPr.
Combinatorics generate numbers that grow incredibly fast. 52 factorial (the number of ways to shuffle a deck of cards) has 68 digits. To maintain a responsive UI and memory safety, results exceeding 30 digits are formatted scientifically, though internal calculations retain BigInt precision where possible.
By definition in mathematics, 0! = 1. This is an empty product convention allowing combinatorial formulas to work consistently. Our engine validates n and r such that if r=0 or n=r, the result returns 1 immediately.
Geometric expansion. Generating a list of all combinations is a O(2^n) complexity task. While calculating the count is instant, rendering 20 items (2^20) would generate over 1,000,000 visual elements, which would freeze your browser. We cap the visual generator at N=12 (4096 items) for performance.