Mathematics · Book 2 · Grades 10–12

High School Mathematics

High School Mathematics · Grades 10–12

27Combinatorics and Counting

Combinatorics is the art of counting without listing. Its two elementary principles — add the sizes of disjoint alternatives, multiply the numbers of independent choices — suffice to count the arrangements, permutations and subsets of a finite set, and culminate in the binomial theorem.

27.1 The two counting principles

We write E\abs{E} for the number of elements (the cardinality) of a finite set EE.

Proposition 27.1 (Addition principle)

If a finite set EE is partitioned into subsets A1,,AkA_1, \dots, A_k (pairwise disjoint, with union EE), then

E=A1+A2++Ak.\abs{E} = \abs{A_1} + \abs{A_2} + \dots + \abs{A_k}.

Proposition 27.2 (Multiplication principle)

If an object is built by a succession of kk choices, with n1n_1 options for the first choice and, whatever the previous choices, nin_i options for the ii-th, then the number of objects built is n1×n2××nkn_1 \times n_2 \times \dots \times n_k.

Proof. Both statements are proved by induction on kk; the case k=2k = 2 of the second amounts to counting a rectangular array by rows.

Example 27.3

A restaurant offers 4 starters, 6 mains, 3 desserts: 4×6×3=724 \times 6 \times 3 = 72 different three-course meals.

27.2 Tuples, permutations, factorials

Definition 27.4 (kk-tuples)

A kk-tuple of a set EE is an ordered list (x1,,xk)(x_1, \dots, x_k) of elements of EE, repetitions allowed. A kk-tuple of distinct elements is an arrangement of kk elements of EE.

Proposition 27.5

Let E=n\abs E = n. The number of kk-tuples of EE is nkn^k. The number of arrangements of kk elements of EE (0kn0 \leq k \leq n) is

n(n1)(n2)(nk+1)=n!(nk)!,n(n-1)(n-2)\cdots(n-k+1) = \frac{n!}{(n-k)!},

where n!=1×2××nn! = 1 \times 2 \times \dots \times n (and 0!=10! = 1) is the factorial of nn.

Proof. Multiplication principle: for a kk-tuple there are nn options at each of the kk steps; for an arrangement, nn options for x1x_1, then n1n - 1 for x2x_2 (one element is used), …, nk+1n - k + 1 for xkx_k.

Definition 27.6 (Permutation)

A permutation of EE is an arrangement of all nn elements of EE: an ordering of EE. By Proposition 27.5 (case k=nk = n), the number of permutations of an nn-element set is n!n!.

Example 27.7

Five runners can finish a race in 5!=1205! = 120 different orders. The number of possible podiums (first three places) is 5×4×3=605 \times 4 \times 3 = 60.

27.3 Combinations and binomial coefficients

Definition 27.8 (Combinations)

A combination of kk elements of EE is a subset of EE with kk elements (no order, no repetition). Their number is written (nk)\dbinom{n}{k}, read “nn choose kk”.

Theorem 27.9

For 0kn0 \leq k \leq n:

(nk)=n!k!(nk)!.\binom{n}{k} = \frac{n!}{k!\,(n-k)!} .

Proof. Count the arrangements of kk elements of EE in two ways. Directly: n!(nk)!\frac{n!}{(n-k)!}. Alternatively, choose first the underlying subset ((nk)\binom nk ways), then order it (k!k! ways); the multiplication principle gives (nk)k!\binom{n}{k}\,k!. Equating, (nk)=n!k!(nk)!\binom nk = \frac{n!}{k!(n-k)!}.

Proposition 27.10 (Basic identities)

For 0kn0 \leq k \leq n:

(n0)=(nn)=1,(n1)=n,(nk)=(nnk),\binom{n}{0} = \binom{n}{n} = 1, \qquad \binom{n}{1} = n, \qquad \binom{n}{k} = \binom{n}{n-k},

and Pascal’s rule: for 1kn11 \leq k \leq n-1,

(nk)=(n1k1)+(n1k).\binom{n}{k} = \binom{n-1}{k-1} + \binom{n-1}{k}.

Proof. The symmetry (nk)=(nnk)\binom nk = \binom{n}{n-k} holds because taking complements matches kk-element subsets with (nk)(n-k)-element subsets, one for one. For Pascal’s rule, fix an element aEa \in E and sort the kk-element subsets into those containing aa — obtained by adjoining aa to a (k1)(k-1)-element subset of E{a}E \setminus \{a\}, of which there are (n1k1)\binom{n-1}{k-1} — and those avoiding aa, which are the kk-element subsets of E{a}E \setminus \{a\}, numbering (n1k)\binom{n-1}{k}. Conclude by the addition principle.

