Permutation and Combination Calculator
Calculate permutations and combinations for a given set of items.
Result
About Permutations and Combinations
Permutations and combinations are mathematical concepts that help us count the number of ways to select or arrange items from a set.
Permutations
A permutation is an arrangement of objects in a specific order. The formula for calculating the number of permutations of r objects from a set of n objects is:
Where n! (n factorial) is the product of all positive integers less than or equal to n.
Combinations
A combination is a selection of objects without regard to order. The formula for calculating the number of combinations of r objects from a set of n objects is:
Examples
Permutation Example: If you have 5 different books and want to arrange 3 of them on a shelf, the number of different arrangements is:
P(5,3) = 5! / (5-3)! = 5! / 2! = 120 / 2 = 60 different arrangements
Combination Example: If you have 5 different books and want to select 3 of them (without caring about their order), the number of different selections is:
C(5,3) = 5! / (3! × (5-3)!) = 5! / (3! × 2!) = 120 / (6 × 2) = 10 different selections
Applications
- Probability: Calculating the probability of events
- Statistics: Analyzing data and making predictions
- Computer Science: Algorithm analysis and design
- Game Theory: Analyzing possible outcomes in games
- Cryptography: Creating secure encryption methods