Discrete Math • Counting and Combinatorics

Binomial theorem and binomial coefficients

The elegant algebraic identity that unifies polynomial expansion, combinatorial counting, and probability theory.

A connected graph with binary values and set braces for discrete mathematics
Inside this lesson 10 sections 5 questions 9 figures

SECTION 1

Historical Context & Motivation

The problem of expanding powers of a binomial expression—computing (a + b)n for arbitrary n—has occupied mathematicians for well over a millennium. Long before a general formula was articulated, scholars in ancient India, Persia, and China independently discovered patterns in the coefficients that arise when a two-term sum is raised to successive powers. These efforts were not merely algebraic curiosities; they were deeply intertwined with problems of combinatorial enumeration, probability, and the foundations of calculus. Understanding the historical arc of the binomial theorem reveals how a single algebraic identity can serve as a nexus connecting diverse branches of mathematics.

c. 200 BCE • Pingala's Combinatorial Foundations

The Indian mathematician Pingala explored binary combinations in prosody (poetic meter), effectively enumerating what we now recognize as binomial coefficients in the context of selecting short and long syllables.

1070 • Omar Khayyam's Triangular Array

The Persian polymath Omar Khayyam described a method for extracting roots using a triangular arrangement of coefficients, anticipating what would later be called Pascal's triangle. He claimed a general proof for integer exponents, though the proof itself has been lost.

1303 • Zhu Shijie's Precious Mirror

The Chinese mathematician Zhu Shijie published the triangular array of binomial coefficients up to the eighth power in his treatise Precious Mirror of the Four Elements, demonstrating deep familiarity with the recurrence relation underlying the triangle.

1654 • Pascal's Traité du Triangle Arithmétique

Blaise Pascal published a systematic treatment of the arithmetic triangle, rigorously proving many of its properties and connecting it to probability theory through his correspondence with Fermat. The triangle now bears his name in the Western tradition.

1665 • Newton's Generalization

Isaac Newton extended the binomial theorem to non-integer and negative exponents, producing infinite series expansions. This generalization proved indispensable in the development of calculus and power series theory.

The central question that the binomial theorem addresses is deceptively simple: given two quantities a and b and a non-negative integer n, can we write down a closed-form expression for every term of (a + b)n without performing n successive multiplications? The answer is yes, and the coefficients that appear—the binomial coefficients—turn out to encode solutions to a vast array of counting problems far beyond polynomial algebra.

SECTION 2

Core Principles & Definitions

Before diving into the theorem itself, it is essential to establish the foundational objects and ideas upon which the entire framework rests. The binomial theorem is not simply a formula to memorize; it is an expression of deep structural relationships between algebra, combinatorics, and set theory. The following principles form the conceptual scaffolding for everything that follows.

1

Binomial Coefficient C(n, k)

The number of ways to choose an unordered subset of k elements from a set of n elements, denoted C(n,k) or (n choose k). It equals n! / (k!(n−k)!), providing the bridge between counting and algebra.
2

Pascal's Recurrence

Each interior entry in Pascal's triangle satisfies C(n, k) = C(n−1, k−1) + C(n−1, k). This identity reflects a fundamental counting principle: every element is either included in the chosen subset or it is not.
3

The Expansion Pattern

In (a + b)ⁿ, each term has the form C(n, k) · aⁿ⁻ᵏ · bᵏ where k ranges from 0 to n. The exponents of a decrease while those of b increase, and every term sums to degree n.
4

Symmetry Property

Binomial coefficients are symmetric: C(n, k) = C(n, n−k). Choosing k items to include is equivalent to choosing n−k items to exclude, a duality that simplifies many computations.
5

Row Sum Identity

The sum of all binomial coefficients in row n equals 2ⁿ. Setting a = b = 1 in the binomial theorem yields this identity, which counts all subsets of an n-element set.
✦

KEY TAKEAWAY

Think of the binomial coefficient C(n, k) as the answer to a staffing problem: you have n employees and need to assemble a project team of k people. The binomial coefficient counts the number of distinct teams you could form. The binomial theorem then tells you that when you expand (a + b)ⁿ, the coefficient of aⁿ⁻ᵏbᵏ is precisely the number of such teams—because each multiplication by (a + b) is like one employee 'choosing' to contribute a factor of a or b.

SECTION 3

Visual Explanation — Pascal's Triangle