Pascal’s rule generates the coefficients row by row — Pascal’s triangle: each entry is the sum of the two above it.

Pascal’s triangle, rows n = 0 to 5: Pascal’s rule 41 + 42 = 52 in action.
Pascal’s triangle, rows n=0n = 0 to 55: Pascal’s rule (41)+(42)=(52)\binom{4}{1} + \binom{4}{2} = \binom{5}{2} in action.

Theorem 27.11 (Binomial theorem)

For all a,bRa, b \in \R (or C\C) and nNn \in \N:

(a+b)n=k=0n(nk)akbnk.(a+b)^n = \sum_{k=0}^{n} \binom{n}{k}\, a^{k}\, b^{\,n-k} .

Proof. Expand the product (a+b)(a+b)(a+b)(a+b)(a+b)\cdots(a+b) (nn factors): each term of the expansion picks aa or bb in every factor, producing akbnka^k b^{n-k} where kk is the number of factors contributing aa. The number of ways to choose these kk factors among nn is (nk)\binom nk, which is therefore the coefficient of akbnka^k b^{n-k}.

Corollary 27.12

k=0n(nk)=2n\displaystyle\sum_{k=0}^{n} \binom{n}{k} = 2^n and k=0n(1)k(nk)=0\displaystyle\sum_{k=0}^{n} (-1)^k\binom{n}{k} = 0 (n1n \geq 1).

Proof. Take a=b=1a = b = 1, then a=1a = -1, b=1b = 1 in the binomial theorem. The first identity also has a direct meaning: an nn-element set has 2n2^n subsets (each element is in or out: multiplication principle), sorted by size.

Method 27.13 (Choosing the right model)

Before counting, answer two questions: does order matter? and are repetitions allowed?

order mattersorder irrelevant
repetitions allowednkn^k (tuples)(university)
no repetitionsn!(nk)!\frac{n!}{(n-k)!} (arrangements)(nk)\binom nk (subsets)

Drawing balls from an urn: with replacement, in order \to tuples; without replacement, in order \to arrangements; a handful all at once \to subsets.

27.4 Exercises

Exercise 27.1

A license plate consists of 2 letters (A–Z), then 3 digits, then 2 letters. How many plates are possible? How many have no repeated character?

Solution

Solution of Exercise 27.1.

Multiplication principle: 262×103×262=264×103=45697600026^2 \times 10^3 \times 26^2 = 26^4 \times 10^3 = 456\,976\,000.

Without repeated characters, the four letters must be distinct (26×25×24×2326 \times 25 \times 24 \times 23 ways, filling the letter positions in order) and the three digits distinct (10×9×810 \times 9 \times 8):

26×25×24×23×10×9×8=358800×720=258336000.26 \times 25 \times 24 \times 23 \times 10 \times 9 \times 8 = 358\,800 \times 720 = 258\,336\,000 .

Exercise 27.2

Compute (83)\dbinom{8}{3}, (108)\dbinom{10}{8}, and simplify (n2)(n+12)\dfrac{\binom{n}{2}}{\binom{n+1}{2}}.

Solution

Solution of Exercise 27.2.

(83)=8×7×63!=56\dbinom83 = \dfrac{8 \times 7 \times 6}{3!} = 56; (108)=(102)=10×92=45\dbinom{10}{8} = \dbinom{10}{2} = \dfrac{10 \times 9}{2} = 45;

(n2)(n+12)=n(n1)/2(n+1)n/2=n1n+1.\frac{\binom n2}{\binom{n+1}2} = \frac{n(n-1)/2}{(n+1)n/2} = \frac{n-1}{n+1}.

Exercise 27.3

In a class of 30 students, one must elect a committee of 4 students, then a president and a treasurer within the committee (one person cannot hold both offices). How many outcomes are possible?

Solution

Solution of Exercise 27.3.

Choose the committee: (304)\binom{30}{4} ways. Then choose president and treasurer among the 4, in order: 4×3=124 \times 3 = 12 ways. Total

(304)×12=27405×12=328860.\binom{30}{4} \times 12 = 27\,405 \times 12 = 328\,860 .

Exercise 27.4

