MGU Mathematics Series — Discrete Mathematics
Part II: Proof, Induction, and Number Structures
Base Cases · Inductive Steps · Recursive Definitions · Algorithms
Chapter 5 of 14
MGU Mathematics Series  ·  Discrete Mathematics  ·  Library Textbook Edition

Chapter 5:
Mathematical Induction
and Recursion

Proving claims for all whole numbers, defining sequences and algorithms step by step, and understanding why induction and recursion are mirror images of each other

■ Part II: Proof, Induction, and Number Structures ■

■ 14 Sections  •  Chapter 5 of 14 ■

Follows Chapter 4: Methods of Proof  ·  Prepares students for Chapter 6: Integers, Divisibility, and Modular Arithmetic

Purpose and Overview

This chapter introduces one of the most important proof methods in all of mathematics: mathematical induction. Induction is the tool mathematicians use when a claim is stated for every whole number — not just one particular number, but infinitely many of them. Because no proof can list infinitely many cases, induction provides a structured argument that handles all of them at once.

Alongside induction, this chapter introduces recursion: the technique of defining something by referring back to smaller versions of itself. Induction and recursion are mirror images of each other. Induction proves claims that unfold step by step. Recursion defines objects by building them step by step. Together, they give students essential tools for reasoning about sequences, algorithms, structures that grow, and any process that repeats in a systematic pattern.

This chapter remains algebra-based throughout. It draws on sums, divisibility, inequalities, sequences, and function notation. No limits, derivatives, or integrals are needed.

Opening Question

Suppose someone claims: “No matter how many times you add the first n odd numbers together, the result is always a perfect square.” You can check a few cases: 1 = 1², (1+3) = 4 = 2², (1+3+5) = 9 = 3², (1+3+5+7) = 16 = 4². The pattern seems clear. But checking four cases does not prove the claim for every whole number n. There are infinitely many values of n. How can you prove a claim about all of them at once? Mathematical induction answers this question. By the end of this chapter, you will be able to prove this claim — and many others like it — with complete rigor.

14Sections
9Objectives
14Key Terms
12+Worked Examples

Learning Objectives

  1. 1Explain why ordinary verification of examples is not sufficient to prove a claim for all whole numbers.
  2. 2Identify statements that are candidates for proof by induction.
  3. 3Write a complete proof by mathematical induction, including a base case, inductive hypothesis, and inductive step.
  4. 4Apply strong induction to problems where the inductive step depends on more than one prior case.
  5. 5Write and interpret recursive definitions of sequences, functions, and structures.
  6. 6Trace recursive algorithms on small inputs.
  7. 7Explain the relationship between induction and recursion.
  8. 8Prove summation identities, divisibility claims, and simple inequalities using induction.
  9. 9Identify and avoid common mistakes in induction proofs.

Sections at a Glance

Sections 5.1 – 5.2
The Need for Induction and the P(n) Framework
Limits of Verification · The Domino Argument · Recognizing Suitable Statements

Why Induction Is Needed

In mathematics, a claim about numbers often takes a general form: it says something is true not just for one specific number, but for all whole numbers, or for all integers greater than some starting value. No finite collection of examples proves a claim for all values. There is always the possibility that the pattern breaks down at some large, unchecked value of n.

Mathematical induction is the proof technique designed for exactly this situation. Rather than checking cases one by one, induction proves the claim by showing two things: (1) the claim is true for the first value, and (2) whenever the claim is true for some value n = k, it must also be true for the next value n = k+1. If both hold, the claim is true for every value — because it holds at the start, and once it holds anywhere, it must hold at the next step, and the next, without end.

Three Claims That Require Induction

Claim A. For every positive integer n, the sum of the first n odd numbers equals n².

Claim B. For every integer n ≥ 0, the number 2⊃n > n.

Claim C. For every integer n ≥ 1, the number 6⊃n − 1 is divisible by 5.

The Domino Argument

The most vivid way to understand why induction works is the domino analogy. Imagine an infinite row of dominoes, one for each whole number. To guarantee a chain reaction, you need exactly two things: the first domino falls (base case), and whenever any domino falls, the next one falls too (inductive step). If both conditions hold, every domino eventually falls — even the ones you never touched directly. Induction works exactly the same way.

Key Insight

You do not prove the claim for infinitely many cases directly. You prove a structural connection: if one case holds, then the next must hold. Combined with the starting point, this forces every case to hold.

Statements Indexed by Whole Numbers

A statement is suitable for induction when it can be written in the form P(n), where n ranges over whole numbers or integers starting from some value. The notation P(n) means “the statement P applied to the specific value n.”

Illustration 5.2.1
Reading P(n) notation
  • SetupLet P(n) be: “The sum of the first n positive odd numbers equals n².”
  • P(1)Sum of first 1 odd number = 1. Right side: 1² = 1. True.
  • P(2)1 + 3 = 4 = 2². True.
  • P(3)1 + 3 + 5 = 9 = 3². True.
  • GoalInduction proves P(n) is true for every positive integer n — not just the first several cases.
