Back to Combinatorics

Chapter 1: Introduction to Combinatorial Thinking

October 9, 2026 Wasil Zafar 25 min read

From chessboards and routes to proofs that count

Table of Contents

  1. Can a mutilated chessboard be tiled?
  2. 1.1 Introductory examples: foundational combinatorial problems
  3. 1.2 Addition, multiplication, subtraction, and division rules
  4. 1.3 Bijections and complementary counting
  5. 1.4 Double counting and counting in two ways
  6. 1.5 Invariants and monovariants
  7. 1.6 Parity, coloring, and impossibility arguments
  8. 1.7 Existence proofs versus constructive proofs
  9. 1.8 Introduction to extremal reasoning
  10. Design a counting proof and an impossibility certificate

Welcome to Combinatorics: The Art of Reasoning Without Counting Everything

Welcome to the world of Combinatorics—the branch of mathematics dedicated to selecting, arranging, analyzing, and proving properties of discrete structures. At its core, combinatorial thinking addresses four fundamental questions: How many objects exist? Does a solution exist? How do we construct one? And what invariant structure must every valid solution obey?

To launch our journey into combinatorial reasoning, let us begin with a classic puzzle that demonstrates the true magic of this field: ruling out trillions of potential arrangements in a single thought without testing a single one manually.

The Motivating Problem: The Mutilated Chessboard

Imagine covering a standard $8 \times 8$ chessboard with $1 \times 2$ dominoes. Each domino covers exactly two edge-adjacent squares (horizontally or vertically). Dominoes must lie flat, cannot overlap, and cannot hang over the edge of the board.

Standard 8×8 Chessboard 64 Squares (32 Light + 32 Dark) Domino Coverage Rules 1×2 Domino Tile Covers exactly 2 edge-adjacent squares (horizontal or vertical). The Invariant Every placed domino covers 1 Light square + 1 Dark square. No domino can cover two of same color. Full Board Coverage • Standard board: 32 Light + 32 Dark = 64 • Exactly 32 dominoes needed for complete tiling
Mutilated Board (62 Squares) Can 31 dominoes cover this board? Why Tiling is Impossible 1. Count the Remaining Colors Light Squares: 30 (2 removed) Dark Squares: 32 (0 removed) Imbalance: 30 Light ≠ 32 Dark 2. The Logical Contradiction • To cover 62 remaining squares, you need exactly 31 dominoes. • 31 dominoes require 31 Light + 31 Dark. Conclusion: It is mathematically impossible to tile the board.

On an ordinary board with 64 squares, tiling is trivial: simply lay 32 dominoes horizontally across consecutive pairs of squares in each row. But what happens if we alter the geometry?

Suppose we trim away two opposite corners—the upper-left square and the lower-right square—leaving a "mutilated" board with 62 squares. Can we still tile the remaining board using 31 dominoes?

The Naive Calculation (Area Test)

A quick area check shows that $62 \div 2 = 31$ dominoes. The total area is even, so mathematically $31$ dominoes match the total square count. While this confirms a necessary condition, area alone does not guarantee that the geometric pieces will actually fit together!

The Combinatorial Insight (Coloring Invariant)

Observe the underlying structure: every domino must cover exactly 1 black square and 1 white square. A full board has 32 black and 32 white squares. Because opposite corners share the same color (both black), removing them leaves 30 black squares and 32 white squares.

Here lies our elegant verdict: any valid placement of 31 dominoes would inevitably cover 31 black and 31 white squares. Because our mutilated board contains only 30 black squares, a perfect domino tiling is mathematically impossible!

The Essence of Combinatorial Proofs

Instead of laboriously attempting every one of the millions of possible domino arrangements, we identified an invariant property—the 1-to-1 color balance—that every valid tiling must satisfy. Demonstrating that the mutilated board violates this invariant instantly certifies impossibility across all possible configurations.

Motivating Problem

Can a mutilated chessboard be tiled?

Try the same question on a 4-by-4 board. Number rows and columns from 1 to 4, and color a square black when its row number plus column number is even.

  1. Remove squares (1,1) and (4,4). Both are black.
  2. Count the remaining squares: 6 black and 8 white.
  3. Assume a tiling exists. Its seven dominoes would cover seven black and seven white squares.
  4. Compare these requirements with the actual counts. They disagree, so the assumed tiling cannot exist.

Question to revisit: If equal color counts are necessary, are they also sufficient? Keep the two claims separate: a test that rules out some arrangements need not guarantee all the others.

Mutilated Chessboard Coloring Imbalance A 4x4 chessboard with opposite corner squares (1,1) and (4,4) removed, leaving 6 black and 8 white squares. Since every domino covers 1 black and 1 white square, tiling is impossible. Color Imbalance on a Mutilated Chessboard Removed: (1,1) & (4,4) [Both Black] Domino Covering Rule: 1 Domino = 1 Black + 1 White square Square Count Breakdown: • Initial Board (4×4): 8 Black, 8 White (16 total) • Removed 2 Black corners: 6 Black, 8 White (14 total) • 7 Dominoes require: 7 Black + 7 White squares ❌ IMPOSSIBLE: 6 Black ≠ 7 Black required!
Figure 1.1: Visual proof by parity/coloring showing why removing two corners of the same color makes domino tiling impossible.

Introductory Examples: Foundational Combinatorial Problems

Combinatorics studies finite or discrete objects and the ways they can be selected, arranged, connected, or constrained. Four recurring core questions guide our thinking:

  1. How many objects exist? (Counting & Enumeration)
  2. Does an object exist? (Existence & Impossibility Proofs)
  3. How can we construct one? (Algorithms & Explicit Constructions)
  4. What structure must every object have? (Invariants & Structural Theorems)

To build our combinatorial intuition, let us explore seven classic foundational examples that showcase these core questions in action.

Example 1: Perfect Covers of Chessboards

A perfect cover (or domino tiling) of a board with $1 \times 2$ dominoes is an arrangement where every square is covered by exactly one domino without any overlaps or spills over the boundary.

For an $m \times n$ rectangular board to have a perfect cover, an obvious necessary condition is that the total area $m \cdot n$ must be an even number. If $m \cdot n$ is odd, no tiling can exist because each domino covers exactly 2 squares.

Perfect Cover Necessary Condition: Area Must Be Even EVEN AREA: 4×4 Board Total Area = 16 Squares (Even) ✓ Perfect Cover Exists (8 Dominoes) ODD AREA: 3×3 Board Total Area = 9 Squares (Odd) ? ✕ Impossible (Always 1 Square Left) 4 dominoes = 8 squares ≠ 9 total squares
General Rule for Rectangular Boards (m × n) Condition: Area (m × n) must be EVEN ⇒ m is Even OR n is Even Dimensions (m × n) Total Area Area Parity Perfect Cover? Even × Even (e.g., 4 × 4) 16 Even ✓ Possible Even × Odd (e.g., 2 × 5) 10 Even ✓ Possible Odd × Odd (e.g., 3 × 3) 9 Odd ✕ Impossible
Figure 1.2: Comparison of domino tiling feasibility based on board area parity.

