Loading…

Permutation Calculator: What It Computes and the Formulas Used

In statistics, what does a permutation calculator compute, and how are permutations \(P(n,r)\) calculated (with and without repetition)?

Subject: Statistics Chapter: Discrete Random Variables and Their Probability Distributions Topic: Factorials Combinations and Permutations Answer included
permutation calculator permutations nPr P(n r) factorial counting principle ordered arrangements permutations with repetition
Accepted answer Answer included

A permutation calculator counts how many different ordered arrangements are possible under a specified rule. The defining feature of a permutation is that order matters: changing the order produces a different outcome.

1) Core idea: “order matters”

If an outcome records positions (first, second, third) or a sequence (code, ranking, lineup), then it is an ordered arrangement and permutations are appropriate. If an outcome records only a set (a chosen committee), then combinations are appropriate.

Quick test: If swapping two selected items changes the outcome, the situation is a permutation.

2) Main formulas used by a permutation calculator

Situation What is being counted Formula Typical wording
Without repetition (distinct items), choose \(r\) from \(n\) Ordered selections of length \(r\) with no repeats \(P(n,r)=\dfrac{n!}{(n-r)!}\) “arrange \(r\) out of \(n\)”
Full permutation of \(n\) distinct items All possible orderings of all \(n\) items \(n!\) “arrange all \(n\)”
With repetition allowed, length \(r\) from \(n\) choices Ordered sequences where repeats are allowed \(n^r\) “codes, passwords, outcomes with replacement”

3) Why \(P(n,r)=\dfrac{n!}{(n-r)!}\) is correct

Consider filling \(r\) labeled positions (position 1 through position \(r\)) from \(n\) distinct items with no repetition. The first position has \(n\) choices, the second has \(n-1\), continuing until the \(r\)-th position has \(n-r+1\).

\[ P(n,r)=n \cdot (n-1) \cdot (n-2) \cdot \ldots \cdot (n-r+1). \]

The factorial form matches this product:

\[ P(n,r)=\frac{n!}{(n-r)!}. \]

Permutation slot diagram for P(n,r) Three labeled slots filled without repetition from n items, showing the decreasing counts n, n-1, n-2 and the product rule. Ordered positions (no repetition) Position 1 \(n\) choices Position 2 \(n-1\) Position 3 \(n-2\) \(\times\) \(\times\) Product rule: \(n \cdot (n-1) \cdot (n-2) = P(n,3)\) In general: \(P(n,r)=n \cdot (n-1) \cdot \ldots \cdot (n-r+1)\)
A permutation calculator often applies the product rule across ordered positions: each new position has one fewer available choice when repetition is not allowed.

4) Worked example a permutation calculator would solve

Problem: 7 distinct students are available; how many ways can 3 class officer positions (President, Vice President, Secretary) be filled with no repeats? The positions are distinct, so order matters and a permutation is required.

\[ P(7,3)=\frac{7!}{(7-3)!}=\frac{7!}{4!}=7 \cdot 6 \cdot 5=210. \]

Result: 210 different ordered assignments.

5) With repetition allowed: when the formula becomes \(n^r\)

If repeats are allowed and order still matters (for example, a length-\(r\) code from \(n\) symbols), then each position has \(n\) choices independently, so:

\[ \text{Number of sequences} = n^r. \]

6) Common confusion: permutations vs combinations

  • Permutation: ordered arrangement, “ranking/lineup/positions,” uses \(P(n,r)\).
  • Combination: unordered selection, “choose a group,” uses \(\binom{n}{r}=\dfrac{n!}{r!(n-r)!}\).
  • Relationship: \[ P(n,r)=\binom{n}{r}\cdot r!. \]
Vote on the accepted answer
Upvotes: 0 Downvotes: 0 Score: 0
Community answers No approved answers yet

No approved community answers are published yet. You can submit one below.

Submit your answer Moderated before publishing

Plain text only. Your name is required. Links, HTML, and scripts are blocked.

Fresh

Most recent questions

109 questions · Sorted by newest first

Showing 1–10 of 109
per page
  1. Mar 5, 2026 Published
    Formula of the Variance (Population and Sample)
    Statistics Numerical Descriptive Measures Measures of Dispersion for Ungrouped Data
  2. Mar 5, 2026 Published
    Mean Median Mode Calculator (Formulas, Interpretation, and Example)
    Statistics Numerical Descriptive Measures Measures of Central Tendency for Ungrouped Data
  3. Mar 4, 2026 Published
    How to Calculate Standard Deviation in Excel (STDEV.S vs STDEV.P)
    Statistics Numerical Descriptive Measures Measures of Dispersion for Ungrouped Data
  4. Mar 4, 2026 Published
    Suppose T and Z Are Random Variables: How T Relates to Z in the t Distribution
    Statistics Estimation of the Mean and Proportion Estimation of a Population Mean σ Not Known the T Distribution
  5. Mar 4, 2026 Published
    What Does R Squared Mean in Statistics (Coefficient of Determination)
    Statistics Simple Linear Regression Coefficient of Determination
  6. Mar 3, 2026 Published
    Box and Plot Graph (Box Plot) Explained
    Statistics Numerical Descriptive Measures Box and Whisker Plot
  7. Mar 3, 2026 Published
    How to Calculate a Z Score
    Statistics Continuous Random Variables and the Normal Distribution Standardizing a Normal Distribution
  8. Mar 3, 2026 Published
    How to Calculate Relative Frequency
    Statistics Organizing and Graphing Data Organizing and Graphing Quantitative Data
  9. Mar 3, 2026 Published
    Is zero an even number?
    Statistics Numerical Descriptive Measures Measures of Central Tendency for Ungrouped Data
  10. Mar 3, 2026 Published
    Monty Hall Paradox (Conditional Probability Explained)
    Statistics Probability Marginal and Conditional Probabilities
Showing 1–10 of 109
Open the calculator for this topic