Claim TypeDescriptionExample
Summation formulaA closed form for a sum of n terms1 + 2 + … + n = n(n+1)/2
Divisibility claimAn expression always divisible by a fixed number5 | (6⊃n − 1) for all n ≥ 1
InequalityOne expression is always larger than another2⊃n ≥ n + 1 for all n ≥ 1
Sequence propertyEvery term of a recursive sequence satisfies a boundFibonacci terms satisfy F⊂n ≤ 2⊃n
Student Warning

Induction proves that a claim holds for every whole number starting from the base case. It does not automatically apply to all real numbers or all integers. Always check the stated domain before choosing your starting value.

Practice 5.1–5.2Concept Check
  1. Explain in your own words why checking 1,000 specific cases does not prove a claim for all whole numbers.
  2. For each of the following, write the statement P(n) and evaluate P(1), P(2), and P(3): (a) The sum of the first n even positive integers equals n(n+1). (b) For all n ≥ 1, 7 | (8⊃n − 1).
  3. Which of the following statements has the form suitable for proof by induction? Explain your reasoning for each: (a) Every prime number greater than 2 is odd. (b) For all positive integers n, n² + n + 41 is prime. (c) For all n ≥ 0, 3 | (n³ − n).
Sections 5.3 – 5.6
Base Cases, Hypotheses, Steps, and Complete Proofs
Verifying the Start · Assuming P(k) · Deriving P(k+1) · Full Proof Form

Base Cases

The base case is the first step of an induction proof. It proves that the claim P(n) is true for the smallest value in the domain — usually n = 1 or n = 0, but sometimes another starting value depending on what the claim asserts. The base case is not optional. Without it, the chain has no starting point and the argument collapses entirely. The base case must be checked directly, by substituting the specific value and verifying that the claim holds.

Example 5.3.1
Checking a base case
  • ProblemLet P(n) be: “The sum of the first n positive integers equals n(n+1)/2.” Verify the base case P(1).
  • ThinkSubstitute n = 1 on both sides and check for equality.
  • SolveLeft side (sum of first 1 integers): 1 Right side (formula at n = 1): 1·2/2 = 1
  • CheckBoth sides equal 1. P(1) is satisfied.
Answer: The base case P(1) holds.
Choosing the Right Base Case

If the claim says “for all n ≥ 2,” the base case is n = 2, not n = 1. If the claim says “for all n ≥ 0,” check n = 0. Read the stated domain first. Never skip this step, even when it seems trivially obvious — a missed base case invalidates the entire proof.

Inductive Hypotheses

After establishing the base case, the next component is the inductive hypothesis. The inductive hypothesis is an assumption: you assume, temporarily, that the claim P(k) is true for some arbitrary but fixed value k in the domain.

Students often feel this is circular reasoning — you seem to be assuming the very thing you want to prove. However, this is not circular. The inductive hypothesis does not assume P(n) for all n. It assumes P(k) for a single, unspecified value k. The goal is then to prove that P(k+1) must also be true. This conditional structure — “if P(k), then P(k+1)” — is what gives induction its power.

Writing the Inductive Hypothesis

State the hypothesis in both words and symbols. For example:

“Assume that P(k) is true for some integer k ≥ 1. That is, assume that:”

1 + 2 + 3 + ··· + k = k(k+1)/2

The symbolic form is especially important because it is what you will use algebraically in the inductive step.

Inductive Steps

The inductive step is the heart of the proof. Having assumed that P(k) is true, you must now prove that P(k+1) is true. This is a conditional proof: you are proving “if P(k), then P(k+1).” You are not proving P(k+1) from scratch — you are using the assumption P(k) as a tool. The most common technique is to start with the left side of P(k+1), manipulate it algebraically, and substitute the inductive hypothesis at the right moment.

Example 5.5.1
Inductive step for a summation identity
  • ClaimFor all positive integers n: 1 + 2 + 3 + ··· + n = n(n+1)/2
  • HypothesisAssume P(k): 1 + 2 + ··· + k = k(k+1)/2. We must show P(k+1): 1 + 2 + ··· + k + (k+1) = (k+1)(k+2)/2.
  • Solve 1 + 2 + ··· + k + (k+1) = [k(k+1)/2] + (k+1) ← inductive hypothesis = (k+1)[k/2 + 1] = (k+1) · (k+2)/2 = (k+1)(k+2)/2 ← right side of P(k+1) ✓
  • CheckThe inductive hypothesis was used exactly once. All algebraic steps are valid.
Conclusion: P(k+1) follows from P(k). The inductive step is complete.
Look for the Hypothesis

In the inductive step, you must use the inductive hypothesis somewhere. If you have not used it, you have not connected P(k) to P(k+1). Look for the moment when you substitute the inductive hypothesis expression into your work — this is the key link in the chain.

Writing a Complete Induction Proof

A complete induction proof follows a standard six-step structure that should be written in full every time. Skipping components or combining them creates ambiguity and makes errors harder to detect.

The Six-Step Induction Structure