Expand (x+2)5(x + 2)^5 and (1x)6(1 - x)^6 using the binomial theorem. What is the coefficient of x3x^3 in (2x+3)7(2x + 3)^7?

Solution

Solution of Exercise 27.4.

(x+2)5=x5+10x4+40x3+80x2+80x+32,(x+2)^5 = x^5 + 10x^4 + 40x^3 + 80x^2 + 80x + 32 ,
(1x)6=16x+15x220x3+15x46x5+x6.(1-x)^6 = 1 - 6x + 15x^2 - 20x^3 + 15x^4 - 6x^5 + x^6 .

In (2x+3)7(2x+3)^7, the term in x3x^3 is (73)(2x)334=35×8×81x3\binom{7}{3}(2x)^3\,3^4 = 35 \times 8 \times 81\, x^3: the coefficient is 2268022\,680.

Exercise 27.5 ★★

A standard poker hand consists of 5 cards from a 52-card deck.

  1. How many hands are there?
  2. How many hands contain exactly one ace? At least one ace?
  3. How many hands are “full houses” (three cards of one rank, two of another)?
Solution

Solution of Exercise 27.5.

1. (525)=2598960\dbinom{52}{5} = 2\,598\,960.

2. Exactly one ace: choose it (44 ways) and complete with 44 non-aces: 4×(484)=4×194580=7783204 \times \binom{48}{4} = 4 \times 194\,580 = 778\,320. At least one ace: complementary counting, (525)(485)=25989601712304=886656\binom{52}{5} - \binom{48}{5} = 2\,598\,960 - 1\,712\,304 = 886\,656.

3. Choose the rank of the three-of-a-kind (1313), its suits ((43)=4\binom43 = 4), the rank of the pair (1212 remaining), its suits ((42)=6\binom42 = 6): 13×4×12×6=374413 \times 4 \times 12 \times 6 = 3744.

Exercise 27.6 ★★

How many anagrams (rearrangements of letters, meaningful or not) does the word MATH have? The word BANANA? (Hint for BANANA: first place the three A’s.)

Solution

Solution of Exercise 27.6.

MATH has 4 distinct letters: 4!=244! = 24 anagrams.

BANANA has 6 letters: three A’s, two N’s, one B. Choose the positions of the A’s ((63)\binom63), then of the N’s among the rest ((32)\binom32), the B takes the last spot:

(63)(32)=20×3=60.\binom{6}{3}\binom{3}{2} = 20 \times 3 = 60 .

(Equivalently 6!3!2!1!=60\frac{6!}{3!\,2!\,1!} = 60.)

Exercise 27.7 ★★

Prove the identity k(nk)=n(n1k1)k\dbinom{n}{k} = n\dbinom{n-1}{k-1} (1kn1 \leq k \leq n) in two ways: by the factorial formula, and by counting in two ways the pairs (committee of kk people, its president) chosen from nn people.

Solution

Solution of Exercise 27.7.

Algebraically:

k(nk)=kn!k!(nk)!=n!(k1)!(nk)!=n(n1)!(k1)!((n1)(k1))!=n(n1k1).k\binom nk = \frac{k\,n!}{k!(n-k)!} = \frac{n!}{(k-1)!\,(n-k)!} = n\,\frac{(n-1)!}{(k-1)!\bigl((n-1)-(k-1)\bigr)!} = n\binom{n-1}{k-1}.

By double counting: count pairs (committee of kk, president in it). Either choose the committee ((nk)\binom nk) then its president (kk): k(nk)k\binom nk pairs. Or choose the president first (nn options) then the other k1k-1 members among the remaining n1n-1: n(n1k1)n\binom{n-1}{k-1} pairs.

Exercise 27.8 ★★

A path in the plane goes from (0,0)(0,0) to (m,n)(m, n) by unit steps East or North. Show that the number of such paths is (m+nm)\dbinom{m+n}{m}.

Solution

Solution of Exercise 27.8.

A path consists of exactly m+nm + n steps, of which mm are East and nn are North; it is entirely determined by the set of instants (among the m+nm+n) at which one steps East. There are (m+nm)\binom{m+n}{m} such choices.

Exercise 27.9 ★★★

Prove Vandermonde’s identity: for 0km+n0 \leq k \leq m + n,

(m+nk)=j=0k(mj)(nkj),\binom{m+n}{k} = \sum_{j=0}^{k} \binom{m}{j}\binom{n}{k-j},