Example 2: Magic Squares

A magic square of order $n$ is an $n \times n$ grid containing the integers $1, 2, \dots, n^2$ such that the numbers in each row, each column, and both main diagonals add up to the exact same sum, called the magic constant $M$.

The magic constant for an $n \times n$ square is given by the formula:

$$M = \frac{n(n^2 + 1)}{2}$$

For $n = 3$, the total sum of numbers $1$ through $9$ is $45$. Dividing equally across $3$ rows gives $M = \frac{3(3^2+1)}{2} = 15$.

Understanding Magic Squares (n = 3) An n×n grid of integers 1 to n² where all rows, columns, and diagonals sum to the magic constant M. 8 1 6 3 5 7 4 9 2 = 15 = 15 = 15 = 15 = 15 = 15 M = 15 M = 15 M = 15 M = 15 The Magic Constant Formula M = n(n² + 1) / 2 Solving for an order n = 3 square: • Range of integers: 1 through 9 (since n² = 9) • Total sum of 1 to 9: 45 [(9 × 10) / 2] • Magic constant M: 15 [Divide total sum 45 by 3 rows] M = 3(3² + 1) / 2 = 3(10) / 2 = 15
Figure 1.3: The unique 3×3 magic square (up to rotation and reflection) showing row, column, and diagonal sums.

Example 3: The Four-Color Problem

Proposed by Francis Guthrie in 1852, the Four-Color Problem asks: Can any planar map (a division of the plane into contiguous regions) be colored using at most four colors such that no two adjacent regions sharing a border segment have the same color?

While intuitive to state, it proved extraordinarily resistant to proof. In 1976, Kenneth Appel and Wolfgang Haken proved the Four-Color Theorem using a pioneering combination of mathematical reduction and computer-assisted verification of 1,936 reducible configuration cases.

Planar Map Colored with 4 Colors A planar map divided into 6 adjacent regions colored using exactly 4 theme colors (Crimson, Teal, Blue, Lavender) without adjacent regions sharing colors. The Four-Color Theorem in Action Color 1 Color 2 Color 3 Color 4 Color 2 Color Palette: 1. Crimson 2. Teal 3. Navy Blue 4. Lavender
Figure 1.4: Any planar map can be colored using at most 4 colors such that no bordering regions share a color.

Example 4: The Problem of the 36 Officers

In 1779, Leonhard Euler posed his famous 36 Officers Problem: Suppose 36 officers belong to 6 different regiments, with 6 officers of different ranks in each regiment. Can they be arranged in a $6 \times 6$ square grid such that every row and every column contains exactly one officer of each rank and one officer of each regiment?

Mathematically, this seeks two Orthogonal Latin Squares (or a Graeco-Latin Square) of order $n = 6$. While solutions exist for $n = 3, 4, 5$, Euler conjectured that no solution exists for any $n \equiv 2 \pmod 4$ (i.e., $n = 2, 6, 10, \dots$). In 1901, French mathematician Gaston Tarry proved by exhaustive case analysis that Euler was right for $n = 6$: the 36 Officers Problem is mathematically impossible!

Orthogonal Latin Squares Mechanism (Solvable Case: n = 4) Superimposing two independent Latin Squares (Regiments & Ranks) yields 16 unique officer pairs. 1. Regiments (Colors) Latin Square A + 2. Ranks (Symbols) Latin Square B ★ ▲ ● ✕ ● ✕ ★ ▲ ✕ ● ▲ ★ ▲ ★ ✕ ● = 3. Graeco-Latin Square Complete Orthogonal Solution ★ ▲ ● ✕ ● ✕ ★ ▲ ✕ ● ▲ ★ ▲ ★ ✕ ● Key Takeaway for n = 4: Every row and column has no repeated colors or symbols, and all 16 color-symbol pairs are distinct.
Euler's 36 Officers Problem (n = 6): Impossibility Proof Arranging 36 officers (6 Regiments × 6 Ranks) in a 6×6 grid without duplicate ranks or regiments in any line is impossible. The 6×6 Grid Setup 6 Regiments × 6 Ranks = 36 Officers R1★ R2▲ R3● R4✕ R5♦ R6♠ R2● R3★ R1▲ R5♠ R6✕ R4♦ R3✕ R1♦ R2♠ R6★ R4▲ R5● R4♠ R5✕ R6♦ R1● R2★ R3▲ R5▲ R6● R4★ R2♦ R3✕ R1♠ ✕ ✕ ✕ ✕ ✕ ✕ Inevitably leads to duplicate officers or empty cells! Historical & Mathematical Timeline 1779 — Leonhard Euler • Posed the 36 Officers Problem. • Conjectured no solution exists for n ≡ 2 (mod 4) (i.e., n = 2, 6, 10, 14, ...) 1901 — Gaston Tarry • Proved impossibility for n = 6 by exhaustive search. • Analyzed all 9,408 possible 6×6 Latin Squares, confirming zero orthogonal pairs exist. 1960 — Disproving Euler's Broader Conjecture • Euler was RIGHT for n = 6 (no solution exists). • Euler was WRONG for all other n ≡ 2 (mod 4): Solutions DO exist for n = 10, 14, 18, ...! (Proved by Parker, Bose, & Shrikhande)
Figure 1.5: Valid Graeco-Latin square for n=3 vs. Euler's impossible 36 Officers Problem for n=6.

Example 5: Shortest-Route Problem

On a rectangular grid, consider traveling from the origin $(0,0)$ to a target point $(m,n)$ along grid edges, taking only steps to the East ($E$) or North ($N$).

Every shortest route consists of exactly $m$ East steps and $n$ North steps, for a total route length of $m+n$ steps. We can bijectively encode each route as a word of length $m+n$ containing exactly $m$ '$E$'s and $n$ '$N$'s. Choosing $n$ North step positions out of $m+n$ total positions gives the total route count:

$$\text{Total Routes} = \binom{m+n}{n} = \frac{(m+n)!}{m! \, n!}$$
Shortest Grid Routes as Words A 3x2 grid showing a shortest path from (0,0) to (3,2) made of 3 East moves and 2 North moves, corresponding to the 5-letter word EENEN. Shortest Grid Routes from (0,0) to (3,2) E₁ E₂ N₁ E₃ N₂ (0,0) (3,2) Route Word Encoding: E Pos 1 E Pos 2 N N-Pos 1 E Pos 4 N N-Pos 2 • Total moves required = 3 East + 2 North = 5 steps • Choose 2 positions for 'N' out of 5: Total Routes = (5 × 4) / 2 = 10
Figure 1.6: Bijective equivalence between spatial grid paths and words containing 3 'E's and 2 'N's.

Example 6: Mutually Overlapping Circles

Suppose $n$ circles are drawn in a plane in general position (meaning every pair of circles intersects at exactly two points, and no three circles share a common point of intersection). Into how many distinct regions do these $n$ circles divide the plane?