1. State the claim precisely, including the domain.

2. State the proof method: “We proceed by mathematical induction on n.”

3. Base case: Verify P(starting value) directly by substitution.

4. Inductive hypothesis: Assume P(k) for some k ≥ starting value, and write it out in full.

5. Inductive step: Prove P(k+1) using the inductive hypothesis.

6. Conclusion: State that by mathematical induction, P(n) holds for all n in the domain.

Complete Proof — Example 5.6.1
The sum of the first n odd numbers equals n²
Claim For every integer n ≥ 1: (2·1−1) + (2·2−1) + ··· + (2n−1) = n².
Method We proceed by mathematical induction on n.
Base Case (n = 1) The sum of the first 1 odd number is 2(1)−1 = 1. The right side is 1² = 1. Since both sides equal 1, P(1) holds.
Inductive Hypothesis Assume P(k) is true for some integer k ≥ 1. That is, assume: (2·1−1) + (2·2−1) + ··· + (2k−1) = k²
Inductive Step We must show P(k+1): the sum of the first k+1 odd numbers equals (k+1)². Sum of first (k+1) odd numbers = [Sum of first k odd numbers] + (2(k+1)−1) = k² + (2k + 2 − 1) ← inductive hypothesis = k² + 2k + 1 = (k+1)² ✓
Conclusion By the principle of mathematical induction, for every positive integer n, the sum of the first n odd numbers equals n².
■
The QED Symbol

The solid square ■ (or Q.E.D., from the Latin quod erat demonstrandum) marks the end of a proof. It signals that the argument is complete. Use it consistently to close every formal proof you write.

Practice 5.3–5.6Writing Induction Proofs
  1. Prove by induction: For all positive integers n, 1 + 2 + 3 + ··· + n = n(n+1)/2.
  2. Prove by induction: For all integers n ≥ 1, 1 + 2 + 4 + 8 + ··· + 2⊃(n−1) = 2⊃n − 1.
  3. For each proof below, identify whether the base case, inductive hypothesis, or inductive step (or more than one) contains an error: (a) A student verifies the base case n=1 for a claim stated “for all n ≥ 3.” (b) A student assumes P(k+1) midway through proving P(k+1). (c) A student carries out the inductive step without substituting the inductive hypothesis anywhere.
Section 5.7
Strong Induction
Assuming All Prior Cases · Multiple Base Cases · Fibonacci-Type Sequences

Strong Induction

The form of induction described so far assumes P(k) to prove P(k+1). Sometimes the inductive step requires assuming not just P(k), but all of P(1), P(2), …, P(k) simultaneously. This more powerful form is called strong induction (also called complete induction). It is logically equivalent to ordinary induction but is often the more natural form to apply.

Ordinary InductionStrong Induction
Base caseVerify P(starting value)Verify P(starting value); sometimes verify several
HypothesisAssume P(k) for a fixed kAssume P(j) for all j with 1 ≤ j ≤ k
GoalProve P(k+1)Prove P(k+1)
Use whenStep depends only on the immediately prior caseStep depends on two or more prior cases (e.g. Fibonacci)
Complete Proof — Example 5.7.1
Bounding a recursive sequence using strong induction
Claim Define a⊂1; = 1, a⊂2; = 3, and a⊂n; = a⊂(n−1); + a⊂(n−2); for n ≥ 3. Then a⊂n; ≤ 3⊃n for all n ≥ 1.
Method We proceed by strong induction on n.
Base Cases n = 1: a⊂1; = 1 ≤ 3⊃1 = 3. ✓ n = 2: a⊂2; = 3 ≤ 3⊃2 = 9. ✓
Inductive Hypothesis Assume a⊂j; ≤ 3⊃j for every integer j with 1 ≤ j ≤ k, where k ≥ 2.
Inductive Step We must show a⊂(k+1); ≤ 3⊃(k+1). a⊂(k+1); = a⊂k; + a⊂(k−1); ← recursive definition ≤ 3⊃k + 3⊃(k−1) ← inductive hypothesis (j=k and j=k−1) = 3⊃(k−1)(3 + 1) = 4 · 3⊃(k−1) ≤ 9 · 3⊃(k−1) ← since 4 ≤ 9 = 3⊃2 · 3⊃(k−1) = 3⊃(k+1) ✓
Conclusion By strong induction, a⊂n; ≤ 3⊃n for all integers n ≥ 1.
■
Student Warning — Two Base Cases Required

When the recurrence reaches back two steps (as in this example), two base cases must be verified. A student who checks only n = 1 leaves the step from n = 1 to n = 2 unsupported. Always match the number of base cases to the depth of the recurrence.

Practice 5.7Strong Induction
  1. Let a⊂1; = 1, a⊂2; = 2, and a⊂n; = a⊂(n−1); + a⊂(n−2); for n ≥ 3. Prove by strong induction that a⊂n; ≤ 2⊃n for all n ≥ 1.
  2. Suppose P(1) and P(2) are both true, and that for all k ≥ 2, P(k−1) and P(k) together imply P(k+1). Explain why P(n) holds for all positive integers n.
  3. Let b⊂1; = 1, b⊂2; = 3, and b⊂n; = 2b⊂(n−1); + b⊂(n−2); for n ≥ 3. Compute b⊂3;, b⊂4;, b⊂5;. Then prove by strong induction that b⊂n; ≤ 5⊃n for all n ≥ 1.