by counting the kk-element subsets of a set split into a group of mm and a group of nn. Deduce that j=0n(nj) ⁣2=(2nn)\displaystyle\sum_{j=0}^{n}\binom{n}{j}^{\!2} = \binom{2n}{n}.

Solution

Solution of Exercise 27.9.

Split a set of m+nm + n people into a group AA of mm and a group BB of nn. A kk-element subset contains some number jj of members of AA (0jk0 \leq j \leq k) and kjk - j members of BB; for fixed jj there are (mj)(nkj)\binom mj \binom{n}{k-j} such subsets, and the addition principle over jj gives Vandermonde’s identity.

With m=n=km = n = k:

(2nn)=j=0n(nj)(nnj)=j=0n(nj)2,\binom{2n}{n} = \sum_{j=0}^n \binom nj \binom{n}{n-j} = \sum_{j=0}^n \binom nj^{2},

using the symmetry (nnj)=(nj)\binom{n}{n-j} = \binom nj.

Exercise 27.10 ★★★

Using the binomial theorem, show that for all n1n \geq 1,

k=1nk(nk)=n2n1.\sum_{k=1}^{n} k \binom{n}{k} = n\,2^{n-1}.

(Hint: either differentiate (1+x)n(1+x)^n, or use Exercise 27.7.)

Solution

Solution of Exercise 27.10.

Via Exercise 27.7:

k=1nk(nk)=k=1nn(n1k1)=nj=0n1(n1j)=n2n1,\sum_{k=1}^n k\binom nk = \sum_{k=1}^n n\binom{n-1}{k-1} = n\sum_{j=0}^{n-1}\binom{n-1}{j} = n\,2^{n-1},

by Corollary 27.12. Via differentiation: differentiating (1+x)n=k(nk)xk(1+x)^n = \sum_k \binom nk x^k gives n(1+x)n1=kk(nk)xk1n(1+x)^{n-1} = \sum_k k \binom nk x^{k-1}; evaluate at x=1x = 1.

27.5 Problem: The art of counting twice

Problem 27.1

Weekend problem — stars and bars, deranged hats, and identities proved by counting one thing two ways

The deepest trick in combinatorics is disarmingly simple: count the same collection twice, by two different methods, and equate the answers. This problem practices the models of Method 27.13, adds a technique the chapter’s course did not need — the stars and bars of ice-cream counting — then counts the famous deranged hats exactly, and finds the number 1e\frac1\eu waiting at the bottom of the hat pile, its third appearance in this book.

Part I — Choosing the model.

  1. Count the license plates made of 22 letters followed by 33 digits; then the anagrams of BANANA.
  2. From a 3232-card deck, count the 55-card hands; then the hands containing exactly 22 of the 44 aces.
  3. A robot walks from (0,0)(0,0) to (4,3)(4,3) using only unit steps right or up: how many paths? (Encode a path as a word in R and U.)
  4. Expand (1+x)4(1 + x)^4 by the binomial theorem (Theorem 27.11); then evaluate at x=1x = 1 and x=1x = -1: which two identities about the numbers (nk)\binom nk drop out?
  5. Prove by double counting that k(nk)=n(n1k1)k\binom nk = n\binom{n-1}{k-1} (count committees-with-chair two ways), and deduce k=0nk(nk)=n2n1\sum_{k=0}^{n} k\binom nk = n\,2^{n-1}.

