Back to Combinatorics

Chapter 6: Binomial Coefficients and Identities

October 10, 2026 Wasil Zafar 20 min read

See algebraic identities as counts of the same objects

Table of Contents

  1. Why does choosing a team in two stages yield Vandermonde's identity?
  2. 6.1 Pascal's triangle and combinatorial identities
  3. 6.2 Binomial theorem and generalized binomial series
  4. 6.3 Unimodality and log-concavity
  5. 6.4 Multinomial theorem
  6. 6.5 Vandermonde's identity and Chu–Vandermonde summation
  7. 6.6 Binomial inversion
  8. 6.7 Gaussian binomial coefficients and q-analogues
  9. 6.8 Identities via bijections, generating functions, and algebra
  10. Prove one identity by three methods and examine a q-analogue

Why Does Choosing a Team in Two Stages Yield Vandermonde's Identity?

Suppose a company needs to form a three-person project team from a pool of seven volunteers: three designers ($D_1, D_2, D_3$) and four engineers ($E_1, E_2, E_3, E_4$). All seven people are distinct, the two groups are disjoint, and the team has no assigned internal hierarchy or roles. How many distinct three-person teams can we form?

We can solve this counting problem in two distinct ways:

  1. Direct Selection: Ignore job titles and select any three people directly from the combined pool of seven. This gives $\binom{7}{3} = \frac{7 \times 6 \times 5}{3 \times 2 \times 1} = 35$ total teams.
  2. Two-Stage Selection by Role: Partition the team according to how many designers it contains. If a team contains $j$ designers (where $j \in \{0, 1, 2, 3\}$), it must contain exactly $3-j$ engineers to make up the total size of three.

Calculating the choices for each mutually exclusive case:

$$\underbrace{\binom{3}{0}\binom{4}{3}}_{j=0\text{ Designers}} + \underbrace{\binom{3}{1}\binom{4}{2}}_{j=1\text{ Designer}} + \underbrace{\binom{3}{2}\binom{4}{1}}_{j=2\text{ Designers}} + \underbrace{\binom{3}{3}\binom{4}{0}}_{j=3\text{ Designers}} = 4 + 18 + 12 + 1 = 35.$$
Dual Perspectives on Team Selection: Direct vs. Two-Stage Selection Diagram comparing direct selection of 3 people from a pool of 7 versus partitioning choices into designer and engineer stages. Counting the Same Teams: Direct Selection vs. Two-Stage Partitioning Method 1: Direct Single-Pool Selection Combined Pool (7 Volunteers) D₁ D₂ D₃ E₁ E₂ E₃ E₄ Choose Any 3 from 7 binom(7, 3) = 35 Teams Method 2: Two-Stage Partitioned Selection 3 Designers D₁ D₂ D₃ + 4 Engineers E₁ E₂ E₃ E₄ Sum Mutually Exclusive Designer Choices j 4 + 18 + 12 + 1 = 35 Teams
Figure 6.1: Dual perspectives on forming a team: direct choice from the total pool versus partitioning choices across the two disjoint role categories.

The numerical agreement $35 = 35$ is no accident. Every valid team determines a unique pair: $(\text{Designer members}, \text{Engineer members})$. Conversely, specifying any such pair uniquely reconstructs a distinct team. Because this correspondence is a bijection (a reversible one-to-one mapping), both counting procedures must produce the exact same total!

Decomposition of Team Selection into Four Mutually Exclusive Cases Diagram showing the four cases j=0, j=1, j=2, and j=3 designers, with their respective multiplication rules summing to 35. Breakdown of Mutually Exclusive Designer Cases (Total = 35 Teams) Case j = 0 Designers Designers: 3 choose 0 = 1 Engineers: 4 choose 3 = 4 1 × 4 = 4 Teams All-Engineer Teams Case j = 1 Designer Designers: 3 choose 1 = 3 Engineers: 4 choose 2 = 6 3 × 6 = 18 Teams Largest Share (51.4%) Case j = 2 Designers Designers: 3 choose 2 = 3 Engineers: 4 choose 1 = 4 3 × 4 = 12 Teams Designer Majority Case j = 3 Designers Designers: 3 choose 3 = 1 Engineers: 4 choose 0 = 1 1 × 1 = 1 Team All-Designer Team Addition Rule for Disjoint Sets: 4 + 18 + 12 + 1 = 35 Total Teams
Figure 6.2: Each row represents a mutually exclusive way to construct the team. The multiplication rule applies within each row, and the addition rule combines all rows.

This illustrates the guiding principle of combinatorial proof: to establish an algebraic identity, show that both sides count the exact same set of objects from different vantage points.

Motivating Problem

Why does choosing a team in two stages yield Vandermondes identity?

Inputs: Designers $D_1, D_2, D_3$; engineers $E_1, E_2, E_3, E_4$; team size $r = 3$.

Designers on Team ($j$) Designer Choices $\binom{3}{j}$ Engineer Choices $\binom{4}{3-j}$ Subtotal Teams
0 $\binom{3}{0} = 1$ $\binom{4}{3} = 4$ 4
1 $\binom{3}{1} = 3$ $\binom{4}{2} = 6$ 18
2 $\binom{3}{2} = 3$ $\binom{4}{1} = 4$ 12
3 $\binom{3}{3} = 1$ $\binom{4}{0} = 1$ 1

For example, the team $\{D_1, E_2, E_4\}$ appears in the row $j=1$. Its unique two-stage representation is the pair $(\{D_1\}, \{E_2, E_4\})$.

Validation: Within each row, choices are independent, so we multiply designer and engineer combinations (Multiplication Rule). Because the rows represent disjoint, non-overlapping cases, we sum the subtotals (Addition Rule). No division for ordering is needed because each choice is an unordered subset.