Sections 5.8 – 5.11
Recursive Definitions, Sequences, Algorithms, and Structures
Factorial · Fibonacci · Algorithm Tracing · Structural Recursion

Recursive Definitions

A recursive definition defines an object by specifying a base case (one or more explicitly given values) and a recursive rule (how to compute or construct later values from earlier ones). Recursive definitions appear in mathematics, programming, linguistics, data structures, and logic. They define objects not all at once but step by step, building on what has already been established.

Factorial — A Recursive Definition

0! = 1 (base case) n! = n · (n−1)! for n ≥ 1 (recursive rule)
Example 5.8.1
Computing 5! using the recursive definition
  • ThinkApply the recursive rule until the base case is reached, then unwind from the inside out.
  • Solve 5! = 5 · 4! = 5 · 4 · 3! = 5 · 4 · 3 · 2! = 5 · 4 · 3 · 2 · 1! = 5 · 4 · 3 · 2 · 1 · 0! = 5 · 4 · 3 · 2 · 1 · 1 = 120
  • CheckThe recursion bottoms out at the base case 0! = 1. Multiplications then resolve from the inside out.
Answer: 5! = 120

Powers — A Recursive Definition

a⊃0 = 1 (base case) a⊃n = a · a⊃(n−1) for n ≥ 1 (recursive rule)
Student Warning

Recursive definitions always require both a base case and a recursive rule. Without the base case, the recursion has no stopping point. Without the recursive rule, the definition is incomplete. Never omit either component.

Recursive Sequences

A recursive sequence is a sequence in which each term is defined in terms of one or more previous terms. The recursive rule is often called a recurrence relation. To compute terms of a recursive sequence, you must start at the base case and work forward; you cannot skip ahead without computing all intermediate values because each term depends on prior ones.

The Fibonacci Sequence

F⊂1; = 1, F⊂2; = 1, F⊂n; = F⊂(n−1); + F⊂(n−2); for n ≥ 3

First several terms: 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, … Each term is the sum of the two before it. The Fibonacci sequence appears in nature, art, computer science, and combinatorics. Because it requires two prior terms, strong induction (Section 5.7) is the natural tool for proving properties about it.

Example 5.9.1
Computing terms of a recurrence
  • ProblemLet a⊂1; = 2 and a⊂n; = 3a⊂(n−1); − 1 for all n ≥ 2. Compute a⊂1; through a⊂5;.
  • Solve a⊂1; = 2 a⊂2; = 3(2) − 1 = 5 a⊂3; = 3(5) − 1 = 14 a⊂4; = 3(14) − 1 = 41 a⊂5; = 3(41) − 1 = 122
Answer: 2, 5, 14, 41, 122
Example 5.9.2
Verifying a proposed closed form
  • ProblemThe sequence above has proposed closed form a⊂n; = (3⊃n + 1)/2. Verify for n = 1, 2, 3.
  • Solve n=1: (3⊃1 + 1)/2 = 4/2 = 2 = a⊂1; ✓ n=2: (3⊃2 + 1)/2 = 10/2 = 5 = a⊂2; ✓ n=3: (3⊃3 + 1)/2 = 28/2 = 14 = a⊂3; ✓
  • NoteVerification of three cases supports the formula but does not prove it. A complete proof by induction is left as an exercise.
Answer: The proposed closed form matches all three checked terms.

Recursion in Algorithms

Recursive thinking is fundamental to algorithm design. A recursive algorithm calls itself on a smaller input. To avoid infinite loops, every recursive algorithm must have one or more base cases that are solved directly, and one or more recursive cases that reduce the problem toward the base case. The proof that a recursive algorithm terminates is itself an induction argument: identify a quantity that strictly decreases with each call and cannot decrease below the base case.

Example 5.10.1
Recursive factorial algorithm — pseudocode and trace
  • Algorithm Algorithm Factorial(n): Input: A non-negative integer n Output: The value n! if n = 0 then return 1 ← base case else return n × Factorial(n − 1) ← recursive case
  • TraceRunning Factorial(4) — see table below.
CallnReturns
Factorial(4)44 × Factorial(3)
Factorial(3)33 × Factorial(2)
Factorial(2)22 × Factorial(1)
Factorial(1)11 × Factorial(0)
Factorial(0)01  (base case)
Resolving outward: Factorial(1)=1, Factorial(2)=2, Factorial(3)=6, Factorial(4)=24
Answer: Factorial(4) = 24 = 4!
The Waiting Chain

Each recursive call waits for the smaller call to finish before it can complete. Calls chain inward to the base case, then results unwind outward to the original call. This is the universal pattern of recursive algorithm execution.

