Mathematics calculator

Permutation Calculator

Compare ordered selections without repetition, P(n,r), with ordered sequences where repetition is allowed, nʳ.

Calculator inputs

Enter your values

Ordered arrangements
Calculated output

Result summary

Your result will appear here

Complete the required fields and select the calculate button.

What Does a Permutation Count?

A permutation counts ordered choices: changing positions or roles creates a different outcome. This permutation calculator compares ordered selections without repetition, P(n,r), with ordered sequences allowing repetition, nʳ.

The form uses one set of whole-number inputs, with 0 ≤ r ≤ n ≤ 100, for both results. Although reusable sequences can mathematically have more positions than available objects, this combined form rejects r > n because it also computes the no-repetition result. It does not list individual sequences.

How to Compare Selections with and Without Repetition

  1. Enter the number of distinct available choices in Available objects n, from 0 through 100.
  2. Enter the number of ordered positions in Positions selected r, from 0 through n.
  3. Select Calculate. The main card shows the without-repetition count; the separate repetition card allows the same object to fill multiple positions.
  4. Choose the result whose reuse rule fits the problem. Different roles or positions must actually matter for a permutation model.

Without repetition, each selection removes an available choice, producing a descending product. With repetition, every position retains n choices, producing n multiplied by itself r times.

Both outputs are formatted as grouped whole numbers. The arithmetic uses native integer or floating point operations rather than arbitrary-precision counting. Large displayed counts can lose final digits, even though they appear as complete integers. The form does not calculate probabilities or handle repeated identical objects as a separate multiset model.

Permutation Formulas for Ordered Sequences

Without repetition: P(n,r) = n!/(n−r)!

Equivalent product: n(n−1)…(n−r+1), using r factors

With repetition: number of ordered sequences = nʳ

Empty sequence: r = 0 gives one arrangement

For no reuse, there are n possibilities for the first position, n−1 for the next and so on. For reuse, all r positions have n possibilities. Order matters in both formulas.

The empty sequence has one outcome even for n = 0. This calculator returns one for both counts at n = r = 0. In that counting context the reusable expression’s 0⁰ follows the empty-product convention; it is not a universal definition of every mathematical 0⁰ expression.

Reference: OpenStax: Counting Principles. Ordered counting, the multiplication principle and distinct-object permutations. Form limits, rounding and reporting conventions follow this calculator’s implementation.

Available Objects, Positions and Arrangement Counts

Available objects n
Number of distinct choices, a whole number from 0 to 100.
Positions selected r
Number of ordered positions, restricted to 0 through n in this combined form.
Without repetition
Featured P(n,r), where no object can be reused.
Sequences with repetition
nʳ, where each position can use any available choice again.
Notation and substituted formula
Identify the no-repetition calculation, not the nʳ comparison.
Input reference cards
Entered n and r, useful for checking the common comparison basis.

Permutation Worked Example

Illustrative example. Compare filling 4 ordered positions from 8 distinct choices, with and without reuse. Enter n = 8 and r = 4.

Without repetition, there are 8 × 7 × 6 × 5 = 1680 arrangements. With repetition, there are 8⁴ = 4096 sequences. The cards display 1,680 and 4,096.

Independently, there are C(8,4) = 70 unordered groups and each has 4! = 24 orders; 70 × 24 = 1680. Reuse instead leaves eight choices available for each of the four positions.

Calculation check. These illustrative values were checked independently against the formula and calculator response. Retain unrounded intermediate values when checking approximations.

Permutation Worked Example
ModelCalculationCount
Without repetition8 × 7 × 6 × 51,680
With repetition8 × 8 × 8 × 84,096
Unordered check70 groups × 24 orders1,680

Order and Reuse Define Different Counts

An ordered no-reuse selection, an ordered reusable sequence and an unordered group answer different questions. This calculator displays the first two only.

Reusable sequences can have r greater than n in general mathematics, but this combined form keeps r ≤ n so the no-repetition calculation remains defined.

Order and Reuse Define Different Counts
Selection modelFormula8 choices, 4 positions
Ordered, no reusen!/(n−r)!1,680
Ordered, reuse allowednʳ4,096
Unordered, no reusen!/[r!(n−r)!]70
No positions selectedEmpty-sequence convention1

How to Interpret the Two Counts

The repetition count is at least the no-repetition count for the same accepted n and r. They coincide for r = 0 or r = 1; beyond those cases, reusable choices usually expand the outcome space.

A role assignment, ranked finish or ordered code can require a permutation model. A committee with no roles usually needs combinations instead. The names of the objects do not matter as much as whether order and reuse create distinct outcomes.

A count is not a probability. To calculate a chance from a count, you also need a sample space and assumptions about which outcomes are equally likely. For very large totals, use an exact integer method if final-digit accuracy matters.

Common Permutation Model Mistakes

  • Using the reusable count when each object may appear once.
  • Using ordered counts for a group whose internal order is irrelevant.
  • Expecting r > n to work in this combined comparison form.
  • Treating repeated identical objects as distinct without justification.
  • Reading a count as a percentage chance.
  • Assuming a long formatted integer guarantees exact final digits.

Frequently Asked Questions

What does this permutation calculator compare?

It compares ordered selections without repetition, n!/(n−r)!, with ordered reusable sequences, n^r, using the same accepted n and r.

When does order matter?

Order matters when switching positions or roles changes the outcome, such as assigning different roles or building an ordered code.

Can the same object appear more than once?

Only in the Sequences with repetition comparison. The main no-repetition count uses each object at most once.

Why is r greater than n rejected when repetition is allowed?

This combined form also computes the no-repetition result, so it restricts both outputs to 0 ≤ r ≤ n ≤ 100. A general reusable-sequence model can allow more positions.

How is a permutation different from a combination?

Permutations distinguish internal order. Combinations count only group membership; rearranging the same members does not create another combination.

What happens with no selected positions?

The result is one empty sequence for both models. At n = r = 0, the reusable expression follows that counting convention.

Does this form generate the individual sequences?

No. It returns counts and supporting notation rather than listing arrangements.

Are all digits of a large count exact?

Not necessarily. Native numeric arithmetic can lose final digits before the count is formatted as a grouped whole number. Use exact integer arithmetic when those digits matter.

Sources and References