Skip to main content

Combinations: counting unordered selections with (nr)\binom{n}{r}

Syllabus dot point

“Use the combination formula (nr)\binom{n}{r} to count unordered selections, including with restrictions and complementary counting”

HSCMaths Extension 1Combinatorics (ME-A1)13 min read

Quick answer

Combinations count unordered selections of rr objects from nn distinct objects with (nr)=n!r!(n−r)!=nPrr!\binom{n}{r} = \frac{n!}{r! (n - r)!} = \frac{{}^{n}P_r}{r!} (a permutation with order divided out). They satisfy the symmetry (nr)=(nn−r)\binom{n}{r} = \binom{n}{n - r}, Pascal's rule and ∑(nr)=2n\sum \binom{n}{r} = 2^n, with complementary counting for "at least" problems and the multinomial coefficient for group-splitting.

Jump to a section
  1. What this dot point is asking
  2. The answer
  3. Exam-style questions

What this dot point is asking

NESA wants you to count unordered selections (combinations) of rr objects from nn distinct objects, apply the formula (nr)\binom{n}{r}, use the key identities (symmetry, Pascal's rule, the sum to 2n2^n), and handle the standard restriction types: "at least", "at most", "must include / must exclude a particular object", and splitting a set into groups. The single idea that unlocks the whole topic is that a combination is a permutation with the ordering thrown away, which is why the formula has an extra division by r!r!.

The answer

The combination formula

The number of ways to choose rr unordered objects from nn distinct objects is

(nr)=n!r!(n−r)!.\binom{n}{r} = \frac{n!}{r! (n - r)!}.

The notation (nr)\binom{n}{r} is read "nn choose rr" and is also written nCr{}^n C_r. It is defined for integers 0≤r≤n0 \le r \le n.

Why you divide by r!r! (the link to permutations)

A combination is what you get from a permutation when order stops mattering. To choose and arrange rr from nn there are nPr=n!(n−r)!{}^{n}P_r = \frac{n!}{(n-r)!} ordered lists. But every unordered selection of rr objects can be written as r!r! different ordered lists (the r!r! ways of arranging those same rr objects). So the ordered count over-counts the unordered count by exactly r!r!, and

(nr)=nPrr!=n!r! (n−r)!.\binom{n}{r} = \frac{{}^{n}P_r}{r!} = \frac{n!}{r!\,(n-r)!}.

The picture below makes the "divide by r!r!" concrete for r=3r = 3: a single chosen set {A,B,C}\{A, B, C\} corresponds to 3!=63! = 6 ordered arrangements.

One combination equals r factorial permutationsThe single unordered selection of A, B and C corresponds to six ordered arrangements ABC, ACB, BAC, BCA, CAB, CBA. So the number of permutations is the number of combinations times three factorial, which is six.One selection = 3! orderings{A, B, C}1 combinationABCACBBACBCACABCBA6 = 3! permutationsEach unordered set of 3 makes 3! = 6 ordered lists, so divide: C(n,r) = P(n,r) / r!.

Key fact

(nr)=n!r! (n−r)!=nPrr!.\binom{n}{r} = \frac{n!}{r!\,(n - r)!} = \frac{{}^{n}P_r}{r!}.

A combination ignores order, so it is the matching permutation count divided by r!r!. The two facts that earn the most marks are the symmetry (nr)=(nn−r)\binom{n}{r} = \binom{n}{n - r} (choosing what to keep is the same as choosing what to leave out) and complementary counting for "at least" problems: count the total and subtract the unwanted cases.

Key identities

Symmetry.

(nr)=(nn−r).\binom{n}{r} = \binom{n}{n - r}.

Choosing rr objects to include is the same act as choosing n−rn - r objects to exclude. This is also a labour-saver: compute whichever of the two has the smaller bottom number.

Pascal's rule.

(nr)=(n−1r−1)+(n−1r).\binom{n}{r} = \binom{n - 1}{r - 1} + \binom{n - 1}{r}.

Focus on one particular object. Either it is in the chosen subset (then choose the remaining r−1r - 1 from the other n−1n - 1) or it is not (then choose all rr from the other n−1n - 1). These two cases are exclusive and exhaustive, so they add. This identity is exactly what builds Pascal's triangle row by row.

Sum identity.

∑r=0n(nr)=2n.\sum_{r = 0}^{n} \binom{n}{r} = 2^n.

The left side counts subsets of every size; the right side counts subsets by deciding "in or out" independently for each of the nn elements. Both count all subsets of an nn-element set.

Boundary values.

(n0)=(nn)=1\binom{n}{0} = \binom{n}{n} = 1 (one way to choose nothing, one way to choose everything), and (n1)=n\binom{n}{1} = n.

Complementary counting

For "at least kk" or "at most kk" problems it is usually far quicker to count the complement than to add up every allowed case:

(at least 1)=total−(none),(\text{at least 1}) = \text{total} - (\text{none}),

(at least 2)=total−(none)−(exactly 1).(\text{at least 2}) = \text{total} - (\text{none}) - (\text{exactly 1}).

The signal to reach for the complement is the phrase "at least one", because its opposite ("none") is a single, easy combination, whereas the direct count is a sum of several cases.

Splitting into groups

To split nn distinct objects into groups of sizes r1,r2,…,rkr_1, r_2, \dots, r_k (with r1+⋯+rk=nr_1 + \dots + r_k = n):

(nr1, r2, …, rk)=n!r1! r2!⋯rk!.\binom{n}{r_1,\, r_2,\, \dots,\, r_k} = \frac{n!}{r_1! \, r_2! \cdots r_k!}.

This is the multinomial coefficient, and equivalently it is the chain (nr1)⋅(n−r1r2)⋯(rkrk)\binom{n}{r_1} \cdot \binom{n - r_1}{r_2} \cdots \binom{r_k}{r_k} (choose the first group, then the second from what is left, and so on). A crucial wrinkle: this counts labelled groups (team A, team B, team C). If the groups are the same size and unlabelled, divide by the number of equal-sized groups factorial, because any relabelling of them gives the same division.

Counting with constraints

"Must include object AA": AA is already in, so choose the remaining r−1r - 1 from the other n−1n - 1: (n−1r−1)\binom{n - 1}{r - 1}.

"Must exclude object AA": AA is out, so choose all rr from the other n−1n - 1: (n−1r)\binom{n - 1}{r}.

"Includes AA or BB but not both": add (includes AA, excludes BB) and (includes BB, excludes AA).

"At least one of A,B,CA, B, C": use complementary counting (total minus the selections containing none of them).

How exam questions ask about combinations

  • "How many [committees / teams / hands / subsets] of size rr ...?" with no mention of order: a plain (nr)\binom{n}{r}.
  • "... containing at least one [type]?": complementary counting, total minus none.
  • "... containing exactly kk [type]?": choose the kk from that type and the rest from the others, then multiply: (ak)(br−k)\binom{a}{k}\binom{b}{r-k}.
  • "... that must include [a named person/object]?": fix it in, then (n−1r−1)\binom{n-1}{r-1}.
  • "... that must not include [a named person/object]?": (n−1r)\binom{n-1}{r}.
  • "Split / divide [people] into groups of ...": multinomial n!r1!⋯rk!\dfrac{n!}{r_1!\cdots r_k!}; divide by the symmetry factor if equal-sized groups are unlabelled.
  • "In how many ways can a [defence] and a [forward line] be chosen?" (two pools): choose from each pool and multiply.
  • "Show that (nr)=(nn−r)\binom{n}{r} = \binom{n}{n-r}" or a Pascal's-rule identity: argue by the in/out or include/exclude meaning, not just algebra.
  • Watch for the order cue. "Arranged", "in a row", "ranked", "first, second, third" means a permutation, not a combination.
Exam technique

First decide whether order matters: if the wording is "select", "choose", "committee", "subset", "hand", order does not matter, so use (nr)\binom{n}{r}. Use the symmetry identity to keep the arithmetic small ((2018)=(202)\binom{20}{18} = \binom{20}{2}, not the other way). For "at least one", write the complement line explicitly: "(at least one) = total −- (none)", then evaluate the two combinations. When two independent selections are made (defenders and forwards, men and women), multiply the two ()\binom{}{} counts; when you are counting mutually exclusive cases (exactly 0, exactly 1, ...), add them. For a group-splitting question, state whether the groups are labelled and divide by the symmetry factor if they are not. Leave the answer as an exact integer.

Worked example

Apply the combination formula

To count the number of ways to choose 33 books from 1010, order does not matter. The combination formula gives:

(103)=10!3!⋅7!=10⋅9⋅83⋅2⋅1=7206=120.\binom{10}{3} = \frac{10!}{3! \cdot 7!} = \frac{10 \cdot 9 \cdot 8}{3 \cdot 2 \cdot 1} = \frac{720}{6} = 120.

Final answer: 120120 ways.


Use the symmetry identity

Computing (2018)\binom{20}{18} directly requires large factorials. The symmetry identity (nr)=(nn−r)\binom{n}{r} = \binom{n}{n-r} reflects that choosing 1818 items to include is the same as choosing 22 items to exclude:

(2018)=(202)=20⋅192=190.\binom{20}{18} = \binom{20}{2} = \frac{20 \cdot 19}{2} = 190.

Final answer: 190190.


Multiply two independent selections

The defenders and forwards are chosen from separate pools, so the selections are independent. Choose 44 defenders from 99 and 33 forwards from 66 separately, then multiply by the multiplication principle:

(94)⋅(63)=126⋅20=2520.\binom{9}{4} \cdot \binom{6}{3} = 126 \cdot 20 = 2520.

Final answer: 25202520 teams.


Count "at least one" by complementary counting

Direct counting of "at least one vowel" requires separate cases (exactly 1 vowel, exactly 2 vowels). The complement is simpler: count subsets with no vowels at all. The vowels in {\{A, B, C, D, E, F}\} are A and E; the consonants are B, C, D, F.

Total subsets of size 33: (63)=20\binom{6}{3} = 20.
No vowels (all three from B, C, D, F): (43)=4\binom{4}{3} = 4.

Subtract to find the answer:

At least one vowel=20−4=16.\text{At least one vowel} = 20 - 4 = 16.

Final answer: 1616 subsets.


Count "exactly kk of a type"

A committee of 44 is chosen from 77 women and 55 men. How many have exactly 22 women? Choose the 22 women from 77 and the other 22 members (men) from 55, then multiply:

(72)⋅(52)=21⋅10=210.\binom{7}{2} \cdot \binom{5}{2} = 21 \cdot 10 = 210.

Final answer: 210210 committees.


Count selections that must include a given element

"War and Peace" must be included, so it is already chosen. The remaining 33 books are selected from the other 1414, with no further restriction:

(143)=14⋅13⋅123!=364.\binom{14}{3} = \frac{14 \cdot 13 \cdot 12}{3!} = 364.

Final answer: 364364 selections.


Split into labelled groups (multinomial coefficient)

If the three teams are labelled (team A, team B, team C), the number of ways to split 99 people into groups of 33 is:

9!3! 3! 3!=1680.\frac{9!}{3!\, 3!\, 3!} = 1680.

Adjust for indistinguishable teams:

If the three teams have no labels, then each division has been counted 3!=63! = 6 times (once for each permutation of which group is called A, B, or C). Divide by 66:

16806=280.\frac{1680}{6} = 280.

Final answer: 16801680 for labelled teams, 280280 for unlabelled groups.


Verify Pascal's rule by direct calculation

Pascal's rule states (nr)=(n−1r−1)+(n−1r)\binom{n}{r} = \binom{n-1}{r-1} + \binom{n-1}{r}. To verify (63)=(52)+(53)\binom{6}{3} = \binom{5}{2} + \binom{5}{3}, compute each term. The rule says: either the sixth person is in the subset (choose the other 22 from 55) or not (choose all 33 from 55):

(52)+(53)=10+10=20=(63).✓\binom{5}{2} + \binom{5}{3} = 10 + 10 = 20 = \binom{6}{3}. \quad \checkmark

Final answer: confirmed, (63)=20\binom{6}{3} = 20.

Common traps
Confusing combination with permutation
Combinations are unordered; permutations are ordered. The formulas differ by a factor of r!r! (the combination is the permutation divided by r!r!). A word like "arranged" or "ranked" means permutation.
Symmetry the wrong way
(2017)=(203)\binom{20}{17} = \binom{20}{3} because 20−17=320 - 17 = 3. Subtract from the top number; do not just swap digits.
Splitting groups: labelled vs unlabelled
Three labelled teams of 33 (9!3! 3! 3!\frac{9!}{3!\,3!\,3!}) differ from three unlabelled groups of 33 (divide by another 3!3!). Decide which the question means.
Pascal's rule sign
(nr)=(n−1r−1)+(n−1r)\binom{n}{r} = \binom{n - 1}{r - 1} + \binom{n - 1}{r} has a plus. There is no subtraction.
Adding instead of using the complement
Counting "at least 1 woman" by adding women-only and men-only mixes cases incorrectly and double-counts. Use total minus (no women).
Multiplying mutually exclusive cases
"Exactly 1 vowel OR exactly 2 vowels" are separate cases and must be added, not multiplied. Multiply only independent stages of a single selection.

Exam-style questions

Questions in the style of NESA exam questions on this dot point, each with a worked answer. They are written by ExamExplained unless tagged "Past paper"; the year shows the paper a question is modelled on.

HSC-style2 marks
How many five-card hands are there from a standard deck of 5252 cards?
Show worked answer →

Unordered selection of 55 from 5252.

(525)=52!5! 47!=52⋅51⋅50⋅49⋅485⋅4⋅3⋅2⋅1=2 598 960\binom{52}{5} = \frac{52!}{5! \, 47!} = \frac{52 \cdot 51 \cdot 50 \cdot 49 \cdot 48}{5 \cdot 4 \cdot 3 \cdot 2 \cdot 1} = 2 \, 598 \, 960.

Markers reward identifying that order does not matter, the combination formula, and the arithmetic.

HSC-style3 marks
A committee of 44 is to be formed from 77 women and 55 men. How many committees include at least 11 woman?
Show worked answer →

Use complementary counting: (at least 1 woman)=(total)−(no women)(\text{at least 1 woman}) = (\text{total}) - (\text{no women}).

Total committees of 44 from 1212: (124)=495\binom{12}{4} = 495.

Committees with no women (all 44 men): (54)=5\binom{5}{4} = 5.

At least one woman: 495−5=490495 - 5 = 490.

Markers reward setting up the complement, computing both combinations, and the subtraction.

Practise this

Sources & how we know this

ExamExplained