Structural Recursion as an Introduction

Mathematical recursion extends beyond sequences and numbers. It also applies to structures: trees, lists, expressions, and other objects that are built from smaller instances of themselves. This idea is called structural recursion.

A list of numbers is either the empty list (base case), or a number followed by another list (recursive case). An arithmetic expression is either a single number (base case), or two expressions joined by an operation such as +, −, ×, or ÷ (recursive case). The expression (3 + 4) × (7 − 2) is built by combining (3 + 4) and (7 − 2) using ×. Each piece is itself an expression built from smaller pieces, eventually reaching individual numbers.

Compilers and interpreters for programming languages use structural recursion to parse, evaluate, and transform programs. Every time code is compiled, recursive structure processing happens behind the scenes. Properties of these structures are proved by structural induction, which follows the same two-step pattern as ordinary induction.

MGU Library Connection
  • Structural recursion and recursive data structures appear in the MGU Computer Science sequence, including data structures (trees, linked lists, grammars) and compilers.
  • The mathematical foundations introduced here carry directly into those topics.
  • See also: Chapter 10 (Graph Theory Foundations) and Chapter 11 (Trees and Network Optimization) for recursive tree structures and proof.
Practice 5.8–5.11Recursion and Algorithms
  1. Write a recursive definition for the sequence a⊂n; = 2n for n ≥ 1.
  2. Define c⊂1; = 1, c⊂n; = c⊂(n−1); + 2 for n ≥ 2. Compute c⊂1; through c⊂6;. Propose a closed form and verify it for n = 1, 2, 3.
  3. Write a recursive algorithm for computing 1⊃2 + 2⊃2 + ··· + n⊃2 for a positive integer n. Trace the algorithm for n = 4.
  4. A recursive algorithm Mystery(n) is defined as: if n = 0, return 0; else return n + Mystery(n−1). (a) Trace Mystery(5). (b) What does Mystery(n) compute? (c) Prove your answer using induction.
  5. Explain in your own words why a recursive algorithm that never reaches a base case will run forever. What structural property guarantees termination?
Sections 5.12 – 5.13
Induction in Sums, Divisibility, and Inequalities — and Common Mistakes
Sum of Squares · Inequality Proof · Divisibility Proof · Six Common Errors

Induction in Sums, Patterns, and Divisibility

This section presents three complete induction proofs across three important categories. Each example illustrates the full six-step structure applied to a different type of claim. Study each proof as a model before attempting the exercises.

Summation Formulas

Complete Proof — Example 5.12.1
Sum of squares formula
Claim For every positive integer n: 1² + 2² + 3² + ··· + n² = n(n+1)(2n+1)/6
Base Case (n = 1) Left side: 1² = 1. Right side: 1·2·3/6 = 1. ✓
Inductive Hypothesis Assume for some integer k ≥ 1: 1² + 2² + ··· + k² = k(k+1)(2k+1)/6
Inductive Step We must show the formula holds for k+1: 1² + 2² + ··· + k² + (k+1)² = k(k+1)(2k+1)/6 + (k+1)² ← inductive hypothesis = (k+1)[k(2k+1)/6 + (k+1)] = (k+1)[k(2k+1) + 6(k+1)] / 6 = (k+1)[2k² + k + 6k + 6] / 6 = (k+1)[2k² + 7k + 6] / 6 = (k+1)(k+2)(2k+3) / 6 ✓
Conclusion By mathematical induction, the sum-of-squares formula holds for all positive integers n.
■

Inequalities

Complete Proof — Example 5.12.2
Proving an inequality by induction
Claim For every integer n ≥ 1: 2⊃n ≥ n + 1.
Base Case (n = 1) 2⊃1 = 2 ≥ 1 + 1 = 2. True (equality holds). ✓
Inductive Hypothesis Assume 2⊃k ≥ k + 1 for some integer k ≥ 1.
Inductive Step We must show 2⊃(k+1) ≥ k + 2. 2⊃(k+1) = 2 · 2⊃k ≥ 2(k + 1) ← inductive hypothesis = 2k + 2 ≥ k + 2 ← since k ≥ 1 implies k ≥ 0 ✓
Conclusion By mathematical induction, 2⊃n ≥ n + 1 for all integers n ≥ 1.
■

Divisibility

Complete Proof — Example 5.12.3
Divisibility claim by induction
Claim For every integer n ≥ 1: 5 | (6⊃n − 1). That is, 6⊃n − 1 is divisible by 5.
Base Case (n = 1) 6⊃1 − 1 = 5 = 5 · 1. Divisible by 5. ✓
Inductive Hypothesis Assume 5 | (6⊃k − 1) for some k ≥ 1. Write 6⊃k − 1 = 5m for some integer m, so 6⊃k = 5m + 1.
Inductive Step We must show 5 | (6⊃(k+1) − 1). 6⊃(k+1) − 1 = 6 · 6⊃k − 1 = 6(5m + 1) − 1 ← substituting 6⊃k = 5m + 1 = 30m + 6 − 1 = 30m + 5 = 5(6m + 1) ✓ (6m+1 is an integer)
Conclusion By mathematical induction, 5 | (6⊃n − 1) for all integers n ≥ 1.
■