The most iconic visual representation of binomial coefficients is Pascal's triangle, a triangular array in which each entry is the sum of the two entries directly above it. Row n of the triangle (counting from row 0) contains the coefficients C(n, 0), C(n, 1), …, C(n, n), which are precisely the coefficients appearing in the expansion of (a + b)n. The diagram below displays the first seven rows and highlights the additive recurrence that generates each entry.

Pascal's Triangle — Rows 0 through 6111121133114641151010511615201561Recurrence RelationC(n, k) = C(n−1, k−1) + C(n−1, k)Each entry is the sum of the two entries directly above it.Row n contains n + 1 entries and sums to 2ⁿ.n = 0n = 1n = 2n = 3n = 4n = 5n = 6
Each row n of Pascal's triangle lists the binomial coefficients C(n, 0) through C(n, n). The dashed lines illustrate the additive recurrence: for instance, the entry 2 in row 2 is the sum of the two 1s in row 1. Observe the bilateral symmetry of each row, reflecting C(n, k) = C(n, n − k).

Several striking patterns emerge from the triangle. The leftmost and rightmost entries are always 1, reflecting C(n, 0) = C(n, n) = 1. The second column reads 1, 2, 3, 4, 5, 6, … — the natural numbers — because C(n, 1) = n. The third column lists the triangular numbers 1, 3, 6, 10, 15, …, and the fourth column lists the tetrahedral numbers. Diagonal sums yield the Fibonacci sequence. These hidden patterns illustrate why Pascal's triangle is often called a 'gold mine' of combinatorial identities.

SECTION 4

Mathematical Framework

We now formalize the machinery. The binomial theorem provides a closed-form expansion for (a + b)n as a finite sum whose terms are indexed by the integer k running from 0 to n. Each term involves a binomial coefficient, a power of a, and a power of b, and the theorem can be established rigorously by mathematical induction on n.

BINOMIAL COEFFICIENT

C(n,k)=n!/(k!⋅(n−k)!)C(n, k) = n! / (k! · (n − k)!)

where n is the total number of elements, k is the size of the chosen subset, and n! denotes n factorial (the product 1 × 2 × ⋯ × n). By convention, 0! = 1.

BINOMIAL THEOREM

(a+b)n=Σ(k=0ton)C(n,k)⋅an−k⋅bk(a + b)ⁿ = Σ (k = 0 to n) C(n, k) · aⁿ⁻ᵏ · bᵏ

This expands the n-th power of the binomial (a + b) into n + 1 terms. The coefficient of the term aⁿ⁻ᵏbᵏ is precisely C(n, k), the number of ways to select k factors of b (and correspondingly n − k factors of a) from the n copies of (a + b) being multiplied.

PASCAL'S RECURRENCE

C(n,k)=C(n−1,k−1)+C(n−1,k)for1≤k≤n−1C(n, k) = C(n − 1, k − 1) + C(n − 1, k) for 1 ≤ k ≤ n − 1

This recurrence partitions subsets of {1, 2, …, n} of size k into two disjoint classes: those containing element n (counted by C(n−1, k−1)) and those not containing it (counted by C(n−1, k)).

VANDERMONDE'S IDENTITY

C(m+n,r)=Σ(k=0tor)C(m,k)⋅C(n,r−k)C(m + n, r) = Σ (k = 0 to r) C(m, k) · C(n, r − k)

This convolution identity generalizes the idea that choosing r items from a union of two disjoint sets of sizes m and n can be decomposed by choosing k from the first set and r − k from the second, then summing over all valid k.

A standard inductive proof of the binomial theorem proceeds as follows. The base case n = 0 is trivial: (a + b)⁰ = 1 = C(0, 0)a⁰b⁰. For the inductive step, assume the theorem holds for exponent n − 1. Then (a + b)ⁿ = (a + b)(a + b)n−1. Distributing and applying Pascal's recurrence to combine like terms yields the desired sum for exponent n. The algebraic details, while straightforward, hinge critically on Pascal's identity to merge the two resulting sums into a single summation with coefficients C(n, k).

SECTION 5

Key Identities & Their Combinatorial Meaning

Binomial coefficients satisfy a rich web of identities, each of which admits both an algebraic proof (manipulating factorials or generating functions) and a combinatorial proof (establishing a bijection or a double-counting argument). The table below catalogs the most important identities, their formal statements, and their combinatorial interpretations. Developing fluency with these identities is essential for advanced work in combinatorics, probability, and algorithm analysis.