Generalization Question: If the two groups have arbitrary sizes $m$ and $n$, and we form a team of size $r$, which sum must equal $\binom{m+n}{r}$? Answer: $\sum_{j=0}^r \binom{m}{j}\binom{n}{r-j} = \binom{m+n}{r}$.


6.1 Pascal's triangle and combinatorial identities

For non-negative integers $n \ge 0$ and $0 \le k \le n$, the binomial coefficient $\binom{n}{k}$ (read "$n$ choose $k$") counts the number of distinct $k$-element subsets that can be formed from an $n$-element set. It is calculated algebraically as:

$$\binom{n}{k} = \frac{n!}{k!(n-k)!}$$

By convention, we extend binomial coefficients to boundary cases by setting $\binom{n}{k} = 0$ whenever $k < 0$ or $k > n$, provided $n$ is a non-negative integer.


Pascal's Identity

For any integer $n \ge 1$ and $0 \le k \le n$, binomial coefficients satisfy Pascal's identity:

$$\binom{n}{k} = \binom{n-1}{k} + \binom{n-1}{k-1}$$

Combinatorial Proof: Consider an $n$-element set $S = \{1, 2, \dots, n-1, \star\}$, where we distinguish one special element called $\star$. We want to choose a $k$-element subset from $S$. Every valid subset falls into exactly one of two mutually exclusive categories:

  1. Subsets that EXCLUDE $\star$: We must choose all $k$ elements from the remaining $n-1$ ordinary elements. There are $\binom{n-1}{k}$ ways to do this.
  2. Subsets that INCLUDE $\star$: Since $\star$ is already selected, we must choose the remaining $k-1$ elements from the other $n-1$ elements. There are $\binom{n-1}{k-1}$ ways to do this.

Because these two cases are disjoint and together cover every possible $k$-subset, adding their counts proves the identity.

Combinatorial Logic of Pascal's Identity Diagram showing how choosing a k-subset from n items splits into excluding or including a distinguished starred element. Combinatorial Proof of Pascal's Identity: binom(n, k) = binom(n - 1, k) + binom(n - 1, k - 1) Ordinary Elements (n - 1 Elements) Distinguished Element ★ Case 1: Exclude Element ★ Select all k items from remaining n - 1 items binom(n - 1, k) Ways Case 2: Include Element ★ ★ is taken; select remaining k - 1 items binom(n - 1, k - 1) Ways Summing Both Disjoint Cases: binom(n, k) = binom(n - 1, k) + binom(n - 1, k - 1) ✓
Figure 6.3: Partitioning subset selection based on whether a distinguished element $\star$ is excluded or included.

Pascal's Triangle and Core Identities

Arranging binomial coefficients into triangular rows creates Pascal's Triangle, where every interior entry is formed by adding the two adjacent entries directly above it:

Row $n$ Entries $\binom{n}{0}, \binom{n}{1}, \dots, \binom{n}{n}$ Row Sum $\sum_{k=0}^n \binom{n}{k}$
01$2^0 = 1$
11, 1$2^1 = 2$
21, 2, 1$2^2 = 4$
31, 3, 3, 1$2^3 = 8$
41, 4, 6, 4, 1$2^4 = 16$
51, 5, 10, 10, 5, 1$2^5 = 32$

Pascal's triangle reveals several fundamental properties of binomial coefficients:

  • Symmetry Property: $\binom{n}{k} = \binom{n}{n-k}$. Choosing $k$ elements to include in a subset is equivalent to choosing the remaining $n-k$ elements to exclude.
  • Row-Sum Identity: $\sum_{k=0}^n \binom{n}{k} = 2^n$. Every element in an $n$-element set has 2 choices (include or exclude). Summing subsets across all possible sizes $k$ yields all $2^n$ possible subsets.

Committee-Chairperson Identity

For integers $1 \le k \le n$, the committee-chairperson identity states:

$$k\binom{n}{k} = n\binom{n-1}{k-1}$$

Combinatorial Proof: Suppose we want to choose a committee of $k$ people from $n$ candidates, and designate one committee member as the chairperson. We can count the valid outcomes in two ways:

  • Committee-First Approach (Left Side): First pick a $k$-person committee from $n$ candidates in $\binom{n}{k}$ ways. Then pick one of the $k$ committee members to be chairperson in $k$ ways. Total: $k\binom{n}{k}$.
  • Chairperson-First Approach (Right Side): First pick the chairperson directly from all $n$ candidates in $n$ ways. Then pick the remaining $k-1$ committee members from the remaining $n-1$ candidates in $\binom{n-1}{k-1}$ ways. Total: $n\binom{n-1}{k-1}$.
Committee Chairperson Identity Visualizer Diagram showing two paths to form a team of k people with 1 leader: Committee-First vs Chairperson-First. Committee-Chairperson Identity: k · C(n,k) = n · C(n−1,k−1) Method A: Select Committee First 1. Choose k from n candidates: C(n,k) ways 2. Choose a chair from k members: k ways Total = k × binom(n, k) Method B: Select Chairperson First 1. Choose a chair from n candidates: n ways 2. Choose k−1 from n−1 others: C(n−1,k−1) Total = n × binom(n - 1, k - 1) Both procedures form the exact same structured committees, establishing equality!
Figure 6.4: The committee-chairperson identity counts structured teams either by selecting the subset first or choosing the leader first.

The Hockey-Stick Identity

For integers $0 \le r \le N$, summing binomial coefficients down a diagonal of Pascal's triangle yields the hockey-stick identity:

$$\sum_{j=r}^N \binom{j}{r} = \binom{r}{r} + \binom{r+1}{r} + \dots + \binom{N}{r} = \binom{N+1}{r+1}$$