Adding the $n$-th circle intersects the previous $n-1$ circles at $2(n-1)$ points. These points split the new circle into $2(n-1)$ arcs, each of which divides an existing region into two. Thus, $R(n) = R(n-1) + 2(n-1)$, leading to the recurrence solution:

$$R(n) = n^2 - n + 2$$

For $n = 3$ circles, $R(3) = 3^2 - 3 + 2 = 8$ regions (including the single unbounded exterior region).

Regions Formed by Mutually Overlapping Circles Three overlapping circles in general position dividing the plane into 8 distinct regions. 3 Mutually Overlapping Circles (8 Regions) R₁ R₂ R₃ R₄ R₅ R₆ R₇ R₈ (Exterior) Region Growth R(n): • n = 1 circle: 2 regions • n = 2 circles: 4 regions • n = 3 circles: 8 regions • n = 4 circles: 14 regions R(n) = n² − n + 2
Figure 1.7: 3 mutually overlapping circles in general position splitting the plane into 8 regions.

Example 7: The Game of Nim

In the classic mathematical game of Nim, players take turns removing any number of counters from a single heap. Under normal play rules, the player to take the final counter wins.

In 1901, Charles L. Bouton completely solved Nim using the binary bitwise XOR operation, now called the Nim-sum ($\oplus$). A position with heap sizes $(x_1, x_2, \dots, x_k)$ is a losing position (P-position) for the current player if and only if:

$$x_1 \oplus x_2 \oplus \dots \oplus x_k = 0$$

If the Nim-sum is non-zero, the current player can always make a move that leaves a zero Nim-sum for the opponent, securing a guaranteed winning position (N-position)!

Game of Nim Strategy and Binary Nim-Sum 3 heaps of sizes 3, 4, 5 showing their binary expansion and Nim-sum calculation = 2 (Winning Position). The Game of Nim: Heap Analysis & Nim-Sum Heaps: (3, 4, 5) Heap 1 (3) Heap 2 (4) Heap 3 (5) Binary XOR Calculation: Heap 1 (3) = 0 1 1₂ Heap 2 (4) = 1 0 0₂ Heap 3 (5) = 1 0 1₂ Nim-Sum = 0 1 0₂ (= 2) Nim-Sum ≠ 0 ➔ WINNING Position!
Figure 1.8: Evaluating a Nim position (3, 4, 5) using bitwise XOR binary addition.

1.2 Fundamental Counting Rules: Addition, Multiplication, Subtraction, & Division

At the heart of combinatorics lies set cardinality. For any finite set $A$, the notation $|A|$ represents the exact number of elements in $A$. To count complex structures accurately without missing items or double-counting, we rely on four fundamental counting operations.


Rule 1

The Addition Rule (Rule of Sum)

When choosing an object from one of several distinct categories, the total number of choices depends on whether those categories share any common elements.

Disjoint Categories (No Overlap)

If sets $A$ and $B$ are disjoint ($A \cap B = \emptyset$), simply add their sizes:

$$|A \cup B| = |A| + |B|$$

Example: Choosing 1 drink from 3 teas or 2 coffees (where no drink is both) gives $3 + 2 = 5$ choices.

Overlapping Categories (Inclusion-Exclusion)

If categories overlap, simple addition double-counts shared elements ($A \cap B$). Subtract the intersection to correct it:

$$|A \cup B| = |A| + |B| - |A \cap B|$$

Example: If 8 study chess, 7 study coding, and 3 study both, then $8 + 7 - 3 = 12$ study at least one.

Inclusion–Exclusion Principle (Addition Rule with Overlap) Chess (A) 5 Chess Only Both (A ∩ B) 3 Coding (B) 4 Coding Only Formula Calculation: |A| (Chess Students) = 8 |B| (Coding Students) = 7 |A ∩ B| (Both Categories) = 3 |A ∪ B| = |A| + |B| − |A ∩ B| Total = 8 + 7 − 3 = 12 Students
Figure 1.9: Visualizing the Inclusion-Exclusion principle to prevent double counting of overlapping elements.

Rule 2

The Multiplication Rule (Rule of Product)

When a procedure breaks down into a sequence of independent stages, multiply the number of choices available at each step.

Multi-Stage Sequential Choice Formula

If step 1 has $a$ possible outcomes and step 2 has $b$ possible outcomes (regardless of which choice was made in step 1), the total number of combined outcomes is:

$$\text{Total Outcomes} = a \times b$$

Example: Choosing 1 shirt from 3 available options and 1 pair of trousers from 2 available options yields $3 \times 2 = 6$ distinct outfit combinations.

Note on Dependent Choices: The available choices in the second step may depend on the first choice, provided the number of choices available at step 2 remains constantly equal to $b$. If the count of second-stage options varies based on step 1, split the problem into disjoint branches and apply the Addition Rule across the branches.

Rule 3

The Subtraction Rule (Complementary Counting)

When directly counting valid outcomes is tedious or complex, count the entire universe of possibilities first and subtract the invalid ones.

Complementary Counting Formula

If $B$ represents the subset of invalid outcomes inside a universal set $A$ ($B \subseteq A$), the number of valid outcomes $|A \setminus B|$ is:

$$|A \setminus B| = |A| - |B|$$

Example: How many 3-bit binary strings contain at least one 1?

  • Total possible 3-bit strings ($|A|$): $2^3 = 8$ total strings.
  • Forbidden strings with no 1s ($|B|$): Exactly 1 string (000).
  • Valid strings ($|A \setminus B|$): $8 - 1 = 7$ qualifying strings.

Rule 4

The Division Rule (Overcounting Correction)

When an initial counting strategy treats distinct representations of the same underlying object as separate outcomes, divide by the uniform repetition factor $k$.

Example: Choosing an unordered 2-person committee from a group of 5 people.

  1. Count ordered pairs ($n$): The first member can be chosen in 5 ways; the second in 4 ways ($5 \times 4 = 20$ ordered pairs).
  2. Identify overcounting multiplicity ($k$): Each committee $\{P_1, P_2\}$ is counted twice (as $(P_1, P_2)$ and $(P_2, P_1)$), so $k = 2$.
  3. Apply Division Rule: $\frac{20}{2} = 10$ distinct committees.
Crucial Requirement: Division is valid only when every single target object has the exact same multiplicity $k$. Never divide by a symmetry count unless constant multiplicity across all objects is strictly verified.

Quick Reference: Selecting the Right Counting Rule

Counting Rule Key Condition Mathematical Formula When to Use
Addition Disjoint choices or overlapping sets $|A \cup B| = |A| + |B| - |A \cap B|$ Choosing 1 item from distinct/OR categories.
Multiplication Sequential independent steps $\text{Total} = a \times b$ Building multi-stage AND combinations.
Subtraction Subset $B \subseteq A$ of invalid cases $|A \setminus B| = |A| - |B|$ Direct count is harder than "Total − Forbidden".
Division Uniform $k$-to-1 symmetry mapping $\text{Objects} = \frac{\text{Encodings}}{k}$ Unordered sets or rotated/symmetric structures.
Proof Workshop

