rmykkänen

notes

The well-ordering property

date

The Well-Ordering Property asserts that every nonempty set of positive integers has a least element. This is obvious, but still has high util in proving theorems.

Mathematical induction

We can prove the principle of mathematical induction, that a set of positive integers containing the number 1 and the number n+1n + 1 whenever it contains nn must be the set of all positive integers, using the well-ordering property.

Proof: Let SS be a set of positive integers containing the number 11 and the number n+1n + 1 whenever it contains nn. First, assume that SS is not the set of all positive integers; ∃n∈Z+(n∉S\exists n \in \mathbb{Z}^+ (n \notin S). By the well-ordering property there is a least positive integer nn which is not in SS. Since n>1n > 1, the integer n−1n - 1 is a positive integer smaller than nn, and hence must be in SS. But since SS contains n−1n - 1, it must also contain n−1+1=nn - 1 + 1 = n, which is a contradiction.

To prove theorems using induction, we must show that:

  • the statement we are trying to prove is true for the smallest positive integer (1)
  • the statement is true for the integer n+1n + 1 if it is true for the integer nn

Let's use this strat to establish a formula for the sum of the terms of a geometric progression.

Def: Given real numbers a,ra, r, the real numbers a,ar,ar2,ar3,..a, ar, ar^2, ar^3, .. are said to form a geometric progression. aa is the initial term, rr is the common ratio.

Ex: The numbers 5,−15,45,−135,..5, -15, 45, -135, .. form a geometric progression with a=5,r=−3a = 5, r = -3.

Summation notation

Summation notation is a common way to denote sums. The following notation represents the sum of the real numbers a1,a2,..,ana_1, a_2, .., a_n:

∑i=1nai=a1+a2+..+an\begin{equation} \sum_{i=1}^{n} a_i = a_1 + a_2 + .. + a_n \end{equation}

You can use the same notation to express geometric progressions:

∑i=0nari=a+ar+ar2+..+arn\begin{equation} \sum_{i=0}^{n} ar^i = a + ar + ar^2 + .. + ar^n \end{equation}

Notable theorem: If a,ra, r are real numbers, then the sum of the terms of a geometric progression is given by:

∑i=0nari=arn+1−ar−1\begin{equation} \sum_{i=0}^{n} ar^i = \frac{ar^{n+1} - a}{r - 1} \end{equation}

Proof: To prove this formula valid, we'll first show that it holds for n=1n = 1. Then, we'll prove that if the formula is valid for a pos int nn, it's valid for n+1n + 1.

Let n=1n = 1. The left side of (3)(3) is a+ara + ar, and the right side is:

ar2−ar−1=a(r2−1)r−1=a(r+1)(r−1)r−1=a(r+1)=a+ar\begin{equation} \frac{ar^2 - a}{r - 1} = \frac{a(r^2 - 1)}{r - 1} = \frac{a(r+1)(r-1)}{r-1} = a(r + 1) = a + ar \end{equation}

Our formula is valid for n=1n = 1, now we assume it's valid for a pos int nn:

a+ar+ar2+..+arn=arn+1−ar−1\begin{equation} a + ar + ar^2 + .. + ar^n = \frac{ar^{n+1}-a}{r-1} \end{equation}

We must show that it holds for n+1n + 1, that:

a+ar+ar2+..+arn+arn+1=arn+2−ar−1\begin{equation} a + ar + ar^2 + .. + ar^n + ar^{n+1} = \frac{ar^{n+2}-a}{r-1} \end{equation}

To show that (6) is valid, we add arn+1ar^{n+1} to both sides of (5), obtaining:

a+ar+ar2+..+arn+arn+1=arn+1−ar−1+arn+1\begin{equation} a + ar + ar^2 + .. + ar^n + ar^{n+1} = \frac{ar^{n+1}-a}{r-1} + ar^{n+1} \end{equation}

The left side of (7) is equivalent to the left side of (6). To show the right sides are equal:

arn+1−ar−1+arn+1=arn+1−ar−1+arn+1(r−1)r−1=arn+1−a+arn+2−arn+1r−1=arn+2−ar−1\begin{align*} \frac{ar^{n+1}-a}{r-1} + ar^{n+1} &= \frac{ar^{n+1}-a}{r-1} + \frac{ar^{n+1}(r-1)}{r-1} \\ &= \frac{ar^{n+1} - a + ar^{n+2} - ar^{n+1}}{r-1} \\ &= \frac{ar^{n+2}-a}{r-1} \end{align*}

Since we've shown that (5) implies (6), we can conclude that (4) holds for all positive integers nn.

A common computer science example of this is that the sum of consecutive nonnegative powers of two is one less than the next power of two; that ∑i=0n2i=2n+1−1\sum_{i=0}^{n} 2^{i} = 2^{n+1} - 1.