What you provide
What you provide
- A whole-number population size n
- A whole-number selection size r no greater than n
COUNTING / ORDERED OR UNORDERED
Count exact ordered permutations and unordered combinations for selecting r distinct items from n distinct items without floating-point rounding.
Use boundary
A descending exact-integer product calculates ordered selections, then division by r factorial removes ordering to produce combinations. BigInt arithmetic keeps very large integer answers exact.
nCr = n! / (r!(n-r)!); nPr = n! / (n-r)!
What you provide
What you receive
Use boundary
The model assumes distinct items selected without replacement. Repeated items, replacement, circular arrangements, and constrained choices require different counting rules.
Use consistent units and preserve more precision than the displayed result when carrying an answer into another calculation.
Reviewed reference factors