Addition, multiplication, subtraction, and division rules: a worked example

Five students must form a two-person committee. How many committees contain at least one of two designated mentors, A and B?

Route 1: total minus forbidden. There are $5 \times 4 / 2 = 10$ committees in total. A forbidden committee chooses both members from the other three students, giving $3 \times 2 / 2 = 3$. The answer is $10 - 3 = 7$.

Route 2: disjoint cases. A committee contains either exactly one mentor or both mentors. Exactly one mentor gives $2 \times 3 = 6$ choices: choose the mentor and then the nonmentor. Both mentors give the single committee {A,B}. Addition gives $6 + 1 = 7$.

Assumption check. Members are distinct, committee order does not matter, the two cases cannot overlap, and every qualifying committee belongs to one case.

Practice. Repeat with six students, still including exactly two designated mentors.

Hint and answer. Exactly one mentor gives $2 \times 4 = 8$ committees; both gives one. The answer is nine. Independently, $6 \times 5 / 2 - 4 \times 3 / 2 = 15 - 6 = 9$.

1.3 Bijections & Complementary Counting

A bijection is a reversible pairing between two sets: every object in the first set corresponds to exactly one object in the second, and every object in the second has exactly one partner. A bijection proves that the two finite sets have equal sizes.

Consider subsets of $\{1,2,3\}$ and binary strings of length three. Given a subset $S$, write a 1 in position $i$ precisely when $i$ belongs to $S$. For example, $\{1,3\}$ becomes $101$.

The inverse operation reads a string and collects the positions containing 1. Thus $101$ becomes $\{1,3\}$. Applying either operation and then its inverse returns the starting object. This verifies reversibility; merely displaying a few matching examples would not establish it in general.

Every position has two choices, so there are $2 \times 2 \times 2 = 8$ strings and therefore eight subsets. For a set with $n$ elements, the same construction gives $2^n$ subsets, including the empty subset.

Complementary counting counts a desired collection by removing its opposite inside a clearly defined universe. Of the eight subsets here, only the empty subset has no elements, so seven are nonempty. Through the bijection, this is the same statement as: seven three-bit strings contain at least one 1.

A bijection between three-bit strings and subsets of {1,2,3} Eight arrows pair 000 with the empty set, 001 with {3}, 010 with {2}, 011 with {2,3}, 100 with {1}, 101 with {1,3}, 110 with {1,2}, and 111 with {1,2,3}. Excluding the empty set leaves seven outcomes. Choose positions; record their membership Binary strings Subsets of {1,2,3} Positions: 1, 2, 3 (left to right) Include exactly the positions with a 1 000∅ 001{3} 010{2} 011{2,3} 100{1} 101{1,3} 110{1,2} 111{1,2,3} 8 total outcomes − 1 empty outcome = 7 nonempty outcomes

Exercise. How many subsets of $\{1,2,3,4\}$ contain 1?

Hint and answer. The first bit is fixed at 1; the remaining three bits are free. There are eight such subsets. Equivalently, add 1 to each subset of $\{2,3,4\}$, a reversible construction.

1.4 Double Counting and Counting in Two Ways

Double counting (or counting in two ways) is one of the most elegant proof techniques in combinatorics. By identifying a single set of objects or relationships and evaluating its size from two completely different perspectives, we produce a rigorous algebraic equality without performing tedious calculations.


Concept 1

Counting Incidences: The Handshake Problem

Suppose 6 people attend a gathering and every pair shakes hands exactly once. How many total handshakes occur?

Rather than counting handshakes directly, define a two-element relationship called an incidence: a pair $(p, h)$ consisting of a person $p$ and a handshake $h$ in which person $p$ participated.

Perspective A: Person-Centric Count

Each of the 6 people shakes hands with the other 5 attendees. The total number of person–handshake incidences is:

$$\text{Incidences} = 6 \times 5 = 30$$
Perspective B: Handshake-Centric Count

Let $h$ be the total number of handshakes. Because every handshake involves exactly 2 participants, each handshake creates 2 incidences:

$$\text{Incidences} = 2 \times h$$
Incidence Counting Matrix for Handshakes Diagram showing how row-sum (6 people x 5 handshakes = 30) equals column-sum (2 participants x h handshakes = 2h), yielding 15 total handshakes. Incidence Matrix View: Row Sums = Column Sums Row Perspective (People) Person 1: Participates in 5 handshakes Person 2..6: Each in 5 handshakes Total Incidences = 6 × 5 = 30 = Column Perspective (Handshakes) Handshake 1: Connects 2 participants Handshake 2..h: Each connects 2 participants Total Incidences = 2 × h
Figure 1.9: Double counting equates row sums (person participation) and column sums (handshake endpoints).

Concept 2

Generalization: The Handshake Lemma on Graphs

This principle extends directly to graph theory. A simple undirected graph $G = (V, E)$ consists of a set of $V$ vertices and $E$ edges joining distinct pairs of vertices.

The degree of a vertex $v$, written $\deg(v)$, is the number of edges connected to $v$. Counting vertex–edge incidences in two ways yields one of graph theory's foundational results:

The Handshake Lemma (Degree Sum Formula)

In any finite undirected graph $G = (V, E)$, the sum of the degrees of all vertices is equal to twice the total number of edges:

$$\sum_{v \in V} \deg(v) = 2|E|$$
Double Counting Vertices and Edges (Handshake Lemma) A graph with 5 vertices and 7 edges showing that summing vertex degrees equals twice the number of edges, demonstrating why the number of odd-degree vertices must always be even. Double Counting: Degree Sum Formula (Handshake Lemma) A deg=3 B deg=3 C deg=3 D deg=3 E deg=2 Counting Incidences in Two Ways: 1. Sum of Degrees: 3 + 3 + 3 + 3 + 2 = 14 2. Edge Count × Endpoints: 7 Edges × 2 Endpoints = 14 Key Invariant: Σ deg(v) = 2 × |Edges| ∴ Odd-degree vertices MUST come in EVEN pairs!
Figure 1.10: Double counting incidences on a graph proves that the degree sum is always twice the number of edges.

Let us verify this formula on two basic graph structures:

  • Triangle Graph ($K_3$): 3 vertices, each with degree 2. Degree sum $= 2 + 2 + 2 = 6$. Number of edges $= 3$, and $2 \times 3 = 6$.
  • Path Graph ($P_4$): 4 vertices with degrees $1, 2, 2, 1$. Degree sum $= 1 + 2 + 2 + 1 = 6$. Number of edges $= 3$, and $2 \times 3 = 6$.

Concept 3

The Odd-Degree Parity Theorem

A immediate structural corollary of the Handshake Lemma governs the distribution of odd-degree vertices across any network.

