Utilvo Studio100% Client-Side Suite
HomeCalculatorsPermutation Combination Calculator
Discrete Mathematics, Combinatorics & Probability Theory

Permutation & Combination Calculator

Solve linear permutations (nPr), combinations (nCr), circular arrangements, and multiset anagrams with or without repetition. Explore step-by-step factorial breakdowns and Pascal's triangle binomial coefficients.

Total Arrangement Combinations

120

Solved

Alternate Counting Perspectives

Complement nCn-r120
Total Factorial (n!)3628800

Pascal's Triangle Alignment Map (Row n = 10)

10C01
10C110
10C245
10C3120
10C4210
10C5252
10C6210
10C7120
10C845
10C910
10C101

Pascal row highlighted bubble matches combinations select parameter index (r = 3).

Factorial Cancellation Steps

Combinations without repetition formula: nCr = n! / (r! * (n - r)!)
10C3 = 10! / (3! * 7!)
Simplified top & bottom cancellation: (10 × 9 × 8) / (1 × 2 × 3)
Solved Value = 120

Mathematical Foundations of Combinatorics & Counting Principles

Rigorous mathematical formulations for factorials, permutations, combinations, and multiset partitions

Combinatorics is the branch of discrete mathematics dedicated to counting, arranging, and grouping finite sets of discrete objects. The fundamental governing question is two-fold: Does the sequential order of elements matter? and Can an individual element be selected more than once (repetition/replacement)?

1. Permutations without Repetition (nPr):
P(n, r) = n! / (n - r)!
Sequential arrangements of r elements chosen from n distinct items where each item can only be used once.
2. Permutations with Repetition:
P_rep(n, r) = n^r
Sequential sequences where each of the r positions has n independent possible choices (e.g., PIN codes).
3. Combinations without Repetition (nCr):
C(n, r) = n! / [r! × (n - r)!]
Unordered selections of r items from n distinct objects; equals nPr divided by r! order permutations.
4. Combinations with Repetition (Multisets):
C_rep(n, r) = (n + r - 1)! / [r! × (n - 1)!]
Classic “stars and bars” theorem partitioning r identical tokens into n distinct categorical bins.

Circular and Multiset Anagram Formulations

When arrangements are arranged around a circle with rotational symmetry, or when rearranging strings with duplicated characters, specialized divisor corrections apply:

Circular Permutations:
P_circle = (n - 1)!  |  Bracelet = (n - 1)! / 2
Divided by n because rotating an arrangement does not alter the relative ordering of circular seats.
Multiset Anagram Permutations:
P_multi = n! / (k₁! × k₂! × ... × k_m!)
Corrects for identical symbol symmetries where k_i represents the frequency count of each duplicate symbol.

The Four Combinatorial Counting Regimes: Comparative Matrix

Systematic classification across order dependency, repetition allowances, and sample evaluations for n=5, r=3

Counting RegimeOrder Matters?Repetition Allowed?Mathematical FormulaRepresentative Real-World ScenarioEvaluation (n=5, r=3)
Linear Permutations (nPr)YesNon! / (n - r)!Awarding Gold, Silver, Bronze medals to 3 racers60 arrangements
Permutations with RepetitionYesYesn^r3-digit PIN codes formed using digits 1 through 5125 sequences
Linear Combinations (nCr)NoNon! / [r!(n - r)!]Electing a 3-person delegation from 5 candidates10 groups
Combinations with RepetitionNoYes(n + r - 1)! / [r!(n - 1)!]Selecting 3 scoops of gelato from 5 available flavors35 selections
Circular PermutationRelativeNo(n - 1)!Seating 5 board members around an unnumbered table24 round seatings
Multiset Anagram PermutationYesFixed Freqn! / (k₁! k₂! ...)Letter rearrangements of the word “APPLE” (P repeats 2x)60 anagrams

Frequently Asked Questions

Authoritative mathematical explanations of permutations, combinations, multisets, and factorial algorithms

What is the fundamental mathematical distinction between permutations (nPr) and combinations (nCr)?

In permutations, the sequential order of selection matters strictly (e.g., electing President, Vice President, and Treasurer where {A, B, C} is distinct from {B, A, C}). In combinations, order is irrelevant (e.g., picking a 3-person delegation where {A, B, C} and {B, A, C} represent the identical group). Consequently, nPr is always equal to nCr multiplied by r! (the number of ways to arrange the selected r elements).

How does the combination formula with repetition (multisets) work mathematically?

Combinations with repetition allow selecting r elements from n categories where elements can be chosen more than once. Using the classical 'stars and bars' theorem, this is modeled as partitioning r identical objects among n distinct bins using n - 1 dividers: (n + r - 1) choose r = (n + r - 1)! / [r! × (n - 1)!]. For example, selecting 3 donuts from 4 varieties yields (4 + 3 - 1) choose 3 = 6 choose 3 = 20 distinct flavor bundles.

Why does circular permutation use the formula (n - 1)! instead of n!?

In a linear arrangement of n objects, there are n distinct positions (first through last). In a circle without fixed reference seats, rotating every person one position clockwise creates a geometrically identical relative arrangement. Because every circular configuration can be rotated into n equivalent linear permutations, we divide linear permutations by n: n! / n = (n - 1)!. If reflections (flipping a necklace over) are also identical, the formula becomes (n - 1)! / 2.

How are permutations of multisets with duplicate elements calculated?

When rearranging a set of n total items containing duplicate identical symbols (such as letters in the word MISSISSIPPI where n=11 with 1 M, 4 Is, 4 Ss, and 2 Ps), standard n! overcounts identical permutations. The multinomial coefficient formula divides n! by the product of the factorials of each item's frequency: n! / (k_1! × k_2! × ... × k_m!). For MISSISSIPPI, this yields 11! / (1! × 4! × 4! × 2!) = 34,650 unique anagrams.

Why is zero factorial (0!) mathematically defined as 1?

In combinatorics, 0! represents the number of ways to arrange zero items, which is exactly one way (the empty set). Algebraically, the recursive definition of factorial states that n! = n × (n - 1)!. Setting n = 1 yields 1! = 1 × (1 - 1)! = 1 × 0!. Dividing both sides by 1 gives 0! = 1. This definition preserves the consistency of the combination formula n choose n = n! / [n! × 0!] = 1.