Skip to main content

๐Ÿ”ข Permutation Calculator

Calculate P(n,r) = n! / (n-r)!

P(10, 3)
720
P(10,3) = 10! / (10-3)! = 10! / 7!
Formula Explanation

P(n,r) represents the number of ways to arrange r of n distinct elements in order.

When r = n, P(n,n) = n!, which is a full permutation.

When r = 0, P(n,0) = 1, meaning there is exactly one empty permutation.

Permutation Calculator Guide

The Permutation Calculator computes the number of ways to arrange r elements from n distinct elements in order, denoted P(n,r) or A(n,r). Unlike combinations, permutations consider the order of elements โ€” (A,B) and (B,A) are treated as two different permutations.

Permutation problems are very common in daily life: queuing order, password combinations, tournament scheduling, seat assignments, etc. This tool supports the range 0 to 170, with results automatically formatted for readability (large numbers use scientific notation).

Permutation Formula

ใ€Basic Formulaใ€‘P(n,r) = n! / (n-r)!
= n ร— (n-1) ร— (n-2) ร— ... ร— (n-r+1)

ใ€Special Casesใ€‘
P(n,n) = n! (Full permutation)
P(n,0) = 1   (Empty permutation)
P(n,1) = n

ใ€Relationship with Combinationใ€‘P(n,r) = C(n,r) ร— r!
Permutation = Combination ร— Full permutation of r elements

Practical Examples

๐Ÿ“‹
ใ€Example 1ใ€‘Choose 3 from 5 people to line up P(5,3) = 5! / (5-3)! = 5!/2! = 5ร—4ร—3 = 60 Explanation: 60 different ways to arrange them ใ€Example 2ใ€‘4-digit PIN (0-9) P(10,4) = 10!/6! = 10ร—9ร—8ร—7 = 5040 Explanation: If no digit repeats, there are 5040 possibilities ใ€Example 3ใ€‘8 people around a circular table Circular permutation = P(7,7)/8 = 7!/8 = 630 (Circular permutation fixes one position to eliminate rotational equivalence) ใ€Example 4ใ€‘Top 3 possibilities in a competition 10 teams: P(10,3) = 10ร—9ร—8 = 720 possible rankings

Important Notes

๐Ÿ’ก
- r cannot be greater than n; otherwise, it's impossible to arrange r from n elements - When r=n, it's a full permutation, equal to n! - Permutation grows extremely fast: P(20,10) โ‰ˆ 6.7ร—10ยนยน - Permutations with repetition: n^r (e.g., 4-digit PIN has 10^4=10000 possibilities) - Circular and linear permutations differ; circular permutation divides by r

Application Scenarios

  • - Password security: Evaluate password strength, calculate brute force combination space
  • - Tournament scheduling: Round-robin and elimination match arrangements
  • - Lottery draws: Sequential drawing arrangement counting
  • - Shift scheduling: Different employee rotation plan counts
  • - Phone numbers: Area code + number valid combination analysis

Types of Permutation Problems

Permutation problems can be classified into: (1) Linear permutation โ€” arranged in a line, the most common form; (2) Circular permutation โ€” arranged in a circle, requires fixing a reference point; (3) Permutation with repeated elements โ€” divide by factorials of repetition counts; (4) Derangement โ€” permutations where no element appears in its original position.

For example, the full permutation of "MISSISSIPPI" (11 letters) is 11!/(4!ร—4!ร—2!) = 34,650, because M appears 1 time, I appears 4 times, S appears 4 times, and P appears 2 times. These are advanced applications of permutation calculation.

Ad Slot