Permutation and combination calculator

Arrangement formula P(n,r) = n! / (n-r)!
Take the number of permutations of r elements from n different elements (considering the order)
Application scenarios
  • Select 3 people from 5 people to line up: P(5,3) = 60 ways
  • 4-digit password (0-9 can be repeated): 10^4 = 10000 types
  • Top three rankings in the race: P(n,3)
Combination formula C(n,r) = n! / (r! × (n-r)!)
The number of combinations of r elements taken from n different elements (regardless of order)
Application scenarios
  • Choose 3 people from 5 people to form a team: C(5,3) = 10 types
  • Lottery number selection (select 6 from 45): C(45,6) = 8,145,060 types
  • Draw 5 poker cards: C(52,5) = 2,598,960 types
Factorial formula n! = n × (n-1) × (n-2) × ... × 2 × 1
The total number of permutations of n different elements
Multiple permutation formula
n! / (n1! × n2! × ... × nk!)
Number of permutations with repeated elements among n elements

For example: AABBC has 5 elements in total, A has 2 elements, B has 2 elements, and C has 1 element. Input: 2,2,1

Application scenarios
  • Number of permutations of MISSISSIPPI: 11!/(4!×4!×2!×1!) = 34,650 types
  • Assign the same items to different people
Circle arrangement formula = (n-1)!
The number of arrangements of n different elements in a circle
Application scenarios
  • Ways for 5 people to sit around a round table: (5-1)! = 24 ways
  • Necklace bead arrangement (reversible): (n-1)!/2

--

Enter the value and click Calculate