Common Induction and Recursion Mistakes

Mistake 1 — Omitting the Base Case
"The base case is obvious — I'll skip straight to the inductive step."
Always verify the base case directly. Substitute the starting value and check the claim explicitly. A proof missing the base case is formally invalid, even if the inductive step is entirely correct.
Mistake 2 — Proving the Wrong Statement
Writing out P(k) again in the inductive step instead of P(k+1).
Before beginning the inductive step, write out in full exactly what P(k+1) says. Keep this target statement visible as you work.
Mistake 3 — Circular Reasoning
Using the statement P(k+1) in the middle of proving P(k+1).
The inductive step allows you to assume P(k), not P(k+1). If you find yourself using the conclusion you are trying to prove, stop and reconsider your approach entirely.
Mistake 4 — Not Using the Inductive Hypothesis
Completing the inductive step without referencing P(k) anywhere.
Check that the inductive hypothesis appears somewhere in your reasoning. Without it, the argument has not connected P(k) to P(k+1) and is missing its essential link.
Mistake 5 — Missing Base Cases in Strong Induction
Checking only n = 1 for a recurrence that depends on two prior terms.
When the recursive rule reaches back two steps (like Fibonacci), verify both n = 1 and n = 2. Match the number of base cases to the depth of the recurrence.
Mistake 6 — Infinite Recursion
A recursive definition or algorithm has no path to the base case.
Before finalizing any recursive algorithm, ask: what is the base case, and does every recursive call make the problem strictly smaller (closer to the base case)?

A Famous Fallacy: All Horses Are the Same Color

A well-known faulty argument claims to “prove” that all horses are the same color using induction. The base case is valid (a set of 1 horse trivially has all horses the same color), and the inductive step sounds plausible: remove one horse from a group of k+1, the remaining k share a color by hypothesis, put that horse back and remove a different one — the remaining k again share a color, so all k+1 horses share a color.

The error appears precisely at k = 1 (the step from n = 1 to n = 2). When k = 1, removing one horse and then a different horse gives two disjoint single-horse sets with no overlap. The two horses are never in the same group of k, so the inductive hypothesis cannot link their colors. The argument only works when k ≥ 2, because only then do the two overlapping groups share at least one horse in common.

This puzzle shows that an argument can sound like induction, have a valid base case, and a plausible inductive step — and still be wrong. The inductive step must be checked carefully, especially at small values of k. Never wave your hand at the inductive step and assume it works.

Preparing for Counting and Combinatorics

Mathematical induction will reappear throughout this textbook. In Chapter 6, it will be used to prove divisibility results in number theory. In Chapters 7, 8, and 9, it will appear in proofs of combinatorial identities and counting formulas. In Chapter 11, it will appear in proofs about trees and graphs. In Chapter 12, it will appear in the analysis of recursive algorithms.

Recursion is equally pervasive. Recursive sequences, recursive algorithms, recursive data structures, and recursive definitions of grammars and languages are central topics in computer science and discrete mathematics.

The connection between induction and recursion is fundamental. Induction proves properties of recursively defined objects. Recursion defines the objects that induction proves things about. As you move into counting and combinatorics in Part III, watch for induction in the background: it underlies many of the formulas you will use, and understanding why those formulas are true — not just how to use them — depends on exactly the proof techniques practiced in this chapter.

MGU Library Connection — Bridge to Computer Science and Higher Mathematics
  • Algorithm correctness: nearly every correctness proof for a recursive algorithm is an induction proof on the structure of inputs.
  • Termination proofs: the well-ordering principle applied to a strictly decreasing measure on recursive calls.
  • Recursive data structures: trees, linked lists, and grammars — all defined structurally, all proved inductively.
  • Asymptotic analysis: Chapter 12 introduces recurrences for divide-and-conquer algorithms; solving and verifying them uses induction directly.
  • Cryptography: properties of prime numbers and modular arithmetic established in Chapter 6 rely on inductive arguments.
  • Artificial intelligence foundations: recursive grammars, tree-structured data, and probabilistic graphical models all rest on recursive definitions proved by induction.

Chapter Summary

Key Terms Review

