← Math — Semester B midterm

appeared in 2/4

Combinatorics

What it looks like on the exam

Forming a group under conditions, arrangements.

📘 The lesson on this topic in the courseCombinatorics and the binomial theorem→

How to solve

Counting questions come down to two questions: does order matter? (arrangement or selection) and is repetition allowed? Hence four tools: the multiplication principle, permutations n!n!, arrangements n!(n−k)!\frac{n!}{(n-k)!} and combinations (nk)\binom nk. Conditions like “at least one” are usually easier via the complement.

(nk)=n!k!(n−k)!,circle: (n−1)!\binom nk=\frac{n!}{k!(n-k)!},\qquad\text{circle: }(n-1)!

The method, step by step

  1. Ask: does order matter? Is repetition allowed?

    Why: This decides the formula.

  2. Split into stages and multiply (the multiplication principle).
  3. Conditions: “exactly” — choose each group separately; “at least” — everything minus the forbidden case.
  4. Together — a block; not together — arrange the others and insert into the gaps.
  5. Check on a small case you can count by hand.

Cases you will meet

Selection with a condition

(42)(52)\binom{4}{2}\binom{5}{2} — two from here and two from there.

Grid paths

aa right and bb up: (a+ba)\binom{a+b}{a}.

Repeated letters

n!n1!n2!⋯\frac{n!}{n_1!n_2!\cdots}.

Handshakes

(n2)\binom n2.

Full topic in the course →
1

Fully worked example

Worked example

In how many ways can 55 people be seated in a row if two particular people sit together?

Solution

IdeaA block of two + three more = 44 units.
  1. 4!=244!=24 arrangements of the units.
  2. 22 orders inside the block: 4848.
CheckOf 120120 arrangements, 25\frac{2}{5} have the pair together: 4848 ✓.
Common mistakeForgetting the 22.

Practice