The Parity Theorem

In any undirected graph, the number of vertices with an odd degree must always be EVEN.

Proof Workshop

Exercise: Can a graph have exactly 3 odd-degree vertices?

Suppose someone claims to have built a simple undirected network with exactly three vertices of odd degree. Prove whether this claim is mathematically possible.

Proof Breakdown:

  1. Partition the vertex set $V$ into two subsets: $V_{\text{even}}$ (vertices with even degrees) and $V_{\text{odd}}$ (vertices with odd degrees).
  2. Express the degree sum formula as: $$\sum_{v \in V_{\text{even}}} \deg(v) + \sum_{v \in V_{\text{odd}}} \deg(v) = 2|E|$$
  3. The right side $2|E|$ is always an even integer.
  4. The sum of even degrees $\sum_{v \in V_{\text{even}}} \deg(v)$ is a sum of even numbers, which is always even.
  5. Subtracting even from even requires $\sum_{v \in V_{\text{odd}}} \deg(v)$ to be even.
  6. A sum of odd integers equals an even number if and only if there is an even count of odd terms.

Conclusion: $|V_{\text{odd}}|$ must be even. Therefore, having exactly 3 odd-degree vertices is IMPOSSIBLE!

Double Counting Applications at a Glance

Domain Set Counted Perspective 1 Perspective 2 Resulting Equality
Handshakes (Person, Handshake) Incidences Sum over people ($n \times (n-1)$) Sum over handshakes ($2h$) $2h = n(n-1)$
Graph Theory (Vertex, Edge) Endpoints Sum of vertex degrees $\sum \deg(v)$ 2 endpoints per edge ($2|E|$) $\sum \deg(v) = 2|E|$
Bipartite Graphs Edges between sets $A$ and $B$ Degree sum in set $A$ Degree sum in set $B$ $\sum_{a \in A} \deg(a) = \sum_{b \in B} \deg(b)$

1.5 Invariants and Monovariants

When analyzing dynamical systems, games, or recursive algorithms, tracking every possible sequence of states quickly becomes impossible. Instead, we analyze global properties that govern state transitions: invariants (quantities that never change) and monovariants (quantities that strictly move in one direction).


Concept 1

Invariants: Proving Unreachability

An invariant is a property or numerical value that remains completely unchanged under every legal transition or move. Invariance is process-dependent: a quantity preserved under one rule set may change under another.

Example: The 2-Coin Flip Game

A row contains 7 coins, initially all showing Tails ($0$ Heads). A legal move consists of selecting any 2 distinct coins and flipping both simultaneously. Can we ever reach a state with exactly 1 Head?

Let $H$ represent the total number of Heads. Inspect all three possible flip outcomes:

Outcome 1
Flip 2 Tails

Both become Heads.
$$\Delta H = +2$$

Outcome 2
Flip 2 Heads

Both become Tails.
$$\Delta H = -2$$

Outcome 3
Flip 1 Head + 1 Tail

Head $\to$ Tail, Tail $\to$ Head.
$$\Delta H = 0$$

In every single scenario, $H$ changes by an even amount ($\pm 2$ or $0$). Therefore, the parity of $H$ (whether $H$ is even or odd) is an invariant. Because we start with $H = 0$ (even), $H$ must remain even forever. A target state with $H = 1$ (odd) can never be reached.

Why Can’t We Ever Get Exactly 1 Head? In easy words: An "Invariant" is something that stays the same no matter what move you make. 1. The Starting State Start with 7 Tails (0 Heads) T T T T T T T 0 is an EVEN number Initial Head count = 0 (an EVEN number) 2. The Game Rule You MUST flip exactly 2 coins on every move! T T ➔ Become 2 Heads +2 Heads (EVEN) H H ➔ Become 2 Tails −2 Heads (EVEN) H T ➔ Swap Places 0 Change (EVEN) 3. The Invariant (The Secret) No matter how you flip, the count of Heads only ever changes by an EVEN amount (+2, −2, or 0). Start = 0 (EVEN) | Moves = ±2, 0 (EVEN) ⇒ You can ONLY ever have 0, 2, 4, or 6 Heads! The Impossible Target Target: Exactly 1 Head (1 is an ODD number) H T T ... ODD states are UNREACHABLE!
Coin Flips Preserve Parity Invariant Diagram showing the 3 move outcomes in the coin flipping game, illustrating that head parity remains even, making 1 head unreachable. Coin Flip Invariant: Parity of Heads is Always EVEN Permitted Move Dynamics Flip 2 Tails (T,T) ➔ +2 Heads Flip 2 Heads (H,H) ➔ −2 Heads Flip (H,T) ➔ 0 Change Δ Heads ∈ {+2, −2, 0} ➔ Parity Unchanged State Reachability Check Initial State: 0 Heads (EVEN) ↓ Any number of flips Reachable: 2, 4, 6 Heads (EVEN) ❌ Target: 1 Head (ODD) ➔ UNREACHABLE
Figure 1.15: Because all legal moves change the Head count by an even number, the EVEN parity is preserved indefinitely.

Concept 2

Monovariants: Proving Termination

While an invariant stays completely fixed, a monovariant is a value that changes in only one direction (strictly increasing or strictly decreasing). A strictly decreasing quantity bounded below by zero guarantees that a process must eventually terminate.

Example: Subtraction Euclidean Algorithm

Start with two positive integers $(a, b)$. If $a \neq b$, replace the larger number with the difference between them. Repeat until $a = b$.

Trace for (18, 12):   (18, 12) ➔ (6, 12) ➔ (6, 6) [Terminal]

Answering two fundamental questions about this algorithm requires two distinct tools:

1. Monovariant (Proves Termination)

Consider the sum $S = a + b$. At each step, replacing $\max(a,b)$ with $|a - b|$ strictly reduces the sum $S$ by $2 \min(a,b) > 0$.

$$S_{\text{next}} < S_{\text{current}}$$

Since $a, b \in \mathbb{Z}^+$, $S$ is a positive integer that cannot decrease indefinitely. Therefore, the process must stop.

2. Invariant (Proves Correctness)

Consider $\gcd(a, b)$. Number theory establishes that any divisor of $a$ and $b$ also divides $a - b$. Thus, the greatest common divisor is preserved:

$$\gcd(a, b) = \gcd(\min(a,b), |a - b|)$$

At terminal state $(d, d)$, $\gcd(d, d) = d$. Invariance guarantees $d = \gcd(a_{\text{initial}}, b_{\text{initial}})$.