Combinatorial Proof: We want to count the number of $(r+1)$-element subsets selected from the set $\{0, 1, 2, \dots, N\}$, which contains $N+1$ total elements. Direct selection gives $\binom{N+1}{r+1}$.

Alternatively, classify each subset according to its largest element $j$:

  • The largest element $j$ must satisfy $r \le j \le N$ (since we need at least $r$ smaller elements).
  • Once $j$ is fixed as the largest element, the remaining $r$ elements of the subset must be chosen from $\{0, 1, \dots, j-1\}$, which contains $j$ elements.
  • There are $\binom{j}{r}$ ways to choose these remaining $r$ elements.

Summing over all possible largest elements $j$ from $r$ to $N$ proves the identity!

Pascal's Triangle Hockey-Stick Pattern Visualizer Diagram showing diagonal sum on Pascal's triangle forming a hockey stick shape for r=2 and N=4. Hockey-Stick Pattern: C(2,2) + C(3,2) + C(4,2) = C(5,3) = 10 Pascal's Triangle Path (r = 2) 1 2 1 1 3 3 1 1 4 6 4 1 1 5 10 10 5 1 Handle: 1 + 3 + 6 ➔ Blade: 10 Classification by Max Element j in {0,1,2,3,4} Max j = 2: choose 2 from {0,1} = 1 Max j = 3: choose 2 from {0,1,2} = 3 Max j = 4: choose 2 from {0,1,2,3} = 6 Total 3-subsets = 1 + 3 + 6 = 10 ✓
Figure 6.5: The hockey-stick identity sums binomial terms along a diagonal until taking a sharp turn to reveal the total sum $\binom{N+1}{r+1}$.
Worked Exercise

Pascal's Identity & Subset Partitioning

Exercise: Verify $\binom{6}{2} = \binom{5}{2} + \binom{5}{1}$ and describe the two classes of subsets when the distinguished element is $6$.

  • Numerical Verification: $$\binom{6}{2} = \frac{6 \times 5}{2 \times 1} = 15, \qquad \binom{5}{2} = 10, \qquad \binom{5}{1} = 5 \implies 15 = 10 + 5 \quad \checkmark$$
  • Combinatorial Description: Consider choosing pairs of elements from $\{1, 2, 3, 4, 5, 6\}$:
    • Pairs excluding $6$: Both elements are chosen from $\{1, 2, 3, 4, 5\}$. There are $\binom{5}{2} = 10$ such pairs (e.g., $\{1,2\}, \{3,5\}$).
    • Pairs containing $6$: Element $6$ is fixed; the other element is chosen from $\{1, 2, 3, 4, 5\}$. There are $\binom{5}{1} = 5$ such pairs (e.g., $\{1,6\}, \{2,6\}, \dots, \{5,6\}$).

6.2 Binomial theorem and generalized binomial series

For a non-negative integer $n$ and commuting variables $x, y$, the binomial theorem expands the $n$-th power of a sum into a polynomial sum of binomial coefficients and monomials:

$$(x+y)^n = \sum_{k=0}^n \binom{n}{k} x^{n-k} y^k$$

Combinatorial Explanation: Think of $(x+y)^n$ as multiplying $n$ identical factors: $(x+y)(x+y)\cdots(x+y)$. When expanding this product, every term is formed by choosing either $x$ or $y$ from each factor. To obtain the monomial $x^{n-k}y^k$, we must select $y$ from exactly $k$ factors and $x$ from the remaining $n-k$ factors. The number of distinct ways to select these $k$ factors out of $n$ is precisely $\binom{n}{k}$. Commutativity ensures that all choices for a given $k$ collect into the term $\binom{n}{k}x^{n-k}y^k$.

Combinatorial Choices in Expanding (x + y)^3 Diagram showing 3 factors splitting into x or y choices resulting in terms x^3, x^2y, xy^2, and y^3 with coefficients 1, 3, 3, 1. Combinatorial Expansion of (x + y)³ = 1x³ + 3x²y + 3xy² + 1y³ Factor 1: (x + y) Factor 2: (x + y) Factor 3: (x + y) k = 0 y's: x³ Choices: binom(3,0) = 1 Path: (x, x, x) k = 1 y: x²y Choices: binom(3,1) = 3 (y,x,x) (x,y,x) (x,x,y) k = 2 y's: xy² Choices: binom(3,2) = 3 (x,y,y) (y,x,y) (y,y,x) k = 3 y's: y³ Choices: binom(3,3) = 1 Path: (y, y, y) Total Terms Summed: 1x³ + 3x²y + 3xy² + 1y³ ✓
Figure 6.6: Expanding $(x+y)^3$ by choosing either $x$ or $y$ from each factor, yielding coefficients $1, 3, 3, 1$.

Special substitutions yield crucial identities:

  • Setting $x = y = 1$ gives $\sum_{k=0}^n \binom{n}{k} = 2^n$ (the total row-sum identity).
  • Setting $x = 1, y = -1$ gives for $n \ge 1$: $$\sum_{k=0}^n (-1)^k \binom{n}{k} = \binom{n}{0} - \binom{n}{1} + \binom{n}{2} - \dots = 0$$ Combinatorially, toggling one fixed element establishes a perfect 1-to-1 matching (bijection) between all even-sized subsets and odd-sized subsets. (Note: for $n=0$, $2^0=1 \ne 0$).

Generalized Binomial Coefficients & Series

For any real number $\alpha$ and integer $k \ge 0$, we define the generalized binomial coefficient as:

$$\binom{\alpha}{0} = 1, \qquad \binom{\alpha}{k} = \frac{\alpha(\alpha-1)(\alpha-2)\cdots(\alpha-k+1)}{k!} \quad (k \ge 1)$$

