Compute C(n, r) = n! / (r! · (n-r)!), the number of
unordered selections of r items from n distinct items.
Order does not matter in combinations.
Example
Use the combination formula for unordered selections.
highlighted = computed this step
Step 1 — Set up
Identify n and r for the combination.
n=7r=3
Step 2 — Formula
Substitute into the combination formula.
C(7,3)=3!⋅4!7!
Step 3 — Numerator
Compute the ordered numerator.
7⋅6⋅5=210
Step 4 — Denominator
Compute r factorial in the denominator.
Step 5 — Divide
Divide by r factorial because order does not matter.
210/6=35
combinations-nCr
C(n, r) = n! / (r! · (n - r)!) = P(n, r) / r!