base case
The starting value at which the claim P(n) is verified directly, establishing the foundation of an induction proof.
closed form
A formula that computes the n-th term of a sequence directly, without requiring prior terms to be computed first.
domino argument
An analogy for induction: if the first domino falls and each falling domino knocks the next, every domino eventually falls.
Fibonacci sequence
The recursive sequence F⊂1;=1, F⊂2;=1, F⊂n;=F⊂(n−1);+F⊂(n−2);, appearing widely in mathematics, nature, and computing.
inductive hypothesis
The assumption that P(k) holds for a fixed but arbitrary k, used as a tool to prove P(k+1) in the inductive step.
inductive step
The part of an induction proof in which P(k+1) is derived from the inductive hypothesis P(k).
mathematical induction
A proof method for claims of the form “for all n ≥ n⊂0;, P(n) holds,” consisting of a base case and an inductive step.
recurrence relation
A rule that defines each term of a sequence in terms of one or more earlier terms.
recursion
Defining or computing something by referring to smaller instances of the same object or process.
recursive definition
A definition consisting of one or more base cases and a recursive rule that builds later objects from earlier ones.
recursive sequence
A sequence in which each term is defined by a recurrence relation applied to one or more prior terms.
structural recursion
Recursive definitions and proofs that operate on the structure of an object such as a list or expression tree, rather than on an integer index.
strong induction
A form of induction in which the inductive hypothesis assumes the claim for all prior values, not just the immediately preceding one.
well-ordering principle
Every non-empty set of non-negative integers has a smallest element; this principle underlies the validity of mathematical induction.

Concept Review Questions

  1. What are the three components of a proof by mathematical induction? What role does each play?
  2. Why is it not sufficient to verify a claim for a large number of specific cases in order to prove it for all whole numbers?
  3. Explain, in your own words, why the domino analogy is a useful model for mathematical induction.
  4. What is the difference between ordinary induction and strong induction? When is strong induction the more natural choice?
  5. What are the two required components of a recursive definition? What happens if either is missing?
  6. How does a recursive algorithm differ from a non-recursive algorithm? What condition prevents a recursive algorithm from running forever?
  7. What is a closed form for a recursive sequence? Why might a closed form be preferable to the recurrence relation?
  8. Explain the relationship between induction and recursion. How do they complement each other?
  9. What error makes the “all horses are the same color” argument fail? Why is the inductive step invalid at exactly k = 1?
Practice Set AInduction Proof Practice
  1. Prove by induction: For all positive integers n, 1 + 2 + 3 + ··· + n = n(n+1)/2.
  2. Prove by induction: For all integers n ≥ 1, 1³ + 2³ + ··· + n³ = [n(n+1)/2]².
  3. Prove by induction: For all integers n ≥ 0, 4 | (5⊃n − 1).
  4. Prove by induction: For all integers n ≥ 1, 3 | (n³ − n).
  5. Prove by induction: For all integers n ≥ 1, 2⊃n < (n+1)!.
  6. Prove by induction: For all integers n ≥ 1, 1 + 2 + 4 + ··· + 2⊃(n−1) = 2⊃n − 1.
  7. Prove by induction: For all integers n ≥ 4, n! > 2⊃n.

Answers may be placed in the answer key.

Practice Set BStrong Induction Practice
  1. Let a⊂1; = 1, a⊂2; = 2, and a⊂n; = a⊂(n−1); + a⊂(n−2); for n ≥ 3. Prove by strong induction that a⊂n; ≤ 2⊃n for all n ≥ 1.
  2. Let b⊂1; = 1, b⊂2; = 3, and b⊂n; = 2b⊂(n−1); + b⊂(n−2); for n ≥ 3. Compute b⊂3;, b⊂4;, b⊂5;. Then prove by strong induction that b⊂n; ≤ 5⊃n for all n ≥ 1.
  3. Suppose P(1) and P(2) are both true, and that for all k ≥ 2, P(k−1) and P(k) together imply P(k+1). Explain why P(n) holds for all positive integers n.

Answers may be placed in the answer key.

Practice Set CRecursive Definitions and Sequences
  1. Write a recursive definition for the sequence a⊂n; = 2n for n ≥ 1.
  2. Write a recursive definition for the sequence a⊂n; = n². (Hint: use the identity (n+1)² = n² + 2n + 1.)
  3. Define c⊂1; = 1, c⊂n; = c⊂(n−1); + 2 for n ≥ 2. Compute c⊂1; through c⊂6;. Propose a closed form and verify it for n = 1, 2, 3.
  4. Define d⊂1; = 3, d⊂n; = 2d⊂(n−1); + 1 for n ≥ 2. Compute d⊂1; through d⊂5;. Propose a closed form.
  5. Write a recursive definition for a⊃n for positive integers n and any real number a. What is the base case?

Answers may be placed in the answer key.

Practice Set DRecursive Algorithm Practice
  1. Write a recursive algorithm for computing 1 + 2 + 3 + ··· + n for a positive integer n. Trace the algorithm for n = 5.
  2. Write a recursive algorithm for computing 2⊃n for a non-negative integer n using only multiplication by 2. Trace for n = 4.
  3. A recursive algorithm Mystery(n) is defined as: if n = 0, return 0; else return n + Mystery(n−1). (a) Trace Mystery(5). (b) What does Mystery(n) compute? (c) Prove your answer using induction.

Answers may be placed in the answer key.