Unlike standard binomial coefficients, $\alpha$ can be negative or fractional. If $\alpha$ is a non-negative integer, $\binom{\alpha}{k} = 0$ for all $k > \alpha$. Otherwise, the generalized binomial expansion produces an infinite series that converges for $|x| < 1$:

$$(1+x)^\alpha = \sum_{k=0}^{\infty} \binom{\alpha}{k} x^k \qquad (|x| < 1)$$

Proof mechanism for readers familiar with calculus. The coefficients satisfy $(k+1)a_{k+1}=(\alpha-k)a_k$ and $a_0=1$. Their series converges absolutely for $|x|<1$ by the ratio test, unless it already terminates. Differentiating within that interval shows that its sum $F$ satisfies $(1+x)F'=\alpha F$ and $F(0)=1$. Thus the derivative of $F(x)(1+x)^{-\alpha}$ is zero, proving $F(x)=(1+x)^\alpha$. This analytic justification is optional background; the finite counting proofs do not require calculus.

Proof Workshop

Binomial Theorem & Generalized Binomial Series Examples

1. Finite Expansion: Expand $(2+x)^4$.

Choosing positions supplying $x$ gives:

$$(2+x)^4 = \binom{4}{0}2^4 + \binom{4}{1}2^3 x + \binom{4}{2}2^2 x^2 + \binom{4}{3}2^1 x^3 + \binom{4}{4}x^4 = 16 + 32x + 24x^2 + 8x^3 + x^4$$

For instance, the coefficient of $x^2$ is $\binom{4}{2}2^2 = 6 \times 4 = 24$.


2. Infinite Expansion ($\alpha = -2$):

$$\binom{-2}{k} = \frac{(-2)(-3)\cdots(-2-k+1)}{k!} = (-1)^k (k+1)$$

Substituting $-x$ for $x$ in $(1-x)^{-2}$ yields the power series:

$$\frac{1}{(1-x)^2} = \sum_{k=0}^{\infty} (k+1)x^k = 1 + 2x + 3x^2 + 4x^3 + \dots \qquad (|x| < 1)$$

There is also a direct coefficient explanation: multiplying two geometric series, each with coefficients $1$, gives $k+1$ contributions to the coefficient of $x^k$, one for each pair of non-negative exponents summing to $k$.

At $x=1/2$, the infinite sum is $4$. Its first five terms sum to $1+1+3/4+1/2+5/16=57/16$, which is less than $4$; a finite truncation is an approximation, not the exact infinite sum. At $x=1$, the displayed series diverges, and the expression on the left is undefined.

Exercise: Find the coefficient of $x^3$ in $(1+2x)^5$.
Hint: Choose 3 factors to supply $(2x)$. Answer: $\binom{5}{3} 2^3 = 10 \times 8 = 80$.


6.3 Unimodality and log-concavity

Optional extension. This section studies the shape of a row of coefficients; it is not required for the chapter foundation.

A finite sequence is unimodal if it first weakly increases and then weakly decreases. A non-negative sequence $(a_0, a_1, \dots, a_n)$ is log-concave if every internal term satisfies:

$$a_k^2 \ge a_{k-1} a_{k+1} \qquad (1 \le k \le n-1)$$

For a positive sequence, divide by $a_{k-1}a_k$ to see that log-concavity means its successive ratios are non-increasing. These ratios can cross from at least one to at most one only once, so a positive log-concave sequence is unimodal. Positivity is sufficient here; arbitrary zero patterns require additional care.

Set $b_k = \binom{n}{k}$. Its successive ratios are:

$$\frac{b_{k+1}}{b_k} = \frac{n-k}{k+1} \qquad (0 \le k \le n-1)$$

The ratio exceeds one before the middle, equals one at the middle transition when $n$ is odd, and is below one afterward. Hence every binomial row is unimodal. For even $n$, there is one maximum at $k=n/2$; for odd $n$, there are two equal central maxima.

For $1 \le k \le n-1$:

$$\frac{b_k}{b_{k-1}} = \frac{n-k+1}{k} > \frac{n-k}{k+1} = \frac{b_{k+1}}{b_k}$$

which proves strict log-concavity at every interior position. This is a proof for all rows, rather than an inference from the triangle's appearance.

Worked example. Row six is $1, 6, 15, 20, 15, 6, 1$. At the center, $20^2 = 400 > 15 \cdot 15 = 225$; at the next position, $15^2 = 225 > 6 \cdot 20 = 120$. The diagram shows the exact coefficients, with bar heights proportional to their values.

Unimodality of Row 6 of Pascal's Triangle Seven bars indexed 0 through 6 have values 1, 6, 15, 20, 15, 6, 1 with the unique maximum 20 at index k=3. Row 6 Binomial Distribution: Unimodal & Log-Concave Peak at k = 3 0 10 20 1 k=0 6 k=1 15 k=2 20 ★ k=3 15 k=4 6 k=5 1 k=6 Check Log-Concavity at Center: 20² = 400 > 15 × 15 = 225 ✓
Figure 6.7: Unimodality and log-concavity of Row 6 coefficients in Pascal's triangle, peaking at $k=3$.

The coefficients count subsets of each size. If a subset is chosen uniformly from all $2^n$ subsets, its size has probabilities $\binom{n}{k}/2^n$. Thus the central peak describes the most likely sizes under this particular probability model.

Exercise. Locate the maxima in row seven without computing every entry.
Hint: Determine where $(7-k)/(k+1)$ equals one.
Answer: The two maxima occur at $k=3$ and $k=4$, both with value $35$.


6.4 Multinomial theorem

The binomial theorem offers two choices per factor. With $s \ge 1$ commuting variables, the multinomial theorem gives, for integer $n \ge 0$:

