Exam PProbability foundationsFree to read

Counting: permutations, combinations and partitions

Order matters or it does not, and repetition is allowed or it is not. Those two questions pick the formula every time.

The formulas

Multiplication rule
n1×n2×⋯×nkn_1 \times n_2 \times \dots \times n_k
Permutations
P(n,k)=n!(n−k)!P(n,k) = \dfrac{n!}{(n-k)!}

order matters, no repetition

Combinations
(nk)=n!k! (n−k)!\binom{n}{k} = \dfrac{n!}{k!\,(n-k)!}

order does not matter

Multinomial
n!k1! k2!⋯km!\dfrac{n!}{k_1!\,k_2!\cdots k_m!}

split n items into labelled groups

Stars and bars
(n+k−1k−1)\binom{n+k-1}{k-1}

n identical items into k distinct boxes

Where it comes from

  1. Choosing kk items in order from nn leaves nn choices, then n−1n-1, and so on for kk factors - that product is n!/(n−k)!n!/(n-k)!.
  2. Every unordered set of kk items was counted k!k! times in that product, so dividing by k!k! gives the combination count.
  3. The multinomial coefficient is the same argument applied to several groups at once.

Worked example

A study committee needs 3 actuaries chosen from 12 and 2 underwriters chosen from 9. How many committees are possible?

  1. The two choices are independent, so multiply the counts.
  2. (123)=220\binom{12}{3} = 220 ways to pick the actuaries.
  3. (92)=36\binom{9}{2} = 36 ways to pick the underwriters.
  4. 220×36=7,920220 \times 36 = 7{,}920 committees.

Answer: 7,920

This answer is recomputed from the site’s own interest-theory and probability functions every time the test suite runs, so the page and the mathematics cannot drift apart.

Memory hooks

  • Ask 'would swapping two of my picks give a different outcome?' Yes means permutation; no means combination.
  • Repeated letters in a word: n! divided by the factorial of each repeat count - the multinomial coefficient in disguise.

Traps

  • Using a permutation when the selection is a committee (unordered).
  • Forgetting to divide by the repeats when arranging items that are not all distinct.

2 solved sample questions

From the free samples in the question bank, solved in full. They never rotate and they are never gated.

  1. Exam PCombinatorics and countingCore
    An actuarial department must send 4 of its 11 analysts to a conference. In how many ways can the group be chosen?
    1. A4444
    2. B110110
    3. C330330
    4. D1,3201{,}320
    5. E7,9207{,}920

    Solution

    1. The group is unordered - sending analysts A, B, C, D is the same as sending D, C, B, A - so this is a combination.
    2. (114)=11!4! 7!\binom{11}{4} = \dfrac{11!}{4!\,7!}.
    3. =11×10×9×84×3×2×1=792024=330= \dfrac{11 \times 10 \times 9 \times 8}{4 \times 3 \times 2 \times 1} = \dfrac{7920}{24} = 330.
    4. The ordered count P(11,4)=7920P(11,4) = 7920 is exactly 4!=244! = 24 times too large, which is why it appears as a distractor.

    Trap. Using the permutation count 7,920, which treats two identical groups in different orders as different selections.

  2. Exam PCombinatorics and countingCore
    A password consists of 3 letters (from 26, repeats allowed) followed by 2 digits (from 10, repeats allowed). How many passwords are possible?
    1. A15,60015{,}600
    2. B676,000676{,}000
    3. C1,404,0001{,}404{,}000
    4. D1,757,6001{,}757{,}600
    5. E11,232,00011{,}232{,}000

    Solution

    1. Each position is chosen independently, so the multiplication rule applies directly.
    2. The letters contribute 263=17,57626^{3} = 17{,}576.
    3. The digits contribute 102=10010^{2} = 100.
    4. 17,576×100=1,757,60017{,}576 \times 100 = 1{,}757{,}600 passwords.

    Trap. Using permutations without repetition when the problem explicitly allows repeats.

Drill this topic: Combinatorics and counting has 16 questions, 2 of them solved free on that page, and the full question bank has 400. The drills are part of Premium. Every free sample and today’s mixed round stay free.

Related