Practice Set EApplications
  1. Handshake Problem. In a room with n people, each person shakes hands with every other person exactly once. The total number of handshakes is n(n−1)/2. Prove this formula by induction.
  2. Tower of Hanoi. The Tower of Hanoi puzzle uses three pegs and n disks of different sizes. The minimum number of moves to transfer all n disks is 2⊃n − 1. Prove this by induction. (Hint: to move n disks, first move n−1 disks to a spare peg, move the largest disk, then move the n−1 disks back.)
  3. Geometric Sum. For any real number r ≠ 1 and positive integer n, prove by induction: 1 + r + r² + ··· + r⊃n = (r⊃(n+1) − 1)/(r − 1).
  4. Binary Strings. The number of binary strings of length n is 2⊃n. Write a recursive definition for the collection of binary strings of length n, and prove by induction that the count is 2⊃n.

Answers may be placed in the answer key.

Error Analysis

For each of the following induction arguments, identify and explain the error.

Problem 1

Claim: For all integers n ≥ 1, 2n = 0. A student attempts to write a base case but it immediately fails. What does a correct base-case check reveal about this claim?

Explain why this claim cannot be proved by induction — and why the base case is the correct first line of defense.

Problem 2

Claim: For all integers n ≥ 1, n² + n + 41 is prime. A student checks n = 1, 2, 3, 4, 5 and concludes: “We have verified enough cases; the claim holds for all n.”

What is wrong with this reasoning? What happens at n = 40?

Problem 3

Flawed inductive step: “Assume the sum of the first k integers is k(k+1)/2. Then the sum of the first k+1 integers is (k+1)(k+2)/2. Done.”

What is wrong? The student has stated what they needed to prove rather than deriving it from the hypothesis.

Problem 4

Claim: For all integers n ≥ 2, n² ≥ 2n. A student writes: “Base case (n = 1): 1² = 1 ≥ 2(1) = 2. True.” They proceed to the inductive step.

Is the base case correct? What is the actual error here?

Problem 5 — The All-Horses Fallacy
"All n horses in any group are the same color" (for all n ≥ 1).
The inductive step fails at k = 1. Removing one horse and then a different horse from a group of two gives two disjoint single-horse sets with no common member. The hypothesis cannot link their colors. Always check the inductive step at small values of k.

Chapter 5 Checkpoint

Chapter 5 Checkpoint
Complete without assistance — assesses all key skills and concepts from Chapter 5
Section 1 — Vocabulary and Concepts
  1. State the three components of a proof by mathematical induction and explain the role of each.
  2. What distinguishes ordinary induction from strong induction? Give an example of a situation that requires strong induction.
  3. A recursive definition must include two components. Name them and explain what happens if either is missing.
Section 2 — Complete Induction Proofs
  1. Let P(n) be: “For all integers n ≥ 1, (3·1−2) + (3·2−2) + ··· + (3n−2) = n(3n−1)/2.” (a) Verify P(1). (b) Write the inductive hypothesis. (c) Carry out the inductive step. (d) State the conclusion.
  2. Prove by induction: For all integers n ≥ 1, 5 | (n&sup5; − n).
  3. Prove by induction: For all integers n ≥ 1, 2⊃n ≥ n + 1.
Section 3 — Recursive Sequences
  1. Let a⊂1; = 5 and a⊂n; = a⊂(n−1); + 3 for n ≥ 2. (a) Compute a⊂1; through a⊂5;. (b) Propose a closed form. (c) Prove your closed form by induction.
Section 4 — Algorithm Tracing
  1. Write a recursive algorithm for computing 1² + 2² + 3² + ··· + n² for a positive integer n. Trace the algorithm for n = 3, showing each call and return value in a table.
Section 5 — Error Analysis
  1. A student claims: “To prove a statement for all integers n ≥ 1 by induction, I only need the base case and the inductive hypothesis. The inductive step follows automatically.” Is this correct? Explain why or why not.
  2. A student is asked to prove: “For all integers n ≥ 2, n² ≥ 2n.” They write the base case as n = 1 and verify 1 ≥ 2. They then proceed to the inductive step. What is wrong?
Looking Ahead
Chapter 6: Integers, Divisibility, and Modular Arithmetic

Chapter 5 gave you the proof method for infinite families of claims about whole numbers. Chapter 6 will apply this power immediately to integer structure: divisibility, prime numbers, greatest common divisors, the Euclidean algorithm, congruence, and modular arithmetic. Induction will appear in several proofs, and the recursive structure of the Euclidean algorithm will mirror the recursive definitions introduced in this chapter. Chapter 6 builds the number-theoretic foundation for later topics in cryptography, hashing, error detection, and algorithms.

MGU Library Connections
  • Proof Strategy Guide — Appendix F of this textbook
  • Induction Template Reference — Appendix G of this textbook
  • Recurrence Relations Reference — Appendix K of this textbook
  • Pseudocode Style Guide — Appendix P of this textbook
  • Chapter 4 (Methods of Proof) — foundation for this chapter's proof writing
  • Chapter 6 (Integers, Divisibility, and Modular Arithmetic) — immediate application of induction
  • Chapter 9 (Advanced Counting) — recurrence relations and solving techniques
  • Chapter 12 (Algorithms and Complexity) — recursive algorithms and their runtime analysis
  • MGU Computer Science sequence — data structures, compilers, formal languages