Permutations Calculator nPr and With Replacement
Calculate ordered arrangements instantly. Choose standard nPr or permutations with replacement. Accurate formulas, step by step results.
| Step | Expression | Value |
|---|
Quick Reference: Common Permutation Values
Permutation values below use standard nPr without replacement. Use this table as a fast lookup for small sets.
| n (objects) | r (chosen) | P(n,r) | PR(n,r) = nr |
|---|
What Is a Permutation?
A permutation is an ordered arrangement of elements taken from a set. When calculating permutations, the order of selection matters. Choosing item A then item B is treated as a different outcome than choosing B then A.
Permutations appear in everyday situations including race finishing positions, password sequences, seating arrangements, and task scheduling. Any time the sequence of choices changes the meaning of the result, you are working with a permutation.
Permutations Without Replacement (nPr)
Standard nPr permutations assume each element can only be chosen once. Once an item is selected, it is removed from the available pool. The formula is:
Where n is the total number of objects and r is the size of the ordered sample.
Permutations With Replacement PR(n,r)
Permutations with replacement allow each element to be selected more than once. The set size stays constant for every selection. The formula is much simpler:
Each of the r positions can independently hold any of the n values.
How the Permutation Formulas Work
Understanding these formulas helps you apply them to real problems without guessing which one to use.
Breaking Down P(n,r) = n! / (n-r)!
The factorial n! counts every possible ordering of all n items. Dividing by (n-r)! removes the orderings of the items that were never selected. What remains is the count of ordered arrangements of exactly r items from n.
P(10, 3) = 10! / (10 − 3)! = 3,628,800 / 5,040 = 720 arrangements
Breaking Down PR(n,r) = nr
Because each of the r positions can hold any of the n items independently, the total count is n multiplied by itself r times. This grows very rapidly as r increases.
PR(10, 4) = 104 = 10,000 possible PINs
Factorial Notation Explained
The factorial of a number n, written n!, is the product of all positive integers from 1 to n. For example, 5! = 5 x 4 x 3 x 2 x 1 = 120. By convention, 0! = 1. Factorials grow extremely fast, which is why permutation counts for large n can be astronomically large.
Permutations vs Combinations at a Glance
Permutations and combinations are closely related, but the key distinction is whether order matters. This comparison table clarifies when to use each method.
| Method | Order Matters? | Replacement? | Formula | Example |
|---|---|---|---|---|
| Permutation nPr | Yes | No | n! / (n-r)! | Race finishing positions |
| Permutation PR(n,r) | Yes | Yes | nr | PIN codes, passwords |
| Combination nCr | No | No | n! / (r! x (n-r)!) | Lottery ticket numbers |
| Combination with Replacement | No | Yes | (n+r-1)! / (r! x (n-1)!) | Choosing flavors with repeats |
Worked Examples for Every Case
Worked examples make abstract permutation formulas concrete and easy to apply.
Horses in a Race (nPr)
You are predicting the top 3 finishers from a field of 8 horses. The positions (1st, 2nd, 3rd) matter. You need P(8, 3).
Rolling Dice in Sequence (Replacement)
You roll a standard 6-sided die 5 times and record the full sequence of results. Each roll is independent, so this is permutations with replacement.
Letters in a Word (nPr)
From the 26 letters of the alphabet, how many distinct 5-letter sequences can be made if no letter repeats?
Digital Lock Codes (Replacement)
A digital padlock has 3 dials each showing digits 0 through 9. How many total combinations exist?
Real World Uses of Permutation Calculations
Real world uses of permutation calculations appear across technology, sports, security, and science.
Cybersecurity and Passwords
Password strength is directly related to permutation counts. An 8-character password using 94 printable ASCII characters gives PR(94, 8) = 948 which is over 6 quadrillion possibilities. This is why length and character variety dramatically increase password security.
Sports and Competitions
Tournament brackets, race finish positions, and playoff seedings all involve permutations. Betting markets use permutation counts to calculate the total number of possible outcomes, which in turn determines odds pricing.
Genetics and Biology
Protein sequences are ordered chains of amino acids. With 20 standard amino acids and proteins that can be hundreds of units long, permutation counts become astronomically large. This is why even slight variations in sequence can produce entirely different proteins.
Scheduling and Planning
Assigning tasks to time slots, routing delivery vehicles, and scheduling staff shifts all require calculating ordered arrangements. Operations research software uses permutation-based algorithms to find optimal solutions among vast possibility spaces.
Frequently Asked Questions
Frequently asked questions about permutations cover the most common points of confusion between formulas, methods, and use cases.