How to Calculate Combinations nCr

Calculates the number of ways to choose r items from n, nCr = nPr ÷ r!, where the order does not matter.

A combination counts the ways of choosing rr items from nn when the order does not matter.

nCr=nPrr!=n!r!(nr)!_nC_r = \dfrac{_nP_r}{r!} = \dfrac{n!}{r!\,(n-r)!}

It is the permutation count divided by r!r!, the number of ways to shuffle any chosen set.

Example

Choose a committee of 3 from 5 people. Nobody is chair, so the order is irrelevant.

5C3=5×4×33×2×1=606=10_5C_3 = \dfrac{5 \times 4 \times 3}{3 \times 2 \times 1} = \dfrac{60}{6} = 10

There are 10 committees: the 60 ordered arrangements divided by the 3!=63! = 6 orderings of each trio.

Useful identities

Where it is used

Lotteries, card hands, committees and any other "just pick some" counting problem. The same numbers are the coefficients in the binomial expansion of (a+b)n(a+b)^n, which is why they appear inside the binomial distribution.