Module 09: Weak Induction Proofs

Sequences

A sequence is an ordered list of numbers, often formed by a recognizable pattern. This pattern can typically be described by a formula. For instance, consider a sequence defined as a_n = 2n2+1 for n > 0. That formula describes a pattern like 3, 9, 19, 33, 51, and so on, where a1 = 3, a2 = 9, a3 = 19 and so on.

A sequence can also be defined recursively in terms of its own previous values. A well-known example is the Fibonacci sequence, defined as F0 = 0, F1 = 1 and Fn = Fn-1 + Fn-2 for all n ≥ 2. In this sequence, each term is calculated as the sum of the two preceding terms, giving: 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89...

Summation

When we want to find the total sum of a group of terms in a sequence, we use summation notation, symbolized by the Greek letter sigma Σ. This allows us to express the sum of terms starting from an index m and ending at n, where m ≤ n. A summation that has m > n is called n empty summation and does not have any elements.The variable k often serves as the index, taking on each integer value from m to n, applying the formula for each value, and adding the results together.

So we have that the sum of all elements in a sequence am, am+1, am+2, ...., an-1, an is given by \(\sum\limits_{k=m}^n a_k\).

\(\sum\limits_{i=1}^{5} (2i + 1)\) = (2·1 + 1) + (2·2 + 1) + (2·3 + 1) + (2·4 + 1) + (2·5 + 1) = 3 + 5 + 7 + 9 + 11 = 35

\(\sum\limits_{i=2}^{6} 2i\) = (2·2) + (2·3) + (2·4) + (2·5) + (2·6)= 4 + 6 + 8 + 10 + 12 = 40

Think of how this relates to, for example, a universal quantifier. ∀x ∈ D, P(x) is like a collection of statements about each element in the set D connected together by ⋀: P(d1) ⋀ P(d2) ⋀ ... ⋀ P(dn). A summation using Σ works similarly except that (1) it defines the set as a range of integer values from a low element (m above) to a high element (n above) and (2) it connects the body of the summation together with addition (+) rather than logical AND.

Product

Similarly, when multiplying the terms of a sequence instead of adding them, we use the product notation, represented by the Greek letter pi Π. As with summation, the index k moves from the starting point to the end point, but now the values are multiplied together instead of summed.

So we have that the product of all elements in a sequence am, am+1, am+2, ...., an-1, an is given by \(\prod\limits_{k=m}^n a_k\).

\(\prod\limits_{i=1}^{5} (2i + 1)\) = (2·1 + 1) · (2·2 + 1) · (2·3 + 1) · (2·4 + 1) · (2·5 + 1) = 3 · 5 · 7 · 9 · 11 = 10395

\(\prod\limits_{i=2}^{6} 2i\) = (2·2) · (2·3) · (2·4) · (2·5) · (2·6)= 4 · 6 · 8 · 10 · 12 = 23040

Last Term of Summation and Product

When working with either a summation or a product, it's sometimes useful to isolate the last term. This is done by reducing the upper limit of the summation or product by one and then explicitly including the final term outside of the notation. For example, if a summation goes from k=0 to 6, the term at k=6 can be written separately, and the summation can instead go up to k=5.

\(\sum\limits_{k=m}^n a_k = a_n + \sum\limits_{k=m}^{n-1} a_k\)                                 \(\prod\limits_{k=m}^n a_k = a_n \cdot \prod\limits_{k=m}^{n-1} a_k\)

For example, \(\sum\limits_{i=2}^{6} 2i\) has the last term⁣, 2 · 6 = 12 so we can write this summation as 12 + \(\sum\limits_{i=2}^{5} 2i\), making the maximum value of k 5, instead of 6.


Mathematical Induction

Mathematical induction is a logical technique used to prove that a statement P(n) is true for all positive integers. It begins with verifying the statement for the smallest valid number, known as the base case. Then, assuming the statement holds for an arbitrary number n, the goal is to show it must also hold for the next consecutive number, n+1 (also known as weak induction). If both steps are successful, the truth of the statement for all such values follows, much like a line of dominos falling one after another once the first has been pushed.

Proving ∀n ∈ ℤ+, P(n):
    1. Prove P(n=1) is true
    2. Prove ∀n ∈ ℤ+, P(n) → P(n+1):
        2a. Assume P(n) is true
        2b. Prove P(n+1) is true

The core idea of mathematical induction is similar to a domino effect. By proving that the first statement, P(1), is true, we effectively push the first domino. Then, we assume that if one statement, P(n), is true, the next one, P(n+1), must also be true, ensuring the entire chain continues to fall. Importantly, we are not directly proving P(n) in the inductive step, but rather showing that P(n) → P(n+1). What matters is that we are always proving the next consecutive case based on the one we assumed. Attempting to assume P(n+1) and prove P(n) would break the logic of induction.

Going back to our domino analogy: if you push one domino, the ones before it won't fall. Induction only works when the forward chain of implication is maintained. Consider what happens when we push domino 1 over, i.e., P(1) is true. Since we know ∀n ∈ ℤ+, P(n) → P(n+1), we know by our rule Universal Instantiation that P(1) → P(1+1). So, the second domino P(2) must also "fall". Then, universal instantiation also gives us P(2) → P(3), causing the third to fall, and so on.