Euclidean Subtraction Algorithm Monovariant vs Invariant Flow diagram showing states (18,12) to (6,12) to (6,6), tracking the strictly decreasing sum monovariant and the preserved GCD invariant. Separation of Duties: Monovariant vs. Invariant (18, 12) Sum (Monovariant) = 30 GCD (Invariant) = 6 18 − 12 (6, 12) Sum (Monovariant) = 18 GCD (Invariant) = 6 12 − 6 (6, 6) [Terminal] Sum (Monovariant) = 12 GCD = 6 (Correct!) Algorithm Mechanics Details: Monovariant Trend (Termination): The sum S = a + b decreases strictly with every subtraction step (30 → 18 → 12). Guarantees: ➔ ALGORITHM TERMINATION (the sum cannot decrease infinitely). Invariant Value (Correctness): The greatest common divisor GCD remains strictly constant (6 → 6 → 6) under every transition. Guarantees: ➔ MATHEMATICAL CORRECTNESS (preserves the original GCD target value). Figure 1.16: Monovariants ensure an algorithm stops, while Invariants ensure it reaches the correct answer.
Figure 1.16: Monovariants ensure an algorithm stops, while Invariants ensure it reaches the correct answer.
Hands-On Practice

Exercise: Apply the Monovariant & Invariant Analysis

Apply the subtraction Euclidean algorithm to the starting pair $(15, 9)$.

  1. List the complete step-by-step state sequence until a terminal state is reached.
  2. Identify the exact monovariant values (sum of pairs) at each step.
  3. Verify the invariant value ($\gcd$) across all states.

Solution & Trace Breakdown:

State Trace: (15, 9) ➔ (6, 9) ➔ (6, 3) ➔ (3, 3)

  • Monovariant Sum Sequence: $24 \to 15 \to 9 \to 6$ (strictly decreasing positive integers $\implies$ guarantees termination).
  • Invariant GCD Value: $\gcd(15, 9) = \gcd(6, 9) = \gcd(6, 3) = \gcd(3, 3) = 3$ (strictly preserved $\implies$ guarantees correct output $3$).

Invariants vs. Monovariants: Side-by-Side Comparison

Property Behavior During Transitions Primary Mathematical Purpose Typical Examples
Invariant Stays 100% constant ($V_{\text{next}} = V_{\text{current}}$) Proves unreachability or correctness Parity, color balance, $\gcd(a,b)$, degree sum.
Monovariant Changes in one direction ($V_{\text{next}} < V_{\text{current}}$) Proves termination / finiteness Sum of entries, total energy, distance to target.

1.6 Parity, Coloring, and Impossibility Arguments

When facing complex combinatorial problems with millions of possibilities, testing every configuration directly is rarely feasible. Instead, we simplify the problem by extracting a single invariant property—a feature that stays constant across all valid states. Two of the most versatile tools for certifying impossibility are parity and coloring.


Concept 1

Parity & Area-Parity Obstructions

Parity simply records whether an integer is even or odd. By collapsing numbers down to this single bit of information ($0$ or $1$), complex geometric constraints often reduce to simple arithmetic rules.

The Area-Parity Rule for Domino Tilings

Every $1 \times 2$ domino covers exactly 2 squares (an even number). Therefore, any region formed by combining $k$ dominoes must have a total area of $2k$ squares (always an even integer). A region with an odd number of available squares can never be tiled by dominoes.

Area-Parity Obstruction Example A 3x3 grid with 9 squares (odd) attempted to be tiled by 4 dominoes (8 squares), leaving 1 uncovered square and demonstrating the area-parity obstruction. Area-Parity Obstruction: Odd Area Cannot Be Tiled Domino 1 Domino 2 Domino 3 Domino 4 3×3 Grid = 9 Squares (Odd) Parity Contradiction Analysis: • Target Area = 9 squares (ODD) • 4 Dominoes Cover = 4 × 2 = 8 squares (EVEN) • Remaining Gap = 9 − 8 = 1 square leftover! ❌ EVEN area required. Tiling is IMPOSSIBLE.
Figure 1.12: Area parity provides an immediate, one-step certificate of impossibility for odd-area boards.

Concept 2

Coloring & Weighted-Sum Invariants

Area parity alone cannot catch every impossibility. For instance, removing two opposite corner squares from an $8 \times 8$ board leaves 62 squares—an even area! To detect why this mutilated board cannot be tiled, we introduce checkerboard coloring.

Assign numerical weights to the squares based on their colors:

  • Assign every black square a weight of $+1$.
  • Assign every white square a weight of $-1$.

Because every domino covers exactly 1 black and 1 white square, the weight sum of a single domino is always $(+1) + (-1) = 0$. Consequently, any region that can be perfectly tiled by dominoes must have a total weight sum of $0$.

Weighted-Sum Invariant Proof Diagram showing why a domino has net weight 0, while a mutilated 4x4 board has net weight -2, proving tiling is impossible. The Weighted-Sum Invariant Proof 1. Domino Weight Invariant Black (+1) White (−1) Weight per Domino = (+1) + (−1) = 0 Any k dominoes MUST sum to k × 0 = 0 2. Mutilated 4×4 Board Weight • Remaining Black Squares: 6 × (+1) = +6 • Remaining White Squares: 8 × (−1) = −8 • Total Board Weight = (+6) + (−8) = −2 ❌ Board Weight (−2) ≠ Required Domino Weight (0)
Figure 1.13: Converting coloring into a weighted sum converts geometric fitting into an algebraic impossibility proof.

On the $4 \times 4$ mutilated board with black corner squares $(1,1)$ and $(4,4)$ removed, the total weight is $6(+1) + 8(-1) = -2$. Since no sum of zero-weight dominoes can ever equal $-2$, the board cannot be tiled.


Concept 3

Necessary vs. Sufficient Conditions (Local Obstructions)

A common pitfall in mathematical reasoning is assuming that if a proposed solution passes a necessary test, it must be valid. A necessary condition is not automatically sufficient.

Necessary Condition

A requirement that must be satisfied for a tiling to exist (e.g., equal numbers of black and white squares, even area). If it fails, nonexistence is certified.

Sufficient Condition

A condition that guarantees a tiling exists. Passing color balance alone is not sufficient because local structural bottlenecks can still prevent tiling!

Counterexample: The Isolated Square

Consider a $4 \times 4$ board where four specific squares are removed: $(1,2)$, $(2,1)$, $(3,3)$, and $(4,4)$.

  • Removed white squares: $(1,2)$ and $(2,1)$ (2 white).
  • Removed black squares: $(3,3)$ and $(4,4)$ (2 black).

The board has 6 black squares and 6 white squares remaining. Color balance is perfectly preserved ($6 = 6$). However, inspect corner square $(1,1)$:

Isolated Square Counterexample A 4x4 board with 6 black and 6 white squares remaining, but square (1,1) has both of its adjacent neighbors removed, making it completely isolated and untilable. Passing Color Balance Does NOT Guarantee Tiling! (1,1) Square (1,1) is completely ISOLATED! 1. Global Color Balance Test: • 6 Black Squares Remaining • 6 White Squares Remaining ✅ Result: PASSED (6 Black = 6 White) 2. Local Connectivity Test at (1,1): • Right neighbor (1,2): REMOVED • Bottom neighbor (2,1): REMOVED ❌ Result: FAILED! Degree of (1,1) = 0 neighbors ∴ Local connectivity fails ➔ Tiling is IMPOSSIBLE
Figure 1.14: Square (1,1) has zero available neighbors, proving that passing color balance alone does not guarantee a tiling.

