maths.freeCombinatorics & Graph Theory › 3. Induction › Proofs by Induction

Proofs by Induction

No discussion of recursion and induction would be complete without some obligatory examples of proofs using induction. We start with the Hello World example.

Proofs by Induction

No discussion of recursion and induction would be complete without some obligatory examples of proofs using induction. We start with the Hello World example.

For our first version of a proof of , we clearly identify the open statement \(S_n\) and describe the proof carefully in terms of \(S_n\). As you develop more experience with writing proofs by induction, this will become less essential, as you'll see in the second version of the proof.

Proof

Let \(n\) be a positive integer, and let \(S_n\) be the open statement \[\begin{aligned}\end{aligned}\] We will prove that \(S_n\) is true for all positive integers by induction. For the basis step, we must prove that \(S_1\) is true. When \(n=1\), the left-hand side of \(S_n\) is just \(1\), while the right-hand side evaluates to \(1(1+1)/2=1\). Therefore, \(S_1\) is true.

Next we assume that for some positive integer \(k\), \(S_k\) is true. That is, we assume \[\begin{aligned}\end{aligned}\] We now seek to prove that \(S_{k+1}\) is true, and begin by considering the left-hand side of \(S_{k+1}\). We notice that \[\begin{aligned}\end{aligned}\] since our inductive hypothesis that \(S_k\) is true gives us the simpler formula for the summation. Now continuing with a bit of algebra, we find \[\begin{aligned}\end{aligned}\] Therefore, \(S_{k+1}\) is true. Since we have shown that \(S_1\) is true and that for every positive integer \(k\), if \(S_k\) is true, then \(S_{k+1}\) is true, we conclude that \(S_n\) is true for all positive integers \(n\) by the .

Before looking at a refined version of this proof, let's take a moment to discuss the key steps in every proof by induction. The first step is the basis step, in which the open statement \(S_1\) is shown to be true. (It's worth noting that there's nothing special about \(1\) here. If we want to prove only that \(S_n\) is true for all integers \(n\geq 5\), then proving that \(S_5\) is true is our basis step.) When proving the basis step, if \(S_n\) is an equation, we do not just write down \(S_1\) and move on. We need to prove that \(S_1\) is true. Notice how in the proof above, we discussed the left-hand side of \(S_1\) and the right-hand side of \(S_1\) and concluded that they were equal.

Now let's take a look at a more refined proof of . From here on, when we give a proof by induction, we'll use this style. As you're getting started with induction proofs, you may find it useful to be more explicit about the steps as we did in the first proof above.

Condensed — the full section is in Keller & Trotter, Applied Combinatorics.

Practice (2)

Try each one on paper first. Reveal the answer to check; verified ones can be opened in the solver for every step.

  1. Suppose that \(t(n)\) is a recursive function defined for \(n\geq 1\) such that \(t(1)=1\) and for \(n\geq 2\), \(t(n)=2t(n-1)+1\). Create a proof that for all \(n\geq 1\), \(t(n) = 2^n - 1\).

  2. Write a couple of sentences explaining why the making the inductive hypothesis is not the same as assuming what we are trying to prove.

Symbols used here

\leq,\ \geq
less/greater than or equal
Inequalities that allow equality; < and > exclude it.
n!
factorial
n × (n−1) × … × 1; the number of orderings of n things. 0! = 1.
\binom{n}{k}
binomial coefficient, "n choose k"
Number of k-element subsets of n things: n!/(k!(n−k)!).
\sum_{k=1}^{n} a_k
summation
Add a_k for k = 1 up to n.
\prod_{k=1}^{n} a_k
product
Multiply a_k for k = 1 up to n.
\emptyset,\ |A|
empty set, cardinality
The set with no elements; the number of elements of A.

Questions people ask

Permutation or combination?

Ask whether order matters. A lock code is a permutation (order matters); a hand of cards is a combination (it does not).

What is a graph in this sense?

Dots (vertices) joined by lines (edges) — not a plot. Road maps, social networks and molecules are graphs; questions like "is there a route" and "how few colours" are graph theory.

Thử đi.

Parts of this page are adapted from Keller & Trotter, Applied Combinatorics (CC BY-SA 4.0). Condensed and re-explained here; errors are ours.

More in Combinatorics & Graph Theory