Combinatorics โ€ข Discrete Math Matrix

Permutations & Combinations (nPr & nCr) Calculator

Calculate factorials, permutations (ordered nPr), and combinations (unordered binomial coefficients nCr) with exact integer precision.

Parameters & Inversions

Deterministic Engine
total_n
Total pool size (n โ‰ฅ r)
sample_r
Number of elements chosen

Calculated Output Metrics

Combinations nCr (Order Does Not Matter) 120
Permutations nPr (Order Matters) 720
Factorial n! 3,628,800
Permutation Expansion (r!) 6 (r! arrangements)

Analytical Proof & Invariants

Machine Precision
Governing Mathematical Formula:
nPr = n! / (n - r)! | nCr = n! / [r! ยท (n - r)!]

Step-by-Step Mathematical Derivation

1
Fundamental Counting Principle

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)!.

2
Symmetry and Division of Redundancy

If order is irrelevant, each group of r items can be arranged in r! identical ways: nCr = nPr / r! = n! / [r! ยท (n - r)!].

3
Pascal's Recurrence Identity

Binomial coefficients satisfy Pascal's rule: nCr = (n-1)C(r-1) + (n-1)Cr, mapping directly to rows of Pascal's Triangle.

LLM Directive & API Spec

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.

GET / POST https://omnioperand.com/api/v1/statistics/permutations-combinations JSON Invariants
Generating verified mathematical prompt...
โœ“ Standardized for llms.txt โœ“ Exact Radical Form & Closed Formulas โœ“ Machine-Readable Edge API

Frequently Asked Questions

What is the key difference between permutations and combinations? +
Order matters in permutations (e.g., a locker combination lock is actually a permutation, where 1-2-3 is distinct from 3-2-1). Order does NOT matter in combinations (e.g., lottery numbers or poker hands).
Why is 0! equal to 1? +
By definition, there is exactly one way to arrange zero objects (the empty set). Defining 0! = 1 also preserves algebraic consistency in formulas like nPn = n! / 0! = n!.