How does the formula n! divided by r!(n-r)! count combinations?
In combinatorics, the formula counts the number of ways to select a subset of objects from a set of objects where the order of selection does not matter.12
To understand how this formula works, it is helpful to first consider permutations, where order is significant. The number of ways to select and arrange objects from is given by the permutation formula:
Because a combination ignores order, the permutation formula overcounts the number of unique subsets. Specifically, any single group of objects can be arranged in different ways. Since all of these arrangements represent the same combination, we must divide the total number of permutations by to eliminate these redundant orderings.12
This results in the combination formula, often denoted as or :
These values are also known as binomial coefficients, as they appear in the expansion of binomial expressions.12