# N Choose R Order Does Not Matter

To calculate the number of possible combinations of choosing elements from a set of elements, where order does not matter, the combination formula is used.

For example, if we want to calculate the possible combinations of choosing two items from the set {♥︎,♦︎,♣︎,♠︎} we can set up the formula. Substitute into the equation which represents the size of the set and substitute into the formula which represents the number of items we are choosing.

Evaluate the subtraction.

Expand the factorial operator.

Simplify the fraction.

There are ways to select two items from the set {♥︎,♦︎,♣︎,♠︎}. This can be seen in the list of possible combinations shown below.

- { ♥︎, ♠︎ }
- { ♦︎, ♠︎ }
- { ♥︎, ♦︎ }
- { ♣︎, ♠︎ }
- { ♥︎, ♣︎ }
- { ♣︎, ♦︎ }

This example shows how to calculate the possible ways to select three items from the set of four represented as {♥︎,♦︎,♣︎,♠︎}.

Start by setting up the combination formula.

Substitute into the equation which represents the size of the set and substitute into the equation which represents the number of items we are choosing.

Evaluate the subtraction in the denominator.

Expand the factorial operator.

Simplify the fraction

There are possible ways to select three items from the set {♥︎,♦︎,♣︎,♠︎} shown in the list below.

- {♥︎,♦︎,♣︎}
- {♥︎,♦︎,♠︎}
- {♥︎,♣︎,♠︎}
- {♦︎,♣︎,♠︎}

## Permutation vs. Combination

When selecting elements from a collection of elements, a distinction is made whether order does or does not matter. When order **does not** matter the combination formula is used.

When order **does** matter, the permutation formula is used. Note, the subscript and are used to denote permutations versus combinations.