$$(x_1 + x_2 + \dots + x_s)^n = \sum_{\substack{n_1 + n_2 + \dots + n_s = n \\ n_i \ge 0}} \frac{n!}{n_1! n_2! \cdots n_s!} \, x_1^{n_1} x_2^{n_2} \cdots x_s^{n_s}$$

To produce the monomial with exponents $(n_1, \dots, n_s)$, choose which $n_i$ factors supply symbol $x_i$. The number of assignments of factors to symbols is the multinomial coefficient from Chapter 4. Every expanded term has exactly one such assignment, proving the theorem.

Worked example. The coefficient of $x^2yz$ in $(x+y+z)^4$ is:

$$\frac{4!}{2!1!1!} = 12$$

Choose two of the four factors for $x$, then one of the remaining two for $y$; the final factor supplies $z$. This gives $\binom{4}{2}\binom{2}{1} = 12$ choices.

Multinomial Assignment for (x + y + z)^4 term x^2 y z Diagram showing 4 factors assigned to 3 variable buckets x, y, and z giving coefficient 4! / (2! 1! 1!) = 12. Multinomial Partitioning: Coefficient of x²yz in (x + y + z)⁴ Step 1: 4 Factors Available F₁ F₂ F₃ F₄ Step 2: Assign Factors to Monomial Targets (x², y¹, z¹) Target x² Pick 2 factors binom(4,2) = 6 Target y¹ Pick 1 factor binom(2,1) = 2 Target z¹ Pick 1 factor binom(1,1) = 1 Total Coefficient = 6 × 2 × 1 = 12 (or 4! / (2! 1! 1!) = 12) ✓
Figure 6.8: Two-stage selection yielding the multinomial coefficient $\frac{4!}{2!1!1!} = 12$ for term $x^2yz$.

Setting every variable equal to one yields:

$$\sum_{\substack{n_1+\dots+n_s=n \\ n_i \ge 0}} \frac{n!}{n_1! \cdots n_s!} = s^n$$

This counts all length-$n$ words over an $s$-symbol alphabet by their symbol multiplicities. It also explains why summing multinomial probabilities gives one: substitute non-negative probabilities $p_1, \dots, p_s$ with sum one into the theorem.

Exercise. Find the coefficient of $xyz$ in $(x+y+z)^3$, and then in $(2x+y+z)^3$.
Hint: The second expression supplies an extra factor of two when its one $x$ is chosen.
Answer: $6$ and $12$.


6.5 Vandermonde's identity and Chu–Vandermonde summation

For non-negative integers $m, n, r$, Vandermonde's identity is:

$$\sum_{j=0}^r \binom{m}{j} \binom{n}{r-j} = \binom{m+n}{r}$$

An ordinary binomial coefficient with an impossible lower argument is zero. Consequently, the displayed bounds work even when some cases are impossible. If $r > m+n$, both sides are zero.

Combinatorial proof. Let $A$ and $B$ be disjoint sets of sizes $m$ and $n$. An $r$-subset $T$ of their union determines the pair $(T \cap A, T \cap B)$. Conversely, the union of a $j$-subset of $A$ and an $(r-j)$-subset of $B$ gives an $r$-subset $T$. The intersection and union operations are inverse, so the two counts agree.

Coefficient proof. The product identity

$$(1+x)^m (1+x)^n = (1+x)^{m+n}$$

has coefficient $\sum_j \binom{m}{j}\binom{n}{r-j}$ on the left at $x^r$, and coefficient $\binom{m+n}{r}$ on the right. Polynomial multiplication implements the same split by the number of selected elements from the first group.

Generating Function Coefficient Extraction for Vandermonde's Identity Diagram showing polynomial product (1+x)^m * (1+x)^n = (1+x)^(m+n) matching x^r coefficients via convolution sum. Coefficient Proof of Vandermonde: Extracting [xʳ] from (1+x)ᵐ (1+x)ⁿ = (1+x)ᵐ⁺ⁿ Left Factor: (1 + x)ᵐ Supplies term xʲ with coefficient binom(m, j) binom(m, j) xʲ × Right Factor: (1 + x)ⁿ Supplies term xʳ⁻ʲ with coefficient binom(n, r-j) binom(n, r - j) xʳ⁻ʲ Summing exponents j + (r - j) = r yields [xʳ] in (1+x)ᵐ⁺ⁿ = binom(m+n, r) ✓
Figure 6.9: Convolution of polynomial coefficients when multiplying $(1+x)^m$ and $(1+x)^n$.

Worked example. Choose four people from groups of sizes four and three. The identity gives:

$$0 + 4 + 18 + 12 + 1 = 35 = \binom{7}{4}$$

The zero term corresponds to choosing no members from the first group and four from a group that has only three members.

Generalized convolution. With generalized binomial coefficients, for real parameters $\alpha, \beta$ and integer $r \ge 0$:

$$\sum_{j=0}^r \binom{\alpha}{j} \binom{\beta}{r-j} = \binom{\alpha+\beta}{r}$$

Multiplying the convergent generalized binomial series for $|x| < 1$ proves this by coefficient comparison. Each coefficient involves only finitely many terms. Negative or fractional parameters no longer have the ordinary team-selection interpretation; the identity remains algebraic.

Optional notation bridge: Chu–Vandermonde. Define the rising factorial $(a)_0=1$ and $(a)_j = a(a+1)\cdots(a+j-1)$ for $j \ge 1$. A standard terminating form is:

$$\sum_{j=0}^r \frac{(-r)_j (b)_j}{(c)_j \, j!} = \frac{(c-b)_r}{(c)_r}$$

where $r$ is a non-negative integer and the denominator factors are non-zero. For $r \ge 1$, it suffices to exclude $c = 0, -1, \dots, -(r-1)$. This is the terminating hypergeometric identity recorded in NIST DLMF, equation 15.4.24.

