MathematicsDiscrete MathematicsMedium

Permutation

Also known as:Ordered ArrangementnPr

A permutation is an arrangement of all or part of a set of objects in a specific order, where the order of selection matters. The number of permutations of r objects chosen from n distinct objects is denoted P(n, r) or nPr. Permutations are central to combinatorics, probability theory, and appear in computing contexts such as sorting algorithms and cryptography.

Key Formula

P(n, r) = n! / (n − r)!

LaTeX: P(n, r) = \frac{n!}{(n - r)!}

SymbolMeaningUnit
nTotal number of distinct objectscount
rNumber of objects selectedcount
n!n factorial = n × (n−1) × … × 1dimensionless
P(n,r)Number of ordered arrangementscount

Worked Example

Problem

In a race with 8 runners, in how many ways can the gold, silver, and bronze medals be awarded (all to different runners)?

Solution

Step 1: Identify n and r. — n = 8 (total runners), r = 3 (medals to assign) Step 2: Apply the permutation formula. — P(8, 3) = 8! / (8 − 3)! = 8! / 5! Step 3: Expand. — 8! = 40320, 5! = 120 — P(8, 3) = 40320 / 120 = 336 Alternatively: 8 × 7 × 6 = 336.

Answer

There are 336 ways to award the three medals from 8 runners.

Permutation Values P(n, r) for Small n and r

n \ rr = 1r = 2r = 3r = n (all)
n = 33666
n = 44122424
n = 552060120
n = 6630120720
n = 885633640320

Interactive Tools

Wolfram Alpha — Permutation Calculator

Compute P(n,r) and factorial values instantly.

Open Tool

Khan Academy — Permutations

Video lessons on the permutation formula with worked examples.

Open Tool

Brilliant — Combinatorics

Comprehensive combinatorics course covering permutations and combinations.

Open Tool
Diagram showing all permutations of three coloured objects

Wikimedia Commons, CC BY-SA

Related Terms

From Latin "permutatio" (a thorough change), from "per" (thoroughly) + "mutare" (to change). The mathematical study of permutations was formalised by Gottfried Leibniz and later by Augustin-Louis Cauchy in the 19th century.

permutationcombinatoricsdiscrete-mathematicsfactorialcountingprobability