Square $(1,1)$ requires at least one available adjacent square to place a domino. Because both of its edge-sharing neighbors—$(1,2)$ and $(2,1)$—were removed, square $(1,1)$ is completely isolated. No domino can ever cover it, making tiling impossible despite perfect $6 = 6$ color balance.

Summary: Impossibility Arguments at a Glance

Technique Invariant Checked When It Certifies Impossibility Scope & Limitation
Area Parity Total Square Count ($\text{Area} \bmod 2$) Total available area is an odd integer. Global test. Cannot detect color or shape imbalances.
Checkerboard Coloring Weighted Sum $\sum W_i = \#\text{Black} - \#\text{White}$ Count of black squares $\neq$ count of white squares. Global invariant. Necessary test, but not sufficient.
Local Connectivity Vertex Degree / Available Neighbors Any isolated square has $0$ available neighbors. Local test. Catches bottlenecks that global tests miss.

1.7 Existence Proofs versus Constructive Proofs

In combinatorics, proving that an object or configuration exists can be approached in two fundamentally different ways. A constructive proof provides an explicit algorithm, formula, or visual blueprint for building the object. In contrast, an existence proof (often non-constructive) mathematically guarantees that at least one such object must exist—frequently via bounds, contradiction, or the Pigeonhole Principle—without revealing where or how to find it.


Method 1

Constructive Proofs: Explicit Recipes

A constructive proof answers both "Does it exist?" and "How do we build it?" simultaneously. It specifies an exact step-by-step procedure to construct a valid instance for any input parameter.

Constructive Example: Domino Tiling of Even-Column Rectangles

Theorem: Any $m \times n$ rectangular board where the number of columns $n$ is even can be perfectly tiled with $1 \times 2$ dominoes.

Explicit Construction Algorithm:

  1. Iterate through each row $r$ from $1$ to $m$.
  2. Within row $r$, pair column $1$ with $2$, column $3$ with $4$, and generally column $2k-1$ with column $2k$ for all $k \in \{1, 2, \dots, n/2\}$.
  3. Place a horizontal $1 \times 2$ domino across each paired set of adjacent squares.

Because $n$ is even, every square belongs to exactly one pair, no dominoes overlap, and no dominoes extend past the boundary. This explicit recipe completes the proof by direct demonstration.

Constructive Domino Tiling Algorithm for Even-Column Rectangles Diagram showing an explicit horizontal column-pairing algorithm on a 2x6 board, demonstrating a constructive proof. Constructive Proof: Explicit Column-Pairing Blueprint 2×6 Board Explicit Tiling Blueprint Cols (1,2) Cols (3,4) Cols (5,6) Cols (1,2) Cols (3,4) Cols (5,6) Every square uniquely covered by rule: (2k−1, 2k) Constructive Features ✔ Explicit Recipe: Direct formula for any m × n. ✔ Verifiable: Non-overlap & boundary checks are mathematically guaranteed. ✔ Executable: Easily written as code or algorithm. Output: Explicit Tiling Diagram
Figure 1.17: Constructive proofs provide a complete, deterministic algorithm to generate the target object.

Method 2

Non-Constructive Existence Proofs: Proving Without Showing

A non-constructive existence proof proves that an object must exist beyond any mathematical doubt, yet it leaves the exact identity or location of that object unspecified. These proofs typically rely on bounding arguments, counting contradictions, or the Pigeonhole Principle.

Existence Example: The Server Workload Bound

Theorem: If 20 tasks are assigned among 6 cloud servers, at least one server must be assigned 4 or more tasks.

Proof by Contradiction (Bounding Argument):

  1. Assume the contrary: suppose every server is assigned at most $3$ tasks.
  2. With $6$ servers each handling at most $3$ tasks, the maximum possible total number of tasks that can be processed is: $$\text{Max Tasks} = 6 \times 3 = 18 \text{ tasks}$$
  3. However, we have $20$ tasks in total. Since $18 < 20$, this contradicts our initial assumption!
  4. Therefore, at least one server must carry $\ge 4$ tasks.
Key Distinction: Notice that this proof guarantees the existence of a heavily loaded server without telling us which server it is (e.g., Server 2 vs. Server 5) or how the tasks were distributed!
Non-Constructive Server Workload Bound (Pigeonhole Principle) Diagram showing 6 servers capped at 3 tasks each totaling 18, leaving 2 overflow tasks that force at least 1 server to hold 4 or more tasks. Non-Constructive Existence Proof: Bounding & Contradiction Assumption: Max 3 Tasks per Server S1: 3 Tasks S2: 3 Tasks S3: 3 Tasks S4: 3 Tasks S5: 3 Tasks S6: 3 Tasks Max Capacity = 6 × 3 = 18 Tasks 20 Tasks Total ➔ 2 Overflow Tasks Left Out! Existence Guaranteed • Contradiction: 18 capacity < 20 total tasks. • Pigeonhole Principle: The overflow tasks must go to one of the active servers. • Unknowns: We don't know the Server ID or the exact task distribution! ∴ At least 1 Server has ≥ 4 Tasks
Figure 1.18: Non-constructive existence proofs guarantee an object exists by ruling out its impossibility.

Constructive vs. Non-Constructive Proofs: At a Glance

Feature Constructive Proof Non-Constructive Existence Proof
Primary Question Answered "How do we construct a valid object?" "Is it mathematically impossible for no object to exist?"
Output Delivered An explicit instance, algorithm, or blueprint. A mathematical guarantee that at least one instance exists.
Common Techniques Explicit formulas, greedy algorithms, recursive pairings. Proof by contradiction, Pigeonhole Principle, double counting, probabilistic bounds.
Computational Value High (directly produces an actionable solution). Theoretical (proves search won't fail, but search is still needed).

1.8 Introduction to Extremal Reasoning

When investigating discrete systems, one of the most powerful problem-solving strategies is extremal reasoning. Instead of examining an arbitrary or average configuration, we select an extremal object—an element that maximizes or minimizes a key measurement (such as longest path, smallest angle, maximum degree, or minimum distance). Because an extremal object sits at an absolute structural limit, it cannot be further improved, forcing local properties that simplify proofs.


Concept 1

The Extremal Principle: Maximums & Minimums

An extremal choice converts a global assumption into tight local structural restrictions. The core logic follows a classic proof-by-contradiction pattern:

Standard Extremal Strategy
  1. Identify a measurable quantity $f(x)$ for every valid candidate object $x$.
  2. Select an object $x^*$ that achieves the absolute maximum (or minimum) value of $f$.
  3. Exploit the fact that $x^*$ cannot be enlarged/extended: any operation that would increase $f(x^*)$ must be impossible, revealing mandatory structural constraints on $x^*$.

Concept 2

Worked Proof: Longest Paths Reveal Local Structure

Let $G = (V, E)$ be a finite simple undirected graph. A path is a sequence of distinct vertices $v_0, v_1, \dots, v_k$ where consecutive vertices are connected by an edge. Its length is its number of edges ($k$).

Key Theorem: Neighbor Containment

Choose a longest path $P = (v_0, v_1, \dots, v_k)$ in $G$. Then every neighbor of the starting vertex $v_0$ must already lie on $P$.

Proof by Contradiction:

Suppose $v_0$ had a neighbor $w$ that does not belong to path $P$. Because $w \notin \{v_0, v_1, \dots, v_k\}$ and $(w, v_0) \in E$, we could append $w$ to the front of $P$ to form a new path:

$$P' = (w, v_0, v_1, \dots, v_k) \quad \implies \quad \text{Length}(P') = k + 1$$