To connect it to the preceding convolution, substitute $\alpha = -b$ and $\beta = c+r-1$, then divide by $\binom{c+r-1}{r} = (c)_r / r!$. The resulting terms are exactly the displayed rising-factorial terms. No knowledge of infinite hypergeometric functions is needed for this finite identity.

For $r=2, b=1, c=3$, the sum is $1 - 2/3 + 1/6 = 1/2$, agreeing with $(2)_2 / (3)_2 = 6/12$.

Exercise. Evaluate $\sum_{j=0}^2 \binom{2}{j}\binom{5}{2-j}$.
Hint: Count two-person teams from seven people.
Answer: $10 + 10 + 1 = 21 = \binom{7}{2}$.


6.6 Binomial inversion

Suppose sequences $(a_n)$ and $(b_n)$ satisfy:

$$b_n = \sum_{k=0}^n \binom{n}{k} a_k \qquad (n \ge 0)$$

The sequence $b$ combines information from all subset sizes. Binomial inversion recovers the original sequence:

$$a_n = \sum_{k=0}^n (-1)^{n-k} \binom{n}{k} b_k$$

The sums are finite, and the entries may be ordinary real numbers or exact algebraic quantities; they need not be non-negative counts.

Proof. Substitute the defining expression for $b_k$ into the proposed inverse and collect the coefficient of $a_j$. It is:

$$\sum_{k=j}^n (-1)^{n-k} \binom{n}{k}\binom{k}{j} = \binom{n}{j} \sum_{k=j}^n (-1)^{n-k} \binom{n-j}{k-j}$$

The identity $\binom{n}{k}\binom{k}{j} = \binom{n}{j}\binom{n-j}{k-j}$ counts a nested pair of subsets: choose the larger and then the smaller, or the smaller and then its extra elements. If $j < n$, the remaining alternating sum is zero by the binomial theorem. If $j = n$, it consists of the single value one. Thus the substitution leaves exactly $a_n$.

Worked example. Let $a_n = 2^n$. Then:

$$b_n = \sum_{k=0}^n \binom{n}{k} 2^k = 3^n$$

One interpretation is a three-state labeling of each element: unselected, selected with color one, or selected with color two. Choose the selected subset, then color its members. Inverting at $n=3$ gives:

$$a_3 = -1 + 3\cdot 3 - 3\cdot 9 + 27 = 8$$

Application: derangements. A derangement is a permutation with no fixed point. Let $D_k$ count derangements of $k$ elements, including $D_0=1$. Every permutation of $n$ elements has a unique set of $k$ elements that it moves; on that set its restriction is a derangement. Therefore:

$$n! = \sum_{k=0}^n \binom{n}{k} D_k$$

Binomial inversion yields:

$$D_n = \sum_{k=0}^n (-1)^{n-k} \binom{n}{k} k! = n! \sum_{j=0}^n \frac{(-1)^j}{j!}$$

For example, $D_3 = 6(1 - 1 + 1/2 - 1/6) = 2$, corresponding to the two three-cycles.

Binomial Inversion Application: Counting Derangements D_3 Diagram illustrating counting derangements D_3 = 2 out of 3! = 6 total permutations via inclusion-exclusion inversion. Application of Binomial Inversion: Derangements D₃ = 2 for n = 3 Elements Total Permutations: 3! = 6 (1,2,3) — 3 fixed pts (1,3,2), (3,2,1), (2,1,3) — 1 fixed pt (2,3,1), (3,1,2) — 0 fixed pts ➔ Inversion Formula: D₃ = 3! (1/0! - 1/1! + 1/2! - 1/3!) D₃ = 6 × (1 - 1 + 1/2 - 1/6) = 2 Derangements The two valid zero-fixed-point permutations are (2,3,1) and (3,1,2). General Derangement Formula: Dₙ = n! ∑ (-1)ʲ / j! ✓
Figure 6.10: Counting derangements $D_3 = 2$ via inclusion-exclusion binomial inversion.

Exercise. Recover $a_0, a_1, a_2, a_3$ when $b_n = 2^n$.
Hint: Substitute the inverse formula, or recognize $(2-1)^n$.
Answer: All four values are $1$.


6.7 Gaussian binomial coefficients and q-analogues

Optional extension. A $q$-analogue replaces a numerical count by an expression involving a variable $q$, with the original result recovered at $q=1$. Here we first use $q$ as a formal weight; no finite-field background is needed.

For a binary word $w$, define $\operatorname{inv}(w)$ as the number of position pairs in which a $1$ occurs before a $0$. Define:

$$G_{n,k}(q) = \sum_{\substack{w \in \{0,1\}^n \\ w \text{ has } k \text{ ones}}} q^{\operatorname{inv}(w)}$$

This polynomial is the Gaussian binomial coefficient, also written $\begin{bmatrix} n \\ k \end{bmatrix}_q$. Its coefficient of $q^t$ counts words with exactly $t$ inversions. Inversion-weighted multiset words provide a standard interpretation of q-binomial and q-multinomial coefficients.

Worked example. List all length-four words with two ones:

Word Inversions Weight
$0011$$0$$1$
$0101$$1$$q$
$0110$$2$$q^2$
$1001$$2$$q^2$
$1010$$3$$q^3$
$1100$$4$$q^4$

Thus:

$$G_{4,2}(q) = 1 + q + 2q^2 + q^3 + q^4$$

At $q=1$, every word contributes one, giving $G_{4,2}(1) = 6 = \binom{4}{2}$. The coefficient $2$ records information that the ordinary total does not retain.