There are two common approaches to induction, both of which are logically equivalent and usually yield similar proofs. However, depending on the problem, one method might be more convenient than the other. We might assume P(n) and prove P(n+1), or assume P(n-1) and prove P(n). In both cases, the base case remains the same; it must be the smallest value in the domain of the problem.

Base Case

In the base case, the variable n is replaced with the smallest value for which the statement should hold, similar to an existential proof. This part of the proof establishes that the statement is true at the starting point.

Induction Hypothesis (IH)

Now, we want to prove ∀n ∈ ℤ+, P(n) → P(n+1). The hypothesis is the part of the proof when we assume the left-hand side of the implication in a universal proof, as we saw in Module 7. In this part, we begin by restating the statement we aim to prove and assume it to be true for a specific case. At first, this may seem counterintuitive, almost as if we're assuming the conclusion in order to prove it. However, what we're actually doing is assuming that P(n) holds for a particular value (usually the previous one in the sequence), not for all values. This assumption forms the basis of the inductive step, allowing us to show that if P(n) is true, then P(n+1) must also be true.

Induction Step (IS)

The induction step uses the assumption that the statement holds for n to prove that it also holds for n+1. This step typically involves substituting the hypothesis into the equation and showing that it logically leads to the next case being true as well. Once this is shown, the conclusion is that the statement holds for all positive integers starting from the base case.

\(\sum\limits_{i=1}^n i = \frac{n(n+1)}{2}\), for any integer n > 0.

Proof:

Base Case: We show that P(n=1) is true
\(\sum\limits_{i=1}^{1} i = 1\)         and         \(\frac{n(n+1)}{2} = \frac{1(1+1)}{2} = \frac{2}{2} = 1\)

Induction Hypothesis:
Assume \(\sum\limits_{i=1}^n i = \frac{n(n+1)}{2}\)

Induction Step:
Consider an unspecified integer n ≥ 1
\(\sum\limits_{i=1}^{n+1} i = (n+1) + \sum\limits_{i=1}^n i\)
\(~~~~~ = (n+1) + \frac{n(n+1)}{2}\)
\(~~~~~ = \frac{2(n+1)}{2} + \frac{n(n+1)}{2}\)
\(~~~~~ = \frac{2(n+1) + n(n+1)}{2}\)
\(~~~~~ = \frac{(n+2)(n+1)}{2}\)
\(~~~~~ = \frac{(n+1)(n+2)}{2}\)

Therefore, by mathematical induction, \(\sum\limits_{i=1}^n i = \frac{n(n+1)}{2}\), for any integer n > 0.

Notice that the lower limit of the summation tells us the starting point of the expression. In this case, the sum begins when n=1. This doesn't mean the first term is equal to 1, but it does mean we evaluate the expression by plugging in n=1. So, for the base case, we simply replace n with 1 in both sides of the equation and check that they are equal.

The inductive hypothesis (IH) assumes the statement is true for some particular value of n. Then, using that assumption, we aim to show the statement also holds for n+1.

Since we are using the P(n) → P(n+1) approach, our inductive step (IS) needs to prove the expression for n+1. This means we rewrite the formula, replacing every n with n+1, and this becomes our goal, the result we want to reach.

To get there, we start with the left-hand side of the equation for n+1. We then remove the last term from the sum, so the remaining part matches the form given in our IH. This lets us apply the IH to that part, and we use regular algebra to simplify the rest and reach the final expression.

It's important to highlight that we do not assume the formula we are trying to prove. Instead, we work from the left-hand side, use the IH when allowed, and manipulate the expression step by step until we arrive at the right-hand side.

The same proof can be done using a different hypothesis. We are now proving ∀n ∈ ℤ+, P(n-1) → P(n).

\(\sum\limits_{i=1}^n i = \frac{n(n+1)}{2}\), for any integer n > 0.

Proof:

Base Case: We show that P(n=1) is true
\(\sum\limits_{i=1}^{1} i = 1\)         and         \(\frac{n(n+1)}{2} = \frac{1(1+1)}{2} = \frac{2}{2} = 1\)

Induction Hypothesis:
Assume \(\sum\limits_{i=1}^{n-1} i = \frac{(n-1)(n-1+1)}{2} = \frac{(n-1)n}{2}\)

Induction Step:
Consider an unspecified integer n > 1
\(\sum\limits_{i=1}^{n} i = n + \sum\limits_{i=1}^{n-1} i\)
\(~~~~~ = n + \frac{(n-1)n}{2}\)
\(~~~~~ = \frac{2n}{2} + \frac{(n-1)n}{2}\)
\(~~~~~ = \frac{2n + (n-1)n}{2}\)
\(~~~~~ = \frac{n(2+n-1+)}{2}\)
\(~~~~~ = \frac{n(n+1)}{2}\)

Therefore, by mathematical induction, \(\sum\limits_{i=1}^n i = \frac{n(n+1)}{2}\), for any integer n > 0.