Part II — Stars and bars.

  1. An ice-cream shop sells 44 flavors; you order 1010 scoops (flavors may repeat, order in the cup is irrelevant). Encode an order as a row of 1010 stars (scoops) separated by 33 bars (flavor changes), and count the orders.
  2. Count the triples of nonnegative integers with x+y+z=12x + y + z = 12.
  3. Count the triples of positive integers with x+y+z=12x + y + z = 12 (substitute x=1+xx = 1 + x', etc.).
  4. How many distinct monomials appear in the expansion of (a+b+c)5(a + b + c)^5?
  5. Sanity check the method: count the orders of 33 scoops from 22 flavors with the formula, then list them all and compare.
  6. Say exactly where “scoops are identical” entered the encoding — and count what happens instead if the scoops are eaten in order (distinct positions), with Method 27.13’s checklist.

Part III — The deranged hats. A derangement is a redistribution of nn hats to their nn owners in which nobody receives their own hat; let DnD_n count them. (Problem 18.1 showed that one guest on average recovers their own hat — now we count the fully unlucky parties exactly.)

  1. Compute D1D_1, D2D_2, D3D_3 by listing, and D4D_4 patiently (or cleverly).
  2. Justify the recurrence Dn=(n1)(Dn1+Dn2)D_n = (n - 1)\left(D_{n-1} + D_{n-2}\right): guest 1 receives some hat k1k \neq 1 (n1n - 1 choices); split according to whether guest kk receives hat 1 or not. Check it reproduces D4D_4, and compute D5D_5.
  3. For n=3n = 3, prove by inclusion–exclusion (subtract the assignments fixing at least one hat, add back the overcounts) that D3=3!(111!+12!13!)D_3 = 3!\left(1 - \frac{1}{1!} + \frac{1}{2!} - \frac{1}{3!}\right), and state the general formula.
  4. Compute D55!\frac{D_5}{5!} and compare with 1e0.3679\frac1\eu \approx 0.3679: the probability that a large shuffled party deranges completely is 1e\frac1\eu — the third cameo of this constant, after the lottery and the secretary of Problem 23.1. (Why: the formula of question 14 is the beginning of a famous series for e1\eu^{-1}, told in the university volumes.)
  5. Secret Santa among 1010 friends: names are drawn uniformly at random. What is the probability the draw is valid (nobody draws themselves), and how many redraws should the group expect?

Part IV — Counting twice, winning twice.

  1. The handshake lemma: at any party, summing over guests the number of hands each shook counts every handshake exactly twice. Deduce that the number of guests who shook an odd number of hands is always even — and check the claim makes sense at a three-guest party.
  2. Prove the jewel 13+23++n3=(1+2++n)21^3 + 2^3 + \dots + n^3 = (1 + 2 + \dots + n)^2 by induction, and verify it for n=3n = 3. (Little Gauss’s sum, squared, counts cubes.)
  3. Vandermonde’s identity (Exercise 27.9) via paths: interpret (2nn)\binom{2n}{n} as lattice paths of question 3’s kind from (0,0)(0,0) to (n,n)(n,n), cut each path at its crossing of the anti-diagonal, and explain how j(nj)2\sum_j \binom nj^2 appears.
  4. Finale — the counter’s four moves, one line each with an example from this problem: multiply stages and add cases; encode cleverly (stars and bars, path words); count the same thing twice (committee-with-chair, handshakes); subtract the unwanted and correct the overcounts (derangements). And note where the counting goes to work next: probability, and the paths of the matrices-and-graphs chapter.
Solution

Solution of Problem 27.1.

1. 262×103=67600026^2 \times 10^3 = 676\,000 plates. BANANA: 66 letters with A tripled and N doubled: 6!3!2!=60\frac{6!}{3!\,2!} = 60 anagrams.

2. (325)=201376\binom{32}{5} = 201\,376 hands; (42)(283)=6×3276=19656\binom42 \binom{28}{3} = 6 \times 3\,276 = 19\,656 with exactly two aces.

3. A path is a word with 44 R’s and 33 U’s: choose the U positions: (73)=35\binom73 = 35.

4. (1+x)4=1+4x+6x2+4x3+x4(1+x)^4 = 1 + 4x + 6x^2 + 4x^3 + x^4. At x=1x = 1: k(nk)=2n\sum_k \binom nk = 2^n; at x=1x = -1: k(1)k(nk)=0\sum_k (-1)^k \binom nk = 0 — row sums and alternating row sums of Pascal’s triangle.

5. Committees of kk people with a chair, from nn: choose the committee then its chair ((nk)×k\binom nk \times k), or the chair then the other members (n×(n1k1)n \times \binom{n-1}{k-1}): equal. Summing over kk: the right side sums to nj(n1j)=n2n1n \sum_j \binom{n-1}{j} = n\,2^{n-1}.

6. A row of 1010 stars and 33 bars encodes the order (scoops of flavor 1 before the first bar, etc.); the row has 1313 symbols and is determined by the bar positions: (133)=286\binom{13}{3} = 286 orders.

7. 1212 stars, 22 bars: (142)=91\binom{14}{2} = 91.

8. With x,y,z0x', y', z' \geq 0 and x+y+z=9x' + y' + z' = 9: (112)=55\binom{11}{2} = 55.

9. A monomial aibjcka^i b^j c^k with i+j+k=5i + j + k = 5: (72)=21\binom72 = 21.

10. Formula: 33 stars, 11 bar: (41)=4\binom41 = 4; list: (3,0)(3,0), (2,1)(2,1), (1,2)(1,2), (0,3)(0,3): agreement.

11. “Identical” entered when an order was declared to be nothing but the counts per flavor — the stars carry no names. If the scoops are eaten in order, each of the 1010 distinct positions picks a flavor freely: 410=10485764^{10} = 1\,048\,576 sequences — a different model and a different world (Method 27.13: always ask ordered? distinct? repetition allowed?).

12. D1=0D_1 = 0; D2=1D_2 = 1 (swap); D3=2D_3 = 2 (the two 33-cycles); D4=9D_4 = 9.

13. Guest 1 gets hat k1k \neq 1: n1n - 1 choices. If guest kk gets hat 1, the remaining n2n - 2 guests derange their own hats: Dn2D_{n-2} ways. If guest kk does not get hat 1, relabel hat 1 as guest kk’s forbidden hat: the n1n - 1 remaining guests derange: Dn1D_{n-1} ways. Hence Dn=(n1)(Dn1+Dn2)D_n = (n-1)(D_{n-1} + D_{n-2}). Check: D4=3(2+1)=9D_4 = 3(2 + 1) = 9; and D5=4(9+2)=44D_5 = 4(9 + 2) = 44.

14. Of the 3!=63! = 6 assignments, subtract those fixing at least one hat: three fix a given hat (2!2! each, 3×2=63 \times 2 = 6), overcounting the pairs (33 pairs, 1!1! each) which must return, and re-subtracting the identity (11): D3=66+31=2D_3 = 6 - 6 + 3 - 1 = 2, i.e. 3!(11+1216)=23!\left(1 - 1 + \frac12 - \frac16\right) = 2. In general Dn=n!k=0n(1)kk!D_n = n!\sum_{k=0}^{n} \frac{(-1)^k}{k!}.

15. D5120=441200.3667\frac{D_5}{120} = \frac{44}{120} \approx 0.3667, already close to 1e0.3679\frac1\eu \approx 0.3679: the alternating sum 11+12!13!+1 - 1 + \frac{1}{2!} - \frac{1}{3!} + \dots marches to e1\eu^{-1}. A large party’s hats derange about 36.8%36.8\,\% of the time — the lottery’s and the secretary’s constant, third sighting.

16. P(valid)=D1010!0.368\P(\text{valid}) = \frac{D_{10}}{10!} \approx 0.368. Each redraw succeeds with probability 1e\approx \frac1\eu, so the expected number of draws is about e2.7\eu \approx 2.7: budget three hat-passings.

17. Each handshake contributes 22 to the total degree count, so the sum of all guests’ handshake-numbers is even. A sum of integers is even only if the number of odd terms is even: odd-shakers come in even numbers. (At three guests: possible handshake profiles never have exactly one or three odd entries — check the four possible graphs.)

18. n=1n = 1: 1=11 = 1. If 13++n3=(n(n+1)2)21^3 + \dots + n^3 = \left(\frac{n(n+1)}{2}\right)^2, adding (n+1)3(n+1)^3:

n2(n+1)24+(n+1)3=(n+1)2(n2+4n+4)4=((n+1)(n+2)2) ⁣2:\frac{n^2(n+1)^2}{4} + (n+1)^3 = \frac{(n+1)^2\left(n^2 + 4n + 4\right)}{4} = \left(\frac{(n+1)(n+2)}{2}\right)^{\!2} :

heredity. For n=3n = 3: 1+8+27=36=621 + 8 + 27 = 36 = 6^2.

19. A path to (n,n)(n, n) makes 2n2n steps and crosses the anti-diagonal x+y=nx + y = n at exactly one lattice point (j,nj)(j, n - j); the first half is a path with jj R’s among nn steps ((nj)\binom nj choices), the second half, read backwards, likewise ((nj)\binom nj again, by symmetry). Summing over the crossing point: (2nn)=j(nj)2\binom{2n}{n} = \sum_j \binom nj^2 — Vandermonde’s identity, drawn.

20. Multiply stages, add cases: plates and poker hands. Encode: paths as RU-words, orders as stars and bars. Count twice: committees-with-chair, handshakes, mid-cut paths. Subtract and correct: the deranged hats, with 1e\frac1\eu as the residue. Next stops: these counts under probability’s fractions, and the path-counting powers of the adjacency matrices two chapters ahead.