Inversion Weights for Binary Words in G_{4,2}(q) Diagram showing all 6 binary words of length 4 with two ones, their inversion counts, and q-polynomial polynomial G_{4,2}(q) = 1 + q + 2q^2 + q^3 + q^4. Inversion Structure of Gaussian Coefficient G₄,₂(q) = 1 + q + 2q² + q³ + q⁴ 0011 Inversions: 0 Weight: q⁰ 0101 Inversions: 1 Weight: q¹ 0110 Inversions: 2 Weight: q² 1001 Inversions: 2 Weight: q² 1010 Inversions: 3 Weight: q³ 1100 Inversions: 4 Weight: q⁴ Setting q = 1 recovers ordinary count: 1 + 1 + 2 + 1 + 1 = 6 = binom(4,2) ✓
Figure 6.11: The six binary words with two ones weighted by inversion count $q^{\operatorname{inv}(w)}$, producing $G_{4,2}(q)$.

A weighted Pascal recurrence. For $n \ge 1$, separate words by their last symbol. A final $1$ adds no inversion; a final $0$ adds one inversion for each of the $k$ earlier ones. Hence:

$$G_{n,k}(q) = G_{n-1,k-1}(q) + q^k G_{n-1,k}(q)$$

with $G_{0,0}=1$ and $G_{n,k}=0$ outside $0 \le k \le n$. This proves polynomiality and non-negative integer coefficients directly. Setting $q=1$ recovers Pascal's identity.

The same recurrence and boundary values establish the familiar product representation:

$$G_{n,k}(q) = \prod_{i=1}^k \frac{1-q^{n-k+i}}{1-q^i}$$

One can verify the recurrence algebraically for this rational expression and then use induction. The factors cancel to give the polynomial defined above. At $q=1$, evaluate that polynomial or take the limit; do not substitute into the uncanceled quotients, which would give $0/0$.

Bridge to finite fields. A field allows addition, subtraction, multiplication, and division by non-zero elements. When $q$ is a prime power, a field with $q$ elements exists. An $n$-dimensional vector space over it has $q^n$ vectors. To count ordered lists of $k$ linearly independent vectors, choose successively outside the spans already created, giving:

$$(q^n-1)(q^n-q)\cdots(q^n-q^{k-1})$$

Each $k$-dimensional subspace has $(q^k-1)(q^k-q)\cdots(q^k-q^{k-1})$ ordered bases. Dividing these counts gives exactly $G_{n,k}(q)$. Thus the same polynomial counts subspaces when its argument is a field size. For example, $G_{3,1}(2) = 1+2+4 = 7$, the seven one-dimensional subspaces of a three-dimensional space over the two-element field.

Finite-field interpretation is developed further in Chapter 42, Sections 42.1 and 42.3, listed in the series roadmap. These later sections are optional background for this bridge; the word-weight model already gives a self-contained definition and proof of the recurrence.

Exercise. Compute $G_{3,1}(q)$ by listing the words $001$, $010$, and $100$.
Hint: Their inversion counts are zero, one, and two.
Answer: $1+q+q^2$, recovering $3$ at $q=1$.


6.8 Identities via bijections, generating functions, and algebra

Three proof methods often describe the same structure at different levels. A bijection maps each object reversibly to another object. A generating function stores counts as coefficients. An algebraic proof transforms expressions using already established identities.

For a polynomial or formal power series $F(x)$, write $[x^r]F(x)$ for the coefficient of $x^r$. A formal power series is treated as a sequence of coefficients, without assigning a numerical value to $x$. Its product satisfies:

$$[x^r]\bigl(A(x)B(x)\bigr) = \sum_{j=0}^r a_j b_{r-j}$$

where $a_j = [x^j]A(x)$ and $b_j = [x^j]B(x)$. The sum is finite, so this coefficient rule has no convergence requirement. Evaluating an infinite series at a number is a separate analytic question.

Worked identity: choosing a marked subset. For $n \ge 1$:

$$\sum_{k=0}^n k\binom{n}{k} = n 2^{n-1}$$

Bijection. The left counts pairs $(S,a)$ where $S$ is a subset of an $n$-element set and $a \in S$ is marked. Map the pair to $(a, S \setminus \{a\})$. There are $n$ choices for $a$, and the second component is any subset of the other $n-1$ elements. The inverse restores $a$ to that subset, proving the right-hand count.

Generating-function proof. Marking one selected factor in the product $(1+x)^n$ gives the polynomial:

$$\sum_{k=0}^n k\binom{n}{k} x^k = n x (1+x)^{n-1}$$

Choose which of the $n$ factors is marked; it must supply $x$, and the other factors independently supply $1$ or $x$. Setting $x=1$ proves the identity. Equivalently, readers familiar with derivatives can differentiate $(1+x)^n$ and multiply by $x$.

Algebraic proof. Use $k\binom{n}{k} = n\binom{n-1}{k-1}$ and the row sum:

$$\sum_{k=0}^n k\binom{n}{k} = n \sum_{j=0}^{n-1} \binom{n-1}{j} = n 2^{n-1}$$

The zero term at $k=0$ is omitted before changing variables. For $n=4$, the left side is $0+4+12+12+4=32$, matching $4\cdot 8$.

Three Proof Methods for sum k binom(n,k) = n 2^{n-1} Diagram showing Bijection, Generating Function, and Algebraic proofs for sum k binom(n,k) = n 2^{n-1}. Three Proof Paradigms for Identity: ∑ k binom(n, k) = n 2ⁿ⁻¹ 1. Bijections (Combinatorial) Count marked subsets (S, leader a): Choose leader a (n ways), then choose rest of subset (2ⁿ⁻¹ ways). Result = n × 2ⁿ⁻¹ 2. Generating Functions Differentiate (1+x)ⁿ series: d/dx [(1+x)ⁿ] = n(1+x)ⁿ⁻¹ Evaluate x = 1 ➔ n 2ⁿ⁻¹ 3. Algebraic Transformation Use committee identity k binom(n,k) = n binom(n-1,k-1): n ∑ binom(n-1, j) = n 2ⁿ⁻¹ Algebraic Total = n 2ⁿ⁻¹ All three distinct mathematical methods converge on the exact same result! ✓
Figure 6.12: Comparing Bijection, Generating Function, and Algebraic proofs for $\sum k \binom{n}{k} = n 2^{n-1}$.