Path $P'$ has length $k + 1$, directly contradicting our initial premise that $P$ was a longest path (length $k$). Thus, no such external neighbor $w$ can exist!

Longest Path External Neighbor Contradiction Diagram showing why a neighbor w outside a longest path creates a longer path, proving all neighbors must lie on the path. Extremal Argument: Why External Neighbors Cannot Exist w External Vertex v₀ Start Endpoint v₁ v₂ vₖ Longest Path P (Length = k edges) New Path P' Length = k + 1
Figure 1.19: If an external neighbor $w$ existed, $w, v_0, v_1, \dots, v_k$ would form a path of length $k+1$, contradicting the choice of $P$ as a longest path.

Concept 3

Application: Minimum Degree Bounds Guarantee Long Paths

Now consider how this extremal property lets us prove a fundamental graph theory theorem connecting vertex degrees to path lengths.

Theorem: Minimum Degree $\delta$ Guarantees Path of Length $\ge \delta$

Suppose every vertex in a non-empty finite graph $G$ has degree at least $\delta$ ($\deg(v) \ge \delta$ for all $v \in V$). Then $G$ contains a path of length at least $\delta$ (containing at least $\delta + 1$ vertices).

Step-by-Step Proof Using Extremal Reasoning:

  1. Select a longest path $P = (v_0, v_1, \dots, v_k)$ in graph $G$.
  2. Inspect starting vertex $v_0$. By hypothesis, $\deg(v_0) \ge \delta$, so $v_0$ has at least $\delta$ distinct neighbors.
  3. By our extremal neighbor-containment theorem, all $\delta$ neighbors of $v_0$ must lie on path $P$.
  4. Since $v_0$ cannot be its own neighbor, all $\ge \delta$ neighbors must be chosen from the remaining path vertices $\{v_1, v_2, \dots, v_k\}$.
  5. Because $P$ has $k$ vertices other than $v_0$, the total number of remaining path vertices must be at least $\delta$: $$\text{Path length } k \ge \delta$$
Minimum Degree Delta Forces Long Path Diagram illustrating how a starting vertex with minimum degree delta = 3 forces at least 3 back-edges along the path, ensuring length k >= delta. Minimum Degree δ Forces All Neighbors onto the Path v₀ v₁ Neighbor 1 v₂ Neighbor 2 v₃ Neighbor 3 vₖ δ = 3 Neighbors ➔ Path Length k ≥ 3
Figure 1.20: Because $v_0$ has $\ge \delta$ neighbors and none can be outside $P$, $P$ must contain at least $\delta$ edges.

Extremal Reasoning Patterns at a Glance

Extremal Choice Impossibility / Barrier Structural Consequence Revealed
Longest Path $P = (v_0, \dots, v_k)$ Cannot add an external vertex to extend $P$. All neighbors of $v_0$ (and $v_k$) lie on $P$.
Smallest Geometry Distance Cannot fit another point inside the minimal gap. Forces points to lie on boundaries or collinear configurations.
Maximum Degree Vertex $v_{\max}$ No vertex has strictly more incident edges than $v_{\max}$. Upper-bounds neighbor set sizes across the entire graph.

Design A Counting Proof and An Impossibility Certificate

The investigation below combines the chapter's main habits: define objects precisely, count without duplication, construct legal outcomes, and certify impossible ones. It also introduces a useful distinction between checking examples computationally and proving a statement for every input.

Investigation

Design a counting proof and an impossibility certificate

Inputs and conventions. Use rectangles with rows and columns numbered from 1. A domino covers two edge-adjacent available squares. Dominoes are indistinguishable, and two tilings are different when they use different pairs of squares. Rotated arrangements are counted separately when their square pairs differ.

Warm-up calculations.

  1. Count the shortest routes from $(0,0)$ to $(3,2)$, showing the reversible encoding by words. Expected answer: ten.
  2. Count the nonempty subsets of $\{1,2,3,4\}$. Expected answer: $2^4 - 1 = 15$.
  3. Count two-person committees from six people. Expected answer: $6 \times 5 / 2 = 15$; explain why every committee has exactly two ordered encodings.

Counting workshop: domino tilings of a 2-by-n rectangle. Let $T(n)$ count its tilings. Set $T(0)=1$: the empty board has the one empty tiling. Also $T(1)=1$.

For $n \ge 2$, inspect the upper-left square. If its domino is vertical, remove the first column, leaving a 2-by-$(n-1)$ rectangle. If its domino is horizontal, the lower-left square must also be covered horizontally: its upper neighbor is already occupied, and its only other available neighbor is to the right. Removing these two horizontal dominoes leaves a 2-by-$(n-2)$ rectangle.

These two cases are disjoint and exhaustive, and deleting or adding their initial pieces is reversible. Thus $T(n) = T(n-1) + T(n-2)$. The first values, from $n=0$ through $n=4$, are $1,1,2,3,5$. Draw all three tilings of a 2-by-3 rectangle and check that each belongs to exactly one case.

Domino Tiling Recurrence Relation T(n) Decomposing a 2xn board into two disjoint cases: 1 vertical domino leaving a 2x(n-1) board, or 2 horizontal dominoes leaving a 2x(n-2) board, yielding T(n) = T(n-1) + T(n-2). Recursive Decomposition for 2×n Domino Tilings: T(n) = T(n-1) + T(n-2) Case 1: First domino is VERTICAL V 2×(n−1) remaining T(n−1) tilings Case 2: First domino is HORIZONTAL H₁ H₂ 2×(n−2) T(n−2) tilings Concrete Example for 2×3 Board: T(3) = T(2) + T(1) = 2 + 1 = 3 Tilings 1. Three Verticals 2. Vertical + 2 Horizontals 3. 2 Horizontals + Vertical
Figure 1.11: Decomposing 2×n domino tilings recursively into two disjoint cases.

Deliverables. Submit the three warm-up solutions, drawings for the 2-by-3 board, the recurrence proof, the rectangle construction, the color certificate, and a short record of any computational experiment.

Next in the Series

In Chapter 2: Mathematical Induction and Recursive Reasoning, we'll explore building infinite families from finite steps and recursive structure.