Permutation, Combination & Factorial Calculator

HOT

Calculate permutations (nPr), combinations (nCr), repeated combinations, and factorials (n!) with step-by-step reduction.

ADVERTISEMENT · TOP BANNER

Responsive 728x90 / 320x100 Ad Slot

(CLS Prevention Active · Zero Shift)
100% Client-Side Processing (Zero Server Upload, Complete Privacy)
Interactive Client Mode
Presets:

Total number of available items

Number of items to choose or arrange

Total PossibilitiesnCr = n! / (r! × (n - r)!)
8,145,060
Steps:45C6 = (45! ) / (6! × 39!)
100% BigInt Precision
ADVERTISEMENT · HIGH CTR IN-FEED

Native In-Feed / High Viewability Ad Slot

(CLS Prevention Active · Zero Shift)

Comprehensive Guide to Permutations (nPr), Combinations (nCr), and Factorials (n!)

Combinatorics forms the bedrock of modern quantitative disciplines, spanning cryptography entropy calculations, algorithm complexity evaluations, poker odds estimation, and machine learning hyperparameter grid search.

The fundamental decision when counting possibilities lies in two dimensions: does order matter (Permutation vs Combination), and are items allowed to repeat (Without vs With Repetition). Choosing the wrong model yields errors varying by orders of magnitude.

OrvoKit Permutation and Combination Calculator delivers exact mathematical solutions for factorials (n!), permutations (nPr), combinations (nCr), repeated permutations (nΠr), multiset combinations (nHr), and circular arrangements using native BigInt precision.

Mathematical Foundations of Combinatorial Operations

Derivation of fundamental formulas based on factorial algebra and division by symmetry groups.

Core Combinatorial Formula SetMathematical Formulation
nPr = n! / (n - r)! nCr = n! / (r! × (n - r)!) = nPr / r! nΠr = n^r nHr = (n + r - 1)Cr

Combinations divide permutations by r! to neutralize the internal ordering of selected items. Repeated combinations (nHr) utilize the classic Stars and Bars bijection method into an ordinary combination.

Calculating winning odds for a 6/45 lottery draw
Formula SelectionChoosing 6 unique numbers out of 45 without replacement where order does not matter: 45C645! / (6! × 39!)
Numerator Expansion45 × 44 × 43 × 42 × 41 × 405,864,443,200
Denominator Expansion6 × 5 × 4 × 3 × 2 × 1720
Final Division5,864,443,200 / 7208,145,060

👉 The exact probability of jackpot victory is 1 in 8,145,060.

Combinatorial Models Classification Matrix

Four quadrants based on order sensitivity and item replacement

SymbolNameOrder Matters?Replacement?FormulaReal-World Application
n!FactorialYes (Full order)Non × (n-1) × ... × 1Sequencing 5 sprinters across a finish line
nPrPermutationYes (Ranked slots)Non! / (n - r)!Electing President, VP, and Treasurer from 10 peers
nCrCombinationNo (Set subset)Non! / (r!(n - r)!)Drawing 6 winning balls in a national lottery
nΠrPermutation w/ RepetitionYes (Position specific)Yesn^r4-digit numeric PIN password permutations (10^4)
nHrCombination w/ RepetitionNo (Tally counts)Yes(n + r - 1)CrSelecting 5 scoops from 3 ice cream flavors
(n-1)!Circular PermutationRotational EquivalenceNo(n - 1)!Arranging 6 guests around a round dining table
ADVERTISEMENT · IN-ARTICLE CONTENT

High-Engagement In-Article Native Ad Slot

(CLS Prevention Active · Zero Shift)

How to Use

11. Select Calculation Mode

Choose between Combination (nCr), Permutation (nPr), Factorial (n!), Repeated Permutation, Repeated Combination, or Circular Permutation.

22. Input Total Items (n)

Enter the total pool size n as a non-negative integer.

33. Input Chosen Items (r)

Specify the number of items r to be selected or arranged (not required for n! and circular).

44. Review Steps & Copy

Inspect the exact step-by-step reduction formula and click [Copy Result] to save the formatted output.

Practical Industrial & Academic Use Cases

Everyday implementations in computer science, statistics, and game theory

Password Entropy Estimation

Evaluating a password space of 94 ASCII characters over 8 positions yields 94^8 = 6.09×10^15 combinations to estimate brute-force cracking resistance.

Poker Hand Probability Modeling

Drawing 5 cards from a 52-card deck produces 52C5 = 2,598,960 total hands, used to set pay tables for video poker and card games.

Randomized Clinical Trial Cohort Assignment

Assigning 20 patients to a treatment group out of 100 participants leverages 100C20 to ensure unskewed randomized control trials.

💡 Expert Tips and Common Calculation Pitfalls

✓ Use Symmetry (nCr = nCn-r)

When computing 100C98, compute 100C2 instead: (100 × 99) / 2 = 4,950, avoiding 98 redundant multiplications.

✓ BigInt for Factorials > 20

Standard IEEE-754 double precision floats overflow above 21!. Always use arbitrary precision BigInt for exact factorials.

✓ The Stars and Bars Metaphor

To solve nHr, imagine placing n-1 separators between r identical stars, producing (n+r-1)Cr slots.

⚠️ Common Pitfalls & Mistakes to Avoid

❌ Assuming 0! = 0
✅ There is exactly 1 way to arrange an empty set; therefore mathematically 0! = 1, and nP0 = nC0 = 1.
❌ Trying to pick r > n without replacement
✅ In standard permutations and combinations without repetition, you cannot select more items than available; the answer is strictly 0.

Frequently Asked Questions (FAQ)

Expert answers to the most frequently asked questions and edge cases.

6 Q&As

Permutations account for the sequence or position of items (e.g. 1st, 2nd, 3rd place). Combinations treat groups as identical regardless of order (e.g. a team of 3 committee members).

ADVERTISEMENT · FOOTER BANNER

Wide Responsive Banner

(CLS Prevention Active · Zero Shift)