These methods have different obligations. A proposed bijection needs a well-defined inverse. A coefficient proof needs the correct coefficient and product rule. An algebraic proof needs valid identities and correctly handled boundaries. A numerical check is useful in all three approaches but replaces none of them.

Exercise. Prove $\sum_{k=0}^n \binom{n}{k} 3^k = 4^n$ in two ways.
Hint: Give each element four states, or set $x=3$ in $(1+x)^n$.
Answer outline: Choose a subset and give each selected element one of three colors; every element is either unselected or has one of three colors.


Prove one identity by three methods and examine a q-analogue

Pascal's recurrence builds the coefficients, while binomial expansion turns them into a polynomial. Vandermonde's identity then describes how two such polynomials combine. A weighted word model preserves that combination rule while recording inversion counts, revealing why a q-analogue needs an extra weight.

The ordinary convolution also appears in probability. If two disjoint groups of $m$ and $n$ independent trials all have success probability $p$, their success-count distributions combine by convolution. For $0 < p < 1$, the probability of $r$ total successes is:

$$\sum_j \binom{m}{j} \binom{n}{r-j} p^r (1-p)^{m+n-r} = \binom{m+n}{r} p^r (1-p)^{m+n-r}$$

This is useful when aggregating independent batches of tests or events. The shared probability $p$ and independence are essential assumptions; groups with different success probabilities do not reduce to this same formula.

Investigation

Prove one identity by three methods and examine a q-analogue

Inputs. Non-negative integers $m, n$ and a team size $0 \le r \le m+n$. Use disjoint labeled groups. Begin with $(m, n, r) = (3, 4, 3)$, then test other small values.

Task 1: warm-up. Compute Pascal rows through row seven and verify the motivating total $4+18+12+1=35$. Include a boundary case such as $r=0$, where the only team is empty.

Task 2: prove Vandermonde by a bijection. Map an $r$-subset of the union to its intersections with the two groups. Specify the inverse and explain why the class indexed by $j$ has size $\binom{m}{j}\binom{n}{r-j}$.

Task 3: prove it with generating functions. Extract $[x^r]$ from $(1+x)^m(1+x)^n=(1+x)^{m+n}$. Show explicitly how selecting exponents $j$ and $r-j$ produces the convolution.

Task 4: give a recurrence proof. Let

$$S_{m,n}(r) = \sum_j \binom{m}{j} \binom{n}{r-j}$$

using zero for impossible lower arguments. Pascal's identity gives, for $m \ge 1$:

$$S_{m,n}(r) = S_{m-1,n}(r) + S_{m-1,n}(r-1)$$

The base case is $S_{0,n}(r) = \binom{n}{r}$. Induct on $m$ and apply Pascal's identity once more to obtain $S_{m,n}(r) = \binom{m+n}{r}$. Include the zero-valued cases needed when $r-1$ is negative. This is a third proof using recurrence and algebra rather than a coefficient extraction.

Optional weighted extension. Let $G_{a,b}(q)$ be the inversion-weighted binary-word polynomial from Section 6.7. Split a length-$(m+n)$ word with $r$ ones into an initial block of length $m$ and a final block of length $n$. If the first block has $j$ ones, the second has $r-j$ ones and $n-r+j$ zeros.

Every first-block $1$ precedes every second-block $0$, so there are exactly $j(n-r+j)$ cross-block inversions. Internal inversions are counted by the two block polynomials. Therefore:

$$G_{m+n,r}(q) = \sum_{j=\max(0,r-n)}^{\min(m,r)} q^{j(n-r+j)} G_{m,j}(q) G_{n,r-j}(q)$$

The bounds include exactly the feasible splits, ensuring that all exponents are non-negative. The correspondence between a full word and its pair of blocks is reversible, and its inversion weight is preserved. This proves the q-Vandermonde identity for this convention. Setting $q=1$ recovers ordinary Vandermonde.

Worked weighted check. For $m=n=r=2$:

$$G_{4,2}(q) = 1 + q(1+q)^2 + q^4 = 1 + q + 2q^2 + q^3 + q^4$$

The three terms correspond to zero, one, or two ones in the first block. Omitting the cross-block factor would give the wrong polynomial, even though the unweighted count at $q=1$ might still agree.

Computational or visual validation. Enumerate all $r$-subsets for small $m+n$ and tally their intersections with the first group. For the weighted extension, enumerate fixed-weight binary words, compute each inversion count by checking position pairs, and store a coefficient list indexed by that count. Independently build the same polynomial with the weighted Pascal recurrence, then compare coefficient lists exactly. Testing several numerical values of $q$ is weaker than comparing every coefficient.

Expected checks: $G_{4,2}$ has coefficient list $(1,1,2,1,1)$; $G_{3,1}$ has list $(1,1,1)$; and evaluating any $G_{a,b}$ at $q=1$ gives $\binom{a}{b}$.

Deliverables. Submit the motivating count, all three ordinary proofs, boundary checks, and the enumeration results. If completing the extension, include the cross-block inversion argument and the exact weighted polynomial comparison.

Assessment: 25 points. Award five points each for correct hypotheses and finite examples; the bijection and its inverse; the coefficient proof; the recurrence proof with boundary cases; and validation that clearly separates finite checks from general proofs. The q-extension is enrichment and is not required for full credit on the foundation.

Next in the Series

In Chapter 7: Partitions and Structure Types, we'll explore Organize integers and sets into blocks, diagrams, and restricted families.