A combination is a selection of items from a set where order does not matter. The number of ways to choose items from distinct items is:
where .
This means choosing items is equivalent to leaving out items.
Consequence: If , then either or .
Example: If , then .
This identity shows how combinations in one row of Pascal's Triangle are built from the row above.
Example: .
If one specific item must be included in every selection of items from :
For conditions like "at least one", it is often easier to use:
Example: Committee of 5 from 6 men and 4 women with at least one man:
(Since , all committees automatically include at least one man here. For cases where the complement is non-zero, subtract the all-women count.)
In an -sided polygon, any two vertices can be connected by a line segment. The total number of such segments is . Subtracting the sides gives the number of diagonals:
Example: A hexagon () has diagonals.
| Context | How Combinations Apply |
|---|---|
| Lottery | Choosing 6 numbers from 49: possible tickets |
| DNA sequences | Selecting bases for a codon from available nucleotides |
| Cryptography | Choosing a subset of keys or characters for a cipher |
| Playlist selection | Choosing 5 songs from a library of 20: playlists |
These applications all share the property that order does not matter — only which items are selected.