IdentityFormulaCombinatorial Interpretation
SymmetryC(n,k) = C(n, n−k)Choosing k items to include is the same as choosing n−k items to exclude.
Row SumΣ C(n,k) = 2ⁿTotal number of subsets of an n-element set, since each element is independently in or out.
Alternating SumΣ (−1)ᵏ C(n,k) = 0The number of even-size subsets equals the number of odd-size subsets (set a=1, b=−1).
Hockey StickΣ (i=k to n) C(i,k) = C(n+1, k+1)Summing entries along a diagonal of Pascal's triangle yields the entry one row below and one column to the right.
Absorptionk · C(n,k) = n · C(n−1, k−1)Choose a committee of k from n people, then designate a chair: equivalent to choosing the chair first, then the remaining k−1 members.

Fundamental binomial coefficient identities

Hockey Stick Identity in Pascal's Triangle1111211331146411510105116152015616Hockey Stick IdentityC(1,1) + C(2,1) + C(3,1) + C(4,1) + C(5,1)= 1 + 2 + 3 + 4 + 5 = 15= C(6, 2) = 15 ✓← Diagonal sum← Result
The Hockey Stick identity is visualized by circling entries along a diagonal (in amber) and observing that their sum equals the entry at the bend of the 'hockey stick' (in green). Here the diagonal k = 1 entries from rows 1–5 sum to C(6, 2) = 15.

Each of these identities can be proved algebraically using factorial manipulation, but the combinatorial proofs are often more illuminating because they reveal why the identity is true rather than merely that it is true. For example, the row sum identity follows immediately from the observation that each of the n elements in a set is independently either in a subset or not, giving 2 choices per element and hence 2n subsets in total. Since C(n, k) counts subsets of size k, summing over all k must yield 2n.

SECTION 6

Worked Example

Let us fully expand (2x + 3)5 using the binomial theorem and then extract the coefficient of x³.

Expanding (2x + 3)⁵ via the Binomial Theorem

  1. 1

    Step 1 — Identify the Components

    Here a = 2x, b = 3, and n = 5. The binomial theorem gives (2x + 3)⁵ = Σ (k = 0 to 5) C(5, k) · (2x)5−k · 3k.
  2. 2

    Step 2 — Compute Binomial Coefficients for n = 5

    From row 5 of Pascal's triangle: C(5, 0) = 1, C(5, 1) = 5, C(5, 2) = 10, C(5, 3) = 10, C(5, 4) = 5, C(5, 5) = 1.
  3. 3

    Step 3 — Write Out Each Term

    k = 0: C(5,0)·(2x)⁵·3⁰ = 1·32x⁵·1 = 32x⁵. k = 1: C(5,1)·(2x)⁴·3¹ = 5·16x⁴·3 = 240x⁴. k = 2: C(5,2)·(2x)³·3² = 10·8x³·9 = 720x³. k = 3: C(5,3)·(2x)²·3³ = 10·4x²·27 = 1080x². k = 4: C(5,4)·(2x)¹·3⁴ = 5·2x·81 = 810x. k = 5: C(5,5)·(2x)⁰·3⁵ = 1·1·243 = 243.
  4. 4

    Step 4 — Assemble the Full Expansion

    (2x + 3)⁵ = 32x⁵ + 240x⁴ + 720x³ + 1080x² + 810x + 243.
    32x⁵ + 240x⁴ + 720x³ + 1080x² + 810x + 243
  5. 5

    Step 5 — Extract the Coefficient of x³

    The term containing x³ corresponds to k = 2 (since the power of x is 5 − k = 3 when k = 2). The coefficient is C(5, 2) × 2³ × 3² = 10 × 8 × 9 = 720.
    Coefficient of x³ = 720
💡

Verification Tip

As a quick sanity check, substitute x = 0: the expansion should give 3⁵ = 243, which matches the constant term. Substituting x = 1 gives (2 + 3)⁵ = 5⁵ = 3125, and indeed 32 + 240 + 720 + 1080 + 810 + 243 = 3125. Always verify at least one substitution to catch arithmetic errors.

SECTION 7

Strengths, Limitations & Computational Techniques

