Combinatorics: Permutations and Combinations
Counting arrangements, counting selections, and the factorial that separates them.
Combinatorics: Permutations and Combinations
This module needs JavaScript: the numbers are computed in the page rather than recorded.
Worth knowing
n! / (n−k)!n! / (k!(n−k)!)k!: the number of orders each selection could have arrived in.Overview
Choose the counting rule
For ordered selections of k distinct items from n, the count is n!/(n−k)!. If order does not matter, divide by k! to get the number of combinations, n choose k. If each of k positions can independently take any of n values, repetition is allowed and there are nᵏ sequences.
For a five-card hand from a 52-card deck, order does not matter and cards cannot repeat, so there are 52 choose 5 hands. If instead a five-character code can reuse any of ten digits, there are 10⁵ codes. The problem statement determines the model; choosing a formula before clarifying order and repetition is a common source of errors.
Choose the counting rule
For ordered selections of k distinct items from n, the count is n!/(n−k)!. If order does not matter, divide by k! to get the number of combinations, n choose k. If each of k positions can independently take any of n values, repetition is allowed and there are nᵏ sequences.
For a five-card hand from a 52-card deck, order does not matter and cards cannot repeat, so there are 52 choose 5 hands. If instead a five-character code can reuse any of ten digits, there are 10⁵ codes. The problem statement determines the model; choosing a formula before clarifying order and repetition is a common source of errors.