Euler Hall — free maths guides

Count choices with the addition and multiplication principles, permutations, and combinations

Decide whether the order of a chosen group matters. The idea in plain words, a worked example, and a check with the answers shown — part of the free Precalculus guides.

One question decides the formula

When you chooserr things fromnn distinct things, the only question that matters is whether the order of the chosen group counts.

Order counts — a permutation.

nPr=n(n−1)⋯(n−r+1)=n!(n−r)!.{}_nP_r = n(n-1)\cdots(n-r+1) = \frac{n!}{(n-r)!}.

The first place hasnn choices, the secondn−1n-1, and so on forrr places.

Order does not count — a combination.

nCr=(nr)=n!r! (n−r)!=nPrr!.{}_nC_r = \binom{n}{r} = \frac{n!}{r!\,(n-r)!} = \frac{{}_nP_r}{r!}.

Every selection ofrr objects can be arranged inr!r! ways, and a combination counts all those arrangements as one. So the permutation divides byr!r!.

The test. Ask what would count as a different answer. If swapping two of the chosen items gives a different outcome — a podium, a password, a ranking — the order counts. If it does not — a committee, a hand of cards, a pizza's toppings — it does not.

Two more facts worth having:

-(nr)=(nn−r)\binom{n}{r} = \binom{n}{n-r}, because choosing whichrr to take is the same as choosing whichn−rn - r to leave. - The number of subsets of annn-element set is2n2^n, since each element is independently in or out. That sum, from choosing none up to choosing all, is the same2n2^n.

Why dividing by r! is exactly right

Take a selection ofrr objects out ofnn. There arer!r! ways to arrange thoserr objects among themselves, and every one of those arrangements is a distinct permutation. But all of them correspond to the same selection.

So if you list all the permutations you have counted each selectionr!r! times, once per internal arrangement. Dividing byr!r! turns that overcount into the selection count.

The check is that the answer is an integer.nPrr!\frac{{}_nP_r}{r!} always divides evenly, because it is counting something — if your arithmetic produces a fraction, you have made an error rather than discovered a fractional number of committees.

Note also what dividing byr!r! and by(n−r)!(n-r)! both do. Ther!r! removes the arrangements of the chosen group; the(n−r)!(n-r)! removes the arrangements of the leftovers, which were never being counted in the first place but arrived by writingn!n! in the numerator.

A worked example in the exam's shape

From 10 students, how many ways can you choose 4 for a quiz team, and how many ways can you then assign them to 4 different questions?

The team. Order does not matter, so it is a combination:

(104)=10⋅9⋅8⋅74⋅3⋅2⋅1=504024=210.\binom{10}{4} = \frac{10 \cdot 9 \cdot 8 \cdot 7}{4 \cdot 3 \cdot 2 \cdot 1} = \frac{5040}{24} = 210.

The assignments. Now order matters, and there are 4 distinct questions:

4!=24 assignments per team.4! = 24 \text{ assignments per team.}

Together. Each of the 210 teams can be assigned in 24 ways, so210⋅24=5040210 \cdot 24 = 5040. That is also10P4{}_{10}P_4, which is a useful cross-check: choosing 4 and then assigning them is arranging 4 out of 10.

Notice the discipline in part 1: cancel4⋅3⋅24 \cdot 3 \cdot 2 against8⋅38 \cdot 3 and44 out of the numerator rather than computing5040/245040/24 by long division. Both work; the cancellation is faster and less error-prone.

By the end you can
  • Decide whether the order of a chosen group matters
  • Count arrangements of r chosen from n with a permutation
  • Count selections of r chosen from n with a combination
  • Count the subsets of an n-element set as 2 to the n
Check yourself
  1. 1. How many ways can 6 people line up?
  2. 2. How many ways can 3 be chosen from 6, order not counting?
  3. 3. How many 4-letter codes from 26 letters, no repeats?
  4. 4. Why is(103)=(107)\binom{10}{3} = \binom{10}{7}?
Answers

1.6!=7206! = 720. 2.(63)=20\binom{6}{3} = 20. 3.26P4=26⋅25⋅24⋅23=358800{}_{26}P_4 = 26 \cdot 25 \cdot 24 \cdot 23 = 358800. 4. Because choosing 3 to take is the same as choosing 7 to leave; the two counts describe one decision.

Work out where to start — free, no accountAnswer six real questions — free, no account