Permutation

Permutation: An arrangement of items where order matters. Picking a first, second and third place from a group is a permutation problem.

Eight runners and three ranked podium positions allow 8 × 7 × 6 = 336 outcomes. With the same eight people and an unranked three-person committee, there are 56 selections. Each committee corresponds to 3! = 6 possible rankings.

A four-digit code allowing repetition instead has 10⁴ outcomes, outside the no-reuse permutation model.

Permutation: interpretation pitfalls

Using the permutation formula for a committee or a hand of cards. Order is irrelevant in both, and the answer comes out inflated by a factor that grows with the selection size.

Permutation: comparisons with other measurements

The no-reuse model assumes distinct eligible items. Duplicate letters, repetition or positional restrictions change the counting problem.

Permutation: limits of the definition

A count becomes a probability only after an outcome model and equally likely cases, where applicable, are established.

Understanding Permutation

Order matters in a permutation. First, second and third place from the same three runners is a different result depending on who finished where. So every arrangement counts separately.

The gap against combinations grows fast: for any selection beyond a couple of items, the permutation count exceeds the combination count by the number of ways the chosen items can be ordered.

Using Permutation

Permutations count passwords, lock combinations, race results, seating plans, schedules and rankings. They underlie probability calculations for events where order matters. Programmers use them to generate test cases and to reason about search space.

Security analysts count them to estimate how long guessing would take; a calculator with an nPr function computes the count directly.

Permutation: follow the example through

Assumed example: Eight runners compete and the top three finish in gold, silver and bronze order; the number of possible podiums is 8 × 7 × 6, or 336. Order matters, so each different arrangement counts. Now a four-digit PIN.

If digits can repeat, there are 10 × 10 × 10 × 10 = 10,000 codes. If no digit may repeat, the count is 10 × 9 × 8 × 7 = 5,040, a permutation, and the ban on repeats cuts the guesses roughly in half; the formula is n factorial divided by (n − r) factorial. Each step leaves fewer choices, and the running product is the count.

Permutation: distinguish the related terms

Swapping the president and treasurer changes an assigned-officer outcome, while leaving the selected committee unchanged. Three distinct offices have six assignments for each three-person committee. Choosing 3 people out of 8 for a committee is a combination, 56 ways.

Assigning them to president, treasurer and secretary is a permutation, 336 ways, and the permutation count is always larger by a factor of r factorial. Permutations with repetition, like a PIN, allow reuse and use powers instead of a falling product. Permutations of items with duplicates, such as letters in a word, divide by the repeats.

Permutation: calculation reference

ₙPᵣ = n! ÷ (n−r)!; ₙCᵣ = n! ÷ (r!(n−r)!)

Permutation: assumed inputs and calculated quantities
QuantityEntered or calculated amountMeaning
n (total items)10Explicit example input.
r (items chosen)3Explicit example input.
Permutations (order matters)720Result under the listed assumptions.
Combinations (order doesn't matter)120Result under the listed assumptions.
Permutations (order matters) by n (total items)Permutation & Combination Calculator. Assumed n (total items) values and their calculated Permutations (order matters). r (items chosen): 3833695041072011990121,320
Permutations (order matters) by r (items chosen)Permutation & Combination Calculator. Assumed r (items chosen) values and their calculated Permutations (order matters). n (total items): 10110290372045,040530,240
Combinations (order doesn't matter) by n (total items)Permutation & Combination Calculator. Assumed n (total items) values and their calculated Combinations (order doesn't matter). r (items chosen): 3856984101201116512220

Permutation & Combination Calculator: change the inputs and compare the resulting cases

What is the formula for permutations?

nPr equals n factorial divided by (n − r) factorial. For choosing and ordering 3 from 8, it is 8 × 7 × 6, or 336.

How do repeated items change the count?

If some items are identical, divide by the factorial of each repeat. The word LEVEL has 5 letters with two Ls and two Es, so 5 factorial divided by (2 factorial times 2 factorial) gives 30 arrangements.

When are repeats allowed?

In a PIN or a code where symbols may repeat, the count is n raised to the power r. Four digits from ten give 10,000.

How do permutations relate to probability?

The chance of a specific ordered outcome is one divided by the number of permutations when all are equally likely. Getting a specific podium among 336 is 1 in 336.

For permutations, rearranging the same selected items creates a different outcome.

Permutation: other glossary lookups