The binomial theorem is a remarkably powerful tool, but like any mathematical technique it has a specific domain of applicability. Understanding both its strengths and its boundaries is crucial for knowing when to deploy it and when to reach for alternative methods such as generating functions, the multinomial theorem, or direct combinatorial arguments.

StrengthsLimitations
Provides a closed-form expansion for any (a + b)ⁿ with non-negative integer n, avoiding iterative multiplication.Applies only to binomials (two-term sums). For trinomials or higher, the multinomial theorem is required.
Individual terms (specific coefficients) can be extracted without computing the entire expansion, via C(n,k)·aⁿ⁻ᵏ·bᵏ.Factorial computation becomes unwieldy for very large n; algorithmic approaches use multiplicative formulas or modular arithmetic.
Generates a vast family of combinatorial identities (row sum, alternating sum, Vandermonde) by specializing a and b.Newton's generalization to non-integer exponents yields infinite series requiring convergence analysis, not finite sums.
Connects directly to probability (Bernoulli trials), number theory (divisibility), and algorithm analysis (counting paths in lattices).Does not directly address multi-set or permutation counting problems without additional translation into subset-selection form.

Strengths and limitations of the binomial theorem

✦

KEY TAKEAWAY

The binomial theorem occupies a central position in the combinatorial toolkit much as matrix multiplication does in linear algebra: it is not the most general operation, but it arises so frequently and connects so many ideas that mastering it yields disproportionate returns. When you encounter a sum of binomial coefficients in probability or algorithm analysis, try to recognize it as a specialization of (a + b)ⁿ with cleverly chosen a and b—this substitution trick is one of the most productive problem-solving strategies in discrete mathematics.

SECTION 8

Connections to Advanced Theory

The binomial theorem is not an isolated result—it serves as a gateway to several advanced topics in mathematics and computer science. Understanding these connections enriches one's perspective and prepares for more sophisticated coursework in analysis, algebra, and probability.

ConceptBinomial Theorem ConnectionAdvanced Extension
Newton's GeneralizationFor non-negative integer n, the expansion is finite.For real or complex α, (1 + x)^α = Σ C(α, k)xᵏ as an infinite power series, convergent for |x| < 1. Here C(α, k) = α(α−1)⋯(α−k+1)/k!.
Multinomial TheoremHandles two-term sums (a + b)ⁿ.Extends to (x₁ + x₂ + ⋯ + xₘ)ⁿ with multinomial coefficients n!/(k₁!k₂!⋯kₘ!) replacing binomial coefficients.
Generating Functions(1 + x)ⁿ = Σ C(n,k)xᵏ is the ordinary generating function for the sequence of binomial coefficients.Generating functions provide a systematic framework for solving recurrences, counting lattice paths, and deriving asymptotic estimates via analytic combinatorics.
Bernoulli TrialsC(n,k)pᵏ(1−p)ⁿ⁻ᵏ is the probability of k successes in n independent trials.The binomial distribution is the foundation of statistical inference for proportions and leads to the Poisson and normal approximations via limit theorems.
Lattice Path CountingC(n,k) counts monotone lattice paths from (0,0) to (n−k, k).Constrained lattice paths lead to Catalan numbers, ballot problems, and the reflection principle—central objects in enumerative combinatorics.

From binomial coefficients to advanced theory

As you advance in your mathematical studies, you will find binomial coefficients appearing in contexts far removed from polynomial expansion: the ranks of differential forms, the dimensions of vector spaces of polynomials, coefficients in Taylor series, and even the analysis of algorithms such as mergesort and binary search. The binomial theorem, then, is best understood not as a single formula but as the starting point for a vast web of interconnected ideas.

SECTION 9

Practice Problems

Question 1: CONCEPTUAL

Explain, using a combinatorial argument (not algebra), why C(n, k) = C(n, n − k). Your explanation should reference a concrete counting scenario.
Show answer
Consider a set S of n distinct objects. Choosing a subset of k objects to include is logically equivalent to choosing the complementary subset of n − k objects to exclude. Since every k-element subset uniquely determines an (n − k)-element complement, there is a bijection between k-element subsets and (n − k)-element subsets. Therefore the number of each type must be equal: C(n, k) = C(n, n − k). For instance, from a 10-person team, choosing 3 starters is the same as choosing 7 bench players.

Question 2: BASIC CALCULATION

Use the binomial theorem to expand (x − 2)⁴ completely.
Show answer
Set a = x and b = −2 with n = 4. The expansion is Σ (k=0 to 4) C(4,k)·x⁴⁻ᵏ·(−2)ᵏ. Computing each term: k=0: 1·x⁴·1 = x⁴; k=1: 4·x³·(−2) = −8x³; k=2: 6·x²·4 = 24x²; k=3: 4·x·(−8) = −32x; k=4: 1·1·16 = 16. Therefore (x − 2)⁴ = x⁴ − 8x³ + 24x² − 32x + 16. Note how the signs alternate because b is negative; powers of (−2)ᵏ contribute (−1)ᵏ·2ᵏ.

Question 3: INTERMEDIATE

Find the coefficient of x⁶ in the expansion of (3x² + 1/x)⁹.
Show answer
The general term is C(9, k)·(3x²)⁹⁻ᵏ·(1/x)ᵏ = C(9, k)·3⁹⁻ᵏ·x2(9−k)x^{2(9−k)}·x−kx^{−k} = C(9, k)·3⁹⁻ᵏ·x18−3kx^{18−3k}. We need 18 − 3k = 6, so k = 4. The coefficient is C(9, 4)·3⁵ = 126 × 243 = 30618. This problem illustrates how to handle binomials whose terms have non-trivial powers of x: form the general term, solve for the exponent condition, then evaluate. The answer is 30618.

Question 4: APPLIED

A fair coin is tossed 8 times. Using the binomial distribution, find the probability of obtaining exactly 5 heads. Express your answer as a fraction and as a decimal rounded to four places.
Show answer
Each toss is a Bernoulli trial with p = 1/2. The probability of exactly k = 5 heads in n = 8 tosses is P(X = 5) = C(8, 5)·(1/2)⁵·(1/2)³ = C(8, 5)·(1/2)⁸. We compute C(8, 5) = C(8, 3) = 8!/(3!·5!) = (8 × 7 × 6)/(3 × 2 × 1) = 56. Thus P(X = 5) = 56/256 = 7/32 ≈ 0.2188. This directly applies the binomial theorem with a = p and b = 1 − p, confirming that the sum of all P(X = k) from k = 0 to 8 equals (p + (1−p))⁸ = 1.

Question 5: CRITICAL THINKING

Prove that Σ (k=0 to n) C(n, k)² = C(2n, n) using a combinatorial (double-counting) argument. Hint: think about choosing a committee from two groups.
Show answer
Consider a pool of 2n people split into two groups of n: Group A and Group B. The right-hand side C(2n, n) counts the number of ways to choose a committee of n people from the full pool of 2n. We can partition these committees by how many members come from Group A. If exactly k members come from Group A, then n − k come from Group B. The number of such committees is C(n, k)·C(n, n−k) = C(n, k)·C(n, k) = C(n, k)². Summing over all possible values of k from 0 to n accounts for every possible committee, so Σ C(n, k)² = C(2n, n). This identity, called the Vandermonde specialization (with m = n and r = n), has deep connections to generating functions: it is equivalent to comparing the coefficient of xⁿ on both sides of (1+x)ⁿ·(1+x)ⁿ = (1+x)²ⁿ.

SUMMARY

Lesson Summary

Summary

The binomial theorem states that (a + b)ⁿ = Σ C(n, k)·aⁿ⁻ᵏ·bᵏ for non-negative integer n, where the binomial coefficient C(n, k) = n!/(k!(n−k)!) counts the number of k-element subsets of an n-element set. These coefficients are arranged in Pascal's triangle, where each entry is the sum of the two entries above it via Pascal's recurrence C(n, k) = C(n−1, k−1) + C(n−1, k). Key properties include symmetry C(n, k) = C(n, n−k), the row sum Σ C(n, k) = 2ⁿ, and the hockey stick identity.

Beyond polynomial expansion, the binomial theorem connects to probability through the binomial distribution, to generating functions as the ordinary generating function (1 + x)ⁿ, and to lattice path counting where C(n, k) enumerates monotone paths. Newton's generalization extends the theorem to real exponents via infinite series. Mastering both the algebraic formula and the combinatorial interpretation of C(n, k) equips you with a versatile tool that appears throughout discrete mathematics, analysis, and computer science.

Varsity Tutors • Discrete Math • Binomial theorem and binomial coefficients