Permutations & Combinations (nPr & nCr) Calculator
Calculate factorials, permutations (ordered nPr), and combinations (unordered binomial coefficients nCr) with exact integer precision.
Parameters & Inversions
Deterministic EngineCalculated Output Metrics
Analytical Proof & Invariants
Machine PrecisionnPr = n! / (n - r)! | nCr = n! / [r! ยท (n - r)!]
Step-by-Step Mathematical Derivation
Selecting r elements in order from n items yields n choices for the first, (n - 1) for the second, ..., down to (n - r + 1): nPr = n! / (n - r)!.
If order is irrelevant, each group of r items can be arranged in r! identical ways: nCr = nPr / r! = n! / [r! ยท (n - r)!].
Binomial coefficients satisfy Pascal's rule: nCr = (n-1)C(r-1) + (n-1)Cr, mapping directly to rows of Pascal's Triangle.
Artificial Intelligence & Prompt Integration
Paste this verified mathematical prompt directly into ChatGPT, Claude, or Gemini to eliminate arithmetic hallucination, or invoke the programmatic API endpoint for automated workflows.
Generating verified mathematical prompt...
llms.txt
โ Exact Radical Form & Closed Formulas
โ Machine-Readable Edge API