This proof is very similar to the previous one. The base case is identical, but now we're using the implication P(n − 1) → P(n) instead of P(n) → P(n+1). This means that in the inductive hypothesis (IH), we assume the formula holds for n − 1.

In the inductive step (IS), we aim to prove the formula for n. So the summation in this step looks exactly the same as in the original problem, no need to shift the index.

While the algebra may look slightly different from the previous version, the main idea is the same: We begin with the left-hand side of the equation, remove the last term from the summation, and then apply the IH to the remaining part. This allows us to use what we've assumed and complete the proof using basic algebraic simplifications.

We need our inductive step to prove the property P for every value except the base case value (or values). If we're proving P(n+1), we need n+1 to be able to take on every value except the base case value. That means we need n + 1 > 1, since the base case here is 1. If we subtract one from both sides of that inequality, we get n > 0 or equivalently, as we wrote it above, n ≥ 1. What if we wanted to prove P(n) based on P(n-1) instead? Well, then we need n rather than n+1 to take on every value except the base case values. So, we need n > 1. Notice how the change in bounds is entirely driven by where we're proving property P.


Recursion

The logic of induction also provides a foundation for writing recursive algorithms. In such algorithms, the base case stops the recursion, while the step that reduces the problem toward the base mimics the induction step. For example, the proof shown here before can help us to create a recursive algorithm to calculate that summation:

def P(n):
    if n=1:
        return 1
    else: 
        return P(n-1)+n

It is important to ensure that both the proof and the corresponding recursive algorithm account for each number in the sequence exactly once. In this case, we adopt the form P(n − 1) → P(n), and we are proving the statement for P(n). In this case, our base case is typically n=1, which becomes the stopping point of the recursion. All other values are handled through recursive calls, corresponding to the induction step. In the recursive code, this logic appears in the condition: the else branch only executes when n > 1, not when n ≥ 1.

To illustrate this, consider computing the value of P(3):

 

For every positive integer n, n(n + 1) is even.
Hint: the sum of two even numbers is even.

Proof:

Base Case:
For n=1: 1(1+1) = 2 which is even

Induction Hypothesis:
Assume (n-1)n is even

Induction Step:
Consider an unspecified integer n > 1
n(n+1) = n(n-1+2) = n(n-1) + 2n
By IH, n(n-1) is even
By the definition of even, 2n is even
By the hint, n(n-1) + 2n is even
Therefore n(n+1) is even

Therefore, by mathematical induction, n(n+1) is even for any integer n > 0.

This problem can also be solved using a direct proof. Most statements in mathematics can be proven in more than one way, and in some cases, a particular method makes the proof simpler or more elegant. It's worth noting that induction can sometimes reveal a recursive structure, which may be useful in algorithmic contexts, so in those cases, it may be preferred over a direct proof.

In this problem, we want to prove that the product of two consecutive integers is always even. That is, we want to prove that n(n + 1) is even for all integers n. In our previous example, we explicitly stated what P(n) was. Doing so can make it easier to understand what your job is in an inductive proof. We didn't do that above, and you'll see proofs that don't. However, in your scratch work, you can and usually should write out the property you're trying to prove P(n). What is it here? P(n) ≡ n(n+1) is even}. Now that we've written that out, can you tell if this proof is using the P(n) → P(n+1) or P(n-1) → P(n) form?

We're also given a helpful hint: the sum of two even numbers is even. Hints like this are optional, but often they point toward a cleaner or easier solution. So if, during our proof, we end up with a sum where both parts are even, we can immediately conclude that the whole expression is even, which is exactly our goal.

To make progress, we use algebraic manipulation to connect this expression with something known. One useful approach is to rewrite the product in a way that involves a known even expression: n(n + 1) = n((n - 1) + 2) = n(n - 1) + 2n

The term n(n - 1) is the product of two consecutive integers, just like our original expression, and we can assume (as part of a previous step or inductive hypothesis) that it is even. The term 2n is clearly even, since it's 2 times an integer. Now we have a sum of two even numbers. By the hint, their sum is also even. Therefore, n(n + 1) must be even.

 

For every positive integer n, n(n + 1) is even.
Hint: the sum of two even numbers is even.

Proof:

Base Case:
For n=1: 1(1+1) = 2 which is even

Induction Hypothesis:
Assume n(n+1) is even

Induction Step:
Consider an unspecified integer n ≥ 1
(n+1)(n+2) = n(n+1) + 2(n+1)
By IH, n(n+1) is even
By the definition of even, 2(n+1) is even
By the hint, n(n+1) + 2(n+1) is even
Therefore (n+1)(n+2) is even

Therefore, by mathematical induction, n(n+1) is even for any integer n > 0.

Again, this proof is very similar to the previous one. The base case remains the same. The main difference is that now, in our inductive hypothesis (IH), we assume the statement holds for some value of n, using the exact same expression as in the original problem.

In the inductive step (IS), we aim to prove the statement for n + 1, which means we take the original expression and replace every instance of n with n + 1.

Although the algebraic manipulation may look a little different, the overall strategy is the same: start from the left-hand side of the expression for n + 1, use the IH when possible, and simplify step by step to reach the desired form.


Read More

Epp, Susanna. Discrete Mathematics with Applications.