<<

Mathematical Induction

Part Two

The principle of states that if for some property P(n), we have that

P(0) is true

and

For any natural n, P(n) → P(n + 1)

Then

For any n, P(n) is true.

One Major Catch

0 1 2 3 4 5 6 7 8

One Major Catch

0 1 2 3 4 5 6 7 8

One Major Catch

0 1 2 3 4 5 6 7 8

One Major Catch

0 1 2 3 4 5 6 7 8

One Major Catch

0 1 2 3 4 5 6 7 8

InIn anan inductiveinductive proof,proof, toto proveprove P(5),P(5), wewe cancan onlyonly assumeassume P(4).P(4). WeWe cannotcannot relyrely onon anyany ofof ourour earlierearlier results!results!

Strong Induction

The principle of strong induction states that if for some property P(n), we have that

P(0) is true

and

For any natural number n, if P(n') is true for all n' ≤ n, then P(n + 1) is true

then

For any natural number n, P(n) is true.

The principle of strong induction states that if for some property P(n), we have that

Assume that P(n) P(0) is true holds for n and all smaller n. and

For any natural number n, if P(n') is true for all n' ≤ n, then P(n + 1) is true

then

For any natural number n, P(n) is true.

Using Strong Induction

0 1 2 3 4 5 6 7 8

Using Strong Induction

0 1 2 3 4 5 6 7 8

Using Strong Induction

0 1 2 3 4 5 6 7 8

Using Strong Induction

0 1 2 3 4 5 6 7 8

Using Strong Induction

0 1 2 3 4 5 6 7 8

Using Strong Induction

0 1 2 3 4 5 6 7 8

Induction and Dominoes

Strong Induction and Dominoes

Weak and Strong Induction

● Weak induction (regular induction) is good for showing that some property holds by incrementally adding in one new piece. ● Strong induction is good for showing that some property holds by breaking a large structure down into multiple small pieces.

Proof by Strong Induction

● State that you are attempting to prove something by strong induction.

● State what your choice of P(n) is.

● Prove the base case:

● State what P(0) is, then prove it. ● Prove the inductive step:

● State that you assume for all 0 ≤ n' ≤ n, that P(n') is true.

● State what P(n + 1) is. (this is what you're trying to prove)

● Go prove P(n + 1).

Application: Binary

Binary Numbers

● The system is base 2.

● Every number is represented as 1s and 0s encoding various powers of two.

● Examples:

2 1 0 ● 1002 = 1 × 2 + 0 × 2 + 0 × 2 = 4 4 3 2 1 0 ● 110112 = 1 × 2 + 1 × 2 + 0 × 2 + 1 × 2 + 1 × 2 = 27 ● Enormously useful in computing; all do computation on binary numbers.

● Question: How do we know that every natural number can be written in binary?

Justifying Binary Numbers

● To justify the binary representation, we will prove the following result: Every natural number n can be expressed as the sum of distinct powers of two. ● This says that there's at least one way to write a number in binary; we'd need a separate proof to show that there's exactly one way to do it. ● So how do we prove this?

One Proof Idea

27

One Proof Idea

11

16

One Proof Idea

3

16 8

One Proof Idea

1

16 8 2

One Proof Idea

0

16 8 2 1

General Idea

● Repeatedly subtract out the largest less than the number. ● Can't subtract 2n twice for any n; otherwise, you could have subtracted 2n+1. ● , we reach 0; the number is then the sum of the powers of two that we subtracted. ● How do we formalize this as a proof?

Theorem: Every natural number can be written as the sum of distinct powers of two. Proof: By strong induction. Let P(n) be “n can be written as the sum of distinct powers of two.” We prove that P(n) is true for all n. As our base case, we prove P(0), that 0 can be written as the sum of distinct powers of two. Since the empty sum of no powers of two is equal to 0, P(0) holds. For the inductive step, assume that for some n, for all n' satisfying 0 ≤ n' ≤ n, that P(n') holds and n' can be written as the sum of distinct powers of two. We prove P(n + 1), that n + 1 can be written as the sum of distinct powers of two. Consider the largest power of 2 less than or equal to n + 1; let it be 2k. Then consider the number n + 1 – 2k. Since 2k ≥ 1 for any natural number k, we know that n + 1 – 2k ≤ n + 1 – 1 = n. Thus, by our inductive hypothesis, n + 1 – 2k can be written as the sum of distinct powers of two; let S be the of these powers of two. This means that n + 1 is equal to 2k plus the sum of the powers of two in S. We now need to show that these powers of two are all distinct. We know by the inductive hypothesis that all of the powers of two in S are distinct, so the only way that a power of two would be repeated would be if 2k ∈ S. We show that this is impossible by contradiction; assume that 2k ∈ S. Since 2k ∈ S and the sum of the powers of two in S is n + 1 – 2k, this means that 2k ≤ n + 1 – 2k. This means that 2(2k) ≤ n + 1, so 2k + 1 ≤ n + 1, contradicting the fact that 2k is the largest power of two less than or equal to n + 1. We have reached a contradiction, so our assumption was wrong and 2k ∉ S. We have shown that n + 1 can be expressed as a sum of distinct powers of two, so P(n + 1) holds, completing the induction. ■ : Every natural number can be written as the sum of distinct powers of two. Proof: By strong induction. Let P(n) be “n can be written as the sum of distinct powers of two.” We prove that P(n) is true for all n. As our base case, we prove P(0), that 0 can be written as the sum of distinct powers of two. Since the empty sum of no powers of two is equal to 0, P(0) holds. For the inductive step, assume that for some n, for all n' satisfying 0 ≤ n' ≤ n, that P(n') holds and n' can be written as the sum of distinct powers of two. We prove P(n + 1), that n + 1 can be written as the sum of distinct powers of two. Consider the largest power of 2 less than or equal to n + 1; let it be 2k. Then consider the number n + 1 – 2k. Since 2k ≥ 1 for any natural number k, we know that n + 1 – 2k ≤ n + 1 – 1 = n. Thus, by our inductive hypothesis, n + 1 – 2k can be written as the sum of distinct powers of two; let S be the set of these powers of two. This means that n + 1 is equal to 2k plus the sum of the powers of two in S. We now need to show that these powers of two are all distinct. We know by the inductive hypothesis that all of the powers of two in S are distinct, so the only way that a power of two would be repeated would be if 2k ∈ S. We show that this is impossible by contradiction; assume that 2k ∈ S. Since 2k ∈ S and the sum of the powers of two in S is n + 1 – 2k, this means that 2k ≤ n + 1 – 2k. This means that 2(2k) ≤ n + 1, so 2k + 1 ≤ n + 1, contradicting the fact that 2k is the largest power of two less than or equal to n + 1. We have reached a contradiction, so our assumption was wrong and 2k ∉ S. We have shown that n + 1 can be expressed as a sum of distinct powers of two, so P(n + 1) holds, completing the induction. ■ Theorem: Every natural number can be written as the sum of distinct powers of two. Proof: By strong induction. Let P(n) be “n can be written as the sum of distinct powers of two.” We prove that P(n) is true for all n. As our base case, we prove P(0), that 0 can be written as the sum of distinct powers of two. Since the empty sum of no powers of two is equal to 0, P(0) holds. For the inductive step, assume that for some n, for all n' satisfying 0 ≤ n' ≤ n, that P(n') holds and n' can be written as the sum of distinct powers of two. We prove P(n + 1), that n + 1 can be written as the sum of distinct powers of two. Consider the largest power of 2 less than or equal to n + 1; let it be 2k. Then consider the number n + 1 – 2k. Since 2k ≥ 1 for any natural number k, we know that n + 1 – 2k ≤ n + 1 – 1 = n. Thus, by our inductive hypothesis, n + 1 – 2k can be written as the sum of distinct powers of two; let S be the set of these powers of two. This means that n + 1 is equal to 2k plus the sum of the powers of two in S. We now need to show that these powers of two are all distinct. We know by the inductive hypothesis that all of the powers of two in S are distinct, so the only way that a power of two would be repeated would be if 2k ∈ S. We show that this is impossible by contradiction; assume that 2k ∈ S. Since 2k ∈ S and the sum of the powers of two in S is n + 1 – 2k, this means that 2k ≤ n + 1 – 2k. This means that 2(2k) ≤ n + 1, so 2k + 1 ≤ n + 1, contradicting the fact that 2k is the largest power of two less than or equal to n + 1. We have reached a contradiction, so our assumption was wrong and 2k ∉ S. We have shown that n + 1 can be expressed as a sum of distinct powers of two, so P(n + 1) holds, completing the induction. ■ Theorem: Every natural number can be written as the sum of distinct powers of two. Proof: By strong induction. Let P(n) be “n can be written as the sum of distinct powers of two.” We prove that P(n) is true for all n. As our base case, we prove P(0), that 0 can be written as the sum of distinct powers of two. Since the empty sum of no powers of two is equal to 0, P(0) holds. For the inductive step, assume that for some n, for all n' satisfying 0 ≤ n' ≤ n, that P(n') holds and n' can be written as the sum of distinct powers of two. We prove P(n + 1), that n + 1 can be written as the sum of distinct powers of two. Consider the largest power of 2 less than or equal to n + 1; let it be 2k. Then consider the number n + 1 – 2k. Since 2k ≥ 1 for any natural number k, we know that n + 1 – 2k ≤ n + 1 – 1 = n. Thus, by our inductive hypothesis, n + 1 – 2k can be written as the sum of distinct powers of two; let S be the set of these powers of two. This means that n + 1 is equal to 2k plus the sum of the powers of two in S. We now need to show that these powers of two are all distinct. We know by the inductive hypothesis that all of the powers of two in S are distinct, so the only way that a power of two would be repeated would be if 2k ∈ S. We show that this is impossible by contradiction; assume that 2k ∈ S. Since 2k ∈ S and the sum of the powers of two in S is n + 1 – 2k, this means that 2k ≤ n + 1 – 2k. This means that 2(2k) ≤ n + 1, so 2k + 1 ≤ n + 1, contradicting the fact that 2k is the largest power of two less than or equal to n + 1. We have reached a contradiction, so our assumption was wrong and 2k ∉ S. We have shown that n + 1 can be expressed as a sum of distinct powers of two, so P(n + 1) holds, completing the induction. ■ Theorem: Every natural number can be written as the sum of distinct powers of two. Proof: By strong induction. Let P(n) be “n can be written as the sum of distinct powers of two.” We prove that P(n) is true for all n. As our base case, we prove P(0), that 0 can be written as the sum of distinct powers of two. Since the empty sum of no powers of two is equal to 0, P(0) holds. For the inductive step, assume that for some n, for all n' satisfying 0 ≤ n' ≤ n, that P(n') holds and n' can be written as the sum of distinct powers of two. We prove P(n + 1), that n + 1 can be written as the sum of distinct powers of two. Consider the largest power of 2 less than or equal to n + 1; let it be 2k. Then consider the number n + 1 – 2k. Since 2k ≥ 1 for any natural number k, we know that n + 1 – 2k ≤ n + 1 – 1 = n. Thus, by our inductive hypothesis, n + 1 – 2k can be written as the sum of distinct powers of two; let S be the set of these powers of two. This means that n + 1 is equal to 2k plus the sum of the powers of two in S. We now need to show that these powers of two are all distinct. We know by the inductive hypothesis that all of the powers of two in S are distinct, so the only way that a power of two would be repeated would be if 2k ∈ S. We show that this is impossible by contradiction; assume that 2k ∈ S. Since 2k ∈ S and the sum of the powers of two in S is n + 1 – 2k, this means that 2k ≤ n + 1 – 2k. This means that 2(2k) ≤ n + 1, so 2k + 1 ≤ n + 1, contradicting the fact that 2k is the largest power of two less than or equal to n + 1. We have reached a contradiction, so our assumption was wrong and 2k ∉ S. We have shown that n + 1 can be expressed as a sum of distinct powers of two, so P(n + 1) holds, completing the induction. ■ Theorem: Every natural number can be written as the sum of distinct powers of two. Proof: By strong induction. Let P(n) be “n can be written as the sum of distinct powers of two.” We prove that P(n) is true for all n. As our base case, we prove P(0), that 0 can be written as the sum of distinct powers of two. Since the empty sum of no powers of two is equal to 0, P(0) holds. For the inductive step, assume that for some n, for all n' satisfying 0 ≤ n' ≤ n, that P(n') holds and n' can be written as the sum of distinct powers of two. We prove P(n + 1), that n + 1 can be written as the sum of distinct powers of two. Consider the largest power of 2 less than or equal to n + 1; let it be 2k. Then consider the number n + 1 – 2k. Since 2k ≥ 1 for any natural number k, we know that n + 1 – 2k ≤ n + 1 – 1 = n. Thus, by our inductive hypothesis, n + 1 – 2k can be written as the sum of distinct powers of two; let S be the set of these powers of two. This means that n + 1 is equal to 2k plus the sum of the powers of two in S. We now need to show that these powers of two are all distinct. We know by the inductive hypothesis that all of the powers of two in S are distinct, so the only way that a power of two would be repeated would be if 2k ∈ S. We show that this is impossible by contradiction; assume that 2k ∈ S. Since 2k ∈ S and the sum of the powers of two in S is n + 1 – 2k, this means that 2k ≤ n + 1 – 2k. This means that 2(2k) ≤ n + 1, so 2k + 1 ≤ n + 1, contradicting the fact that 2k is the largest power of two less than or equal to n + 1. We have reached a contradiction, so our assumption was wrong and 2k ∉ S. We have shown that n + 1 can be expressed as a sum of distinct powers of two, so P(n + 1) holds, completing the induction. ■ Theorem: Every natural number can be written as the sum of distinct powers of two. Proof: By strong induction. Let P(n) be “n can be written as the sum of distinct powers of two.” We prove that P(n) is true for all n. As our base case, we prove P(0), that 0 can be written as the sum of distinct powers of two. Since the empty sum of no powers of two is equal to 0, P(0) holds. For the inductive step, assume that for some n, for all n' satisfying 0 ≤ n' ≤ n, that P(n') holds and n' can be written as the sum of distinct powers of two. We prove P(n + 1), that n + 1 can be written as the sum of distinct powers of two. Consider the largest power of 2 less than or equal to n + 1; let it be 2k. Then consider the number n + 1 – 2k. Since 2k ≥ 1 for any natural number k, we know that n + 1 – 2k ≤ n + 1 – 1 = n. Thus, by our inductive hypothesis, n + 1 – 2k can be written as the sum of distinct powers of two; let S be the set of these powers of two. This means that n + 1 is equal to 2k plus the sum of the powers of two in S. We now need to show that these powers of two are all distinct. We know by the inductive hypothesis that all of the powers of two in S are distinct, so the only way that a power of two would be repeated would be if 2k ∈ S. We show that this is impossible by contradiction; assume that 2k ∈ S. Since 2k ∈ S and the sum of the powers of two in S is n + 1 – 2k, this means that 2k ≤ n + 1 – 2k. This means that 2(2k) ≤ n + 1, so 2k + 1 ≤ n + 1, contradicting the fact that 2k is the largest power of two less than or equal to n + 1. We have reached a contradiction, so our assumption was wrong and 2k ∉ S. We have shown that n + 1 can be expressed as a sum of distinct powers of two, so P(n + 1) holds, completing the induction. ■ Theorem: Every natural number can be written as the sum of distinct powers of two. Proof: By strong induction. Let P(n) be “n can be written as the sum of distinct powers of two.” We prove that P(n) is true for all n. As our base case, we prove P(0), that 0 can be written as the sum of distinct powers of two. Since the empty sum of no powers of two is equal to 0, P(0) holds. For the inductive step, assume that for some n, for all n' satisfying 0 ≤ n' ≤ n, that P(n') holds and n' can be written as the sum of distinct powers of two. We prove P(n + 1), that n + 1 can be written as the sum of distinct powers of two. Consider the largest power of 2 less than or equal to n + 1; let it be 2k. Then consider the number n + 1 – 2k. Since 2k ≥ 1 for any natural number k, we know that n + 1 – 2k ≤ n + 1 – 1 = n. Thus, by our inductive hypothesis, n + 1 – 2k can be written as the sum of distinct powers of two; let S be the set of these powers of two. This means that n + 1 is equal to 2k plus the sum of the powers of two in S. We now need to show that these powers of two are all distinct. We know by the inductive hypothesis that all of the powers of two in S are distinct, so the only way that a power of two would be repeated would be if 2k ∈ S. We show that this is impossible by contradiction; assume that 2k ∈ S. Since 2k ∈ S and the sum of the powers of two in S is n + 1 – 2k, this means that 2k ≤ n + 1 – 2k. This means that 2(2k) ≤ n + 1, so 2k + 1 ≤ n + 1, contradicting the fact that 2k is the largest power of two less than or equal to n + 1. We have reached a contradiction, so our assumption was wrong and 2k ∉ S. We have shown that n + 1 can be expressed as a sum of distinct powers of two, so P(n + 1) holds, completing the induction. ■ Theorem: Every natural number can be written as the sum of distinct powers of two. Proof: By strong induction. Let P(n) be “n can be written as the sum of distinct powers of two.” We prove that P(n) is true for all n. As our base case, we prove P(0), that 0 can be written as the sum of distinct powers of two. Since the empty sum of no powers of two is equal to 0, P(0) holds. For the inductive step, assume that for some n, for all n' satisfying 0 ≤ n' ≤ n, that P(n') holds and n' can be written as the sum of distinct powers of two. We prove P(n + 1), that n + 1 can be written as the sum of distinct powers of two. Consider the largest power of 2 less than or equal to n + 1; let it be 2k. Then consider the number n + 1 – 2k. Since 2k ≥ 1 for any natural number k, we know that n + 1 – 2k ≤ n + 1 – 1 = n. Thus, by our inductive hypothesis, n + 1 – 2k can be written as the sum of distinct powers of two; let S be the set of these powers of two. This means that n + 1 is equal to 2k plus the sum of the powers of two in S. NoticeNotice thethe strongerstronger versionversion ofof We now need to show thatthe these induction powers of twohypothesis. are all distinct. We know by the inductive hypothesis that allthe of the induction powers of twohypothesis. in S are distinct, so the only way that a power of two wouldWe'reWe're be repeated nownow showing showingwould be ifthat that2k ∈ SP(n)P(n). We show isis that this is k k impossible by contradiction;true assume for that n 2and ∈ S .all Since smaller 2 ∈ S and the sum of the powers of two in S is n + 1 true– 2k, this for means n and that 2allk ≤ nsmaller + 1 – 2k. This means that k k + 1 k 2(2 ) ≤ n + 1, so 2 ≤natural naturaln + 1, contradicting numbers.numbers. the fact We'reWe're that 2 goingisgoing the largest power of two less than or equal to n + 1. We have reached a contradiction, so our assumption was wrong and 2k ∉ S. Wetoto have useuse shown thisthis that factfact n + 1laterlater can be on. on.expressed as a sum of distinct powers of two, so P(n + 1) holds, completing the induction. ■ Theorem: Every natural number can be written as the sum of distinct powers of two. Proof: By strong induction. Let P(n) be “n can be written as the sum of distinct powers of two.” We prove that P(n) is true for all n. As our base case, we prove P(0), that 0 can be written as the sum of distinct powers of two. Since the empty sum of no powers of two is equal to 0, P(0) holds. For the inductive step, assume that for some n, for all n' satisfying 0 ≤ n' ≤ n, that P(n') holds and n' can be written as the sum of distinct powers of two. We prove P(n + 1), that n + 1 can be written as the sum of distinct powers of two. Consider the largest power of 2 less than or equal to n + 1; let it be 2k. Then consider the number n + 1 – 2k. Since 2k ≥ 1 for any natural number k, we know that n + 1 – 2k ≤ n + 1 – 1 = n. Thus, by our inductive hypothesis, n + 1 – 2k can be written as the sum of distinct powers of two; let S be the set of these powers of two. This means that n + 1 is equal to 2k plus the sum of the powers of two in S. We now need to show that these powers of two are all distinct. We know by the inductive hypothesis that all of the powers of two in S are distinct, so the only way that a power of two would be repeated would be if 2k ∈ S. We show that this is impossible by contradiction; assume that 2k ∈ S. Since 2k ∈ S and the sum of the powers of two in S is n + 1 – 2k, this means that 2k ≤ n + 1 – 2k. This means that 2(2k) ≤ n + 1, so 2k + 1 ≤ n + 1, contradicting the fact that 2k is the largest power of two less than or equal to n + 1. We have reached a contradiction, so our assumption was wrong and 2k ∉ S. We have shown that n + 1 can be expressed as a sum of distinct powers of two, so P(n + 1) holds, completing the induction. ■ Theorem: Every natural number can be written as the sum of distinct powers of two. Proof: By strong induction. Let P(n) be “n can be written as the sum of distinct powers of two.” We prove that P(n) is true for all n. As our base case, we prove P(0), that 0 can be written as the sum of distinct powers of two. Since the empty sum of no powers of two is equal to 0, P(0) holds. For the inductive step, assume that for some n, for all n' satisfying 0 ≤ n' ≤ n, that P(n') holds and n' can be written as the sum of distinct powers of two. We prove P(n + 1), that n + 1 can be written as the sum of distinct powers of two. Consider the largest power of 2 less than or equal to n + 1; let it be 2k. Then consider the number n + 1 – 2k. Since 2k ≥ 1 for any natural number k, we know that n + 1 – 2k ≤ n + 1 – 1 = n. Thus, by our inductive hypothesis, n + 1 – 2k can be written as the sum of distinct powers of two; let S be the set of these powers of two. This means that n + 1 is equal to 2k plus the sum of the powers of two in S. We now need to show that these powers of two are all distinct. We know by the inductive hypothesis that all of the powers of two in S are distinct, so the only way that a power of two would be repeated would be if 2k ∈ S. We show that this is impossible by contradiction; assume that 2k ∈ S. Since 2k ∈ S and the sum of the powers of two in S is n + 1 – 2k, this means that 2k ≤ n + 1 – 2k. This means that 2(2k) ≤ n + 1, so 2k + 1 ≤ n + 1, contradicting the fact that 2k is the largest power of two less than or equal to n + 1. We have reached a contradiction, so our assumption was wrong and 2k ∉ S. We have shown that n + 1 can be expressed as a sum of distinct powers of two, so P(n + 1) holds, completing the induction. ■ Theorem: Every natural number can be written as the sum of distinct powers of two. Proof: By strong induction. Let P(n) be “n can be written as the sum of distinct powers of two.” We prove that P(n) is true for all n. As our base case, we prove P(0), that 0 can be written as the sum of distinct powers of two. Since the empty sum of no powers of two is equal to 0, P(0) holds. For the inductive step, assume that for some n, for all n' satisfying 0 ≤ n' ≤ n, that P(n') holds and n' can be written as the sum of distinct powers of two. We prove P(n + 1), that n + 1 can be written as the sum of distinct powers of two. Consider the largest power of 2 less than or equal to n + 1; let it be 2k. Then consider the number n + 1 – 2k. Since 2k ≥ 1 for any natural number k, we know that n + 1 – 2k ≤ n + 1 – 1 = n. Thus, by our inductive hypothesis, n + 1 – 2k can be written as the sum of distinct powers of two; let S be the set of these powers of two. This means that n + 1 is equal to 2k plus the sum of the powers of two in S. We now need to show that these powers of two are all distinct. We know by the inductive hypothesis that all of the powers of two in S are distinct, so the only way that a power of two would be repeated would be if 2k ∈ S. We show that this is impossible by contradiction; assume that 2k ∈ S. Since 2k ∈ S and the sum of the powers of two in S is n + 1 – 2k, this means that 2k ≤ n + 1 – 2k. This means that 2(2k) ≤ n + 1, so 2k + 1 ≤ n + 1, contradicting the fact that 2k is the largest power of two less than or equal to n + 1. We have reached a contradiction, so our assumption was wrong and 2k ∉ S. We have shown that n + 1 can be expressed as a sum of distinct powers of two, so P(n + 1) holds, completing the induction. ■ Theorem: Every natural number can be written as the sum of distinct powers of two. Proof: By strong induction. Let P(n) be “n can be written as the sum of distinct powers of two.” We prove that P(n) is true for all n. As our base case, we prove P(0), that 0 can be written as the sum of distinct powers of two. Since the empty sum of no powers of two is equal to 0, P(0) holds. For the inductive step, assume that for some n, for all n' satisfying 0 ≤ n' ≤ n, that P(n') holds and n' can be written as the sum of distinct powers of two. We prove P(n + 1), that n + 1 can be written as the sum of distinct powers of two. Consider the largest power of 2 less than or equal to n + 1; let it be 2k. Then consider the number n + 1 – 2k. Since 2k ≥ 1 for any natural number k, we know that n + 1 – 2k ≤ n + 1 – 1 = n. Thus, by our inductive hypothesis, n + 1 – 2k can be written as the sum of distinct powers of two; let S be the set of these powers of two. This means that n + 1 is equal to 2k plus the sum of the powers of two in S. We now need to show that these powers of two are all distinct. We know by the inductive hypothesis that all of the powers of two in S are distinct, so the only way that a power of two would be repeated would be if 2k ∈ S. We show that this is impossible by contradiction; assume that 2k ∈ S. Since 2k ∈ S and the sum of the powers of two in S is n + 1 – 2k, this means that 2k ≤ n + 1 – 2k. This means that 2(2k) ≤ n + 1, so 2k + 1 ≤ n + 1, contradicting the fact that 2k is the largest power of two less than or equal to n + 1. We have reached a contradiction, so our assumption was wrong and 2k ∉ S. We have shown that n + 1 can be expressed as a sum of distinct powers of two, so P(n + 1) holds, completing the induction. ■ Theorem: Every natural number can be written as the sum of distinct powers of two. Proof: By strong induction. Let P(n) be “n can be written as the sum of distinct powers of two.” We prove that P(n) is true for all n. As our base case, we prove P(0), that 0 can be written as the sum of distinct powers of two. Since the empty sum of no powers of two is equal to 0, P(0) holds. For the inductive step, assume that for some n, for all n' satisfying 0 ≤ n' ≤ n, that P(n') holds and n' can be written as the sum of distinct powers of two. We prove P(n + 1), that n + 1 can be written as the sum of distinct powers of two. Consider the largest power of 2 less than or equal to n + 1; let it be 2k. Then consider the number n + 1 – 2k. Since 2k ≥ 1 for any natural number k, we know that n + 1 – 2k ≤ n + 1 – 1 = n. Thus, by our inductive hypothesis, n + 1 – 2k can be written as the sumHere's of distinct the powers key of two;step let ofS be the the setproof. of these powersIf we of two. This means that n +Here's 1 is equal the to 2 kkey plus thestep sum of of thethe powers proof. of two inIf S . we can show that We now need to show that these powerscan of twoshow are allthat distinct. We know by the inductive hypothesis that all of the powers of two in S are distinct, so the only way k k that a power of two would be repeated wouldn + 1 be – if2 2 k≤ ∈ n S. We show that this is impossible by contradiction; assume that n2k +∈ 1 S –. 2Since ≤ n 2k ∈ S and the sum of the powers of two in S is n + 1 – 2k, this means that 2k ≤ n + 1 – 2k. This means that 2(2k) ≤ n + 1, so 2thenkthen + 1 ≤ n we+we 1, cancontradictingcan useuse thethe the factinductiveinductive that 2k is thehypothesishypothesis largest power toto of two less than or equal to n + 1. We have reachedk a contradiction, so our assumption claim that n + 1 – 2 k is a sum of distinct was wrong and 2k ∉ Sclaim. We havethat shown n + 1that – 2 n +is 1 cana sumbe expressed of distinct as a sum of distinct powers of two, so P(n + 1) holds,powerspowers completing ofof two.thetwo. induction. ■ Theorem: Every natural number can be written as the sum of distinct powers of two. Proof: By strong induction. Let P(n) be “n can be written as the sum of distinct powers of two.” We prove that P(n) is true for all n. As our base case, we prove P(0), that 0 can be written as the sum of distinct powers of two. Since the empty sum of no powers of two is equal to 0, P(0) holds. For the inductive step, assume that for some n, for all n' satisfying 0 ≤ n' ≤ n, that P(n') holds and n' can be written as the sum of distinct powers of two. We prove P(n + 1), that n + 1 can be written as the sum of distinct powers of two. Consider the largest power of 2 less than or equal to n + 1; let it be 2k. Then consider the number n + 1 – 2k. Since 2k ≥ 1 for any natural number k, we know that n + 1 – 2k ≤ n + 1 – 1 = n. Thus, by our inductive hypothesis, n + 1 – 2k can be written as the sum of distinct powers of two; let S be the set of these powers of two. This means that n + 1 is equal to 2k plus the sum of the powers of two in S. We now need to show that these powers of two are all distinct. We know by the inductive hypothesis that all of the powers of two in S are distinct, so the only way that a power of two would be repeated would be if 2k ∈ S. We show that this is impossible by contradiction; assume that 2k ∈ S. Since 2k ∈ S and the sum of the powers of two in S is n + 1 – 2k, this means that 2k ≤ n + 1 – 2k. This means that 2(2k) ≤ n + 1, so 2k + 1 ≤ n + 1, contradicting the fact that 2k is the largest power of two less than or equal to n + 1. We have reached a contradiction, so our assumption was wrong and 2k ∉ S. We have shown that n + 1 can be expressed as a sum of distinct powers of two, so P(n + 1) holds, completing the induction. ■ Theorem: Every natural number can be written as the sum of distinct powers of two. Proof: By strong induction. Let P(n) be “n can be written as the sum of distinct powers of two.” We prove that P(n) is true for all n. As our base case, we prove P(0), that 0 can be written as the sum of distinct powers of two. Since the empty sum of no powers of two is equal to 0, P(0) holds. For the inductive step, assume that for some n, for all n' satisfying 0 ≤ n' ≤ n, that P(n') holds and n' can be written as the sum of distinct powers of two. We prove P(n + 1), that n + 1 can be written as the sum of distinct powers of two. Consider the largest power of 2 less than or equal to n + 1; let it be 2k. Then consider the number n + 1 – 2k. Since 2k ≥ 1 for any natural number k, we know that n + 1 – 2k ≤ n + 1 – 1 = n. Thus, by our inductive hypothesis, n + 1 – 2k can be written as the sum of distinct powers of two; let S be the set of these powers of two. This means that n + 1 is equal to 2k plus the sum of the powers of two in S. We now need to show that these powers of two are all distinct. We know by the inductive hypothesis that all of the powers of two in S are distinct, so the only way that a power of two would be repeated would be if 2k ∈ S. We show that this is impossible by contradiction; assume that 2k ∈ S. Since 2k ∈ S and the sum of the powers of two in S is n + 1 – 2k, this means that 2k ≤ n + 1 – 2k. This means that 2(2k) ≤ n + 1, so 2k + 1 ≤ n + 1, contradicting the fact that 2k is the largest power of two less than or equal to n + 1. We have reached a contradiction, so our assumption was wrong and 2k ∉ S. We have shown that n + 1 can be expressed as a sum of distinct powers of two, so P(n + 1) holds, completing the induction. ■ Theorem: Every natural number can be written as the sum of distinct powers of two. Proof: By strong induction. Let P(n) be “n can be written as the sum of distinct powers of two.” We prove that P(n) is true for all n. As our base case, we prove P(0), that 0 can be written as the sum of distinct powers of two. Since the empty sum of no powers of two is equal to 0, P(0) holds. For the inductive step, assume that for some n, for all n' satisfying 0 ≤ n' ≤ n, that P(n') holds and n' can be written as the sum of distinct powers of two. We prove P(n + 1), that n + 1 can be written as the sum of distinct powers of two. Consider the largest power of 2 less than or equal to n + 1; let it be 2k. Then consider the number n + 1 – 2k. Since 2k ≥ 1 for any natural number k, we know that n + 1 – 2k ≤ n + 1 – 1 = n. Thus, by our inductive hypothesis, n + 1 – 2k can be written as the sum of distinct powers of two; let S be the set of these powers of two. This means that n + 1 is equal to 2k plus the sum of the powers of two in S. We now need to show that these powers of two are all distinct. We know by the inductive hypothesis that all of the powers of two in S are distinct, so the only way that a power of two would be repeated would be if 2k ∈ S. We show that this is impossible by contradiction; assume that 2k ∈ S. Since 2k ∈ S and the sum of the powers of two in S is n + 1 – 2k, this means that 2k ≤ n + 1 – 2k. This means that 2(2k) ≤ n + 1, so 2k + 1 ≤ n + 1, contradicting the fact that 2k is the largest power of two less than or equal to n + 1. We have reached a contradiction, so our assumption was wrong and 2k ∉ S. We have shown that n + 1 can be expressed as a sum of distinct powers of two, so P(n + 1) holds, completing the induction. ■ Theorem: Every natural number can be written as the sum of distinct powers of two. Proof: By strong induction. Let P(n) be “n can be written as the sum of distinct powers of two.” We prove that P(n) is true for all n. As our base case, we prove P(0), that 0 can be written as the sum of distinct powers of two. Since the empty sum of no powers of two is equal to 0, P(0) holds. For the inductive step, assume that for some n, for all n' satisfying 0 ≤ n' ≤ n, that P(n') holds and n' can be written as the sum of distinct powers of two. We prove P(n + 1), that n + 1 can be written as the sum of distinct powers of two. Consider the largest power of 2 less than or equal to n + 1; let it be 2k. Then consider the number n + 1 – 2k. Since 2k ≥ 1 for any natural number k, we know that n + 1 – 2k ≤ n + 1 – 1 = n. Thus, by our inductive hypothesis, n + 1 – 2k can be written as the sum of distinct powers of two; let S be the set of these powers of two. This means that n + 1 is equal to 2k plus the sum of the powers of two in S. We now need to show that these powers of two are all distinct. We know by the inductive hypothesis that all of the powers of two in S are distinct, so the only way that a power of two would be repeated would be if 2k ∈ S. We show that this is impossible by contradiction; assume that 2k ∈ S. Since 2k ∈ S and the sum of the powers of two in S is n + 1 – 2k, this means that 2k ≤ n + 1 – 2k. This means that 2(2k) ≤ n + 1, so 2k + 1 ≤ n + 1, contradicting the fact that 2k is the largest power of two less than or equal to n + 1. We have reached a contradiction, so our assumption was wrong and 2k ∉ S. We have shown that n + 1 can be expressed as a sum of distinct powers of two, so P(n + 1) holds, completing the induction. ■ Theorem: Every natural number can be written as the sum of distinct powers of two. Proof: By strong induction. Let P(n) be “n can be written as the sum of distinct powers of two.” We prove that P(n) is true for all n. As our base case, we prove P(0), that 0 can be written as the sum of distinct powers of two. Since the empty sum of no powers of two is equal to 0, P(0) holds. For the inductive step, assume that for some n, for all n' satisfying 0 ≤ n' ≤ n, that P(n') holds and n' can be written as the sum of distinct powers of two. We prove P(n + 1), that n + 1 can be written as the sum of distinct powers of two. Consider the largest power of 2 less than or equal to n + 1; let it be 2k. Then consider the number n + 1 – 2k. Since 2k ≥ 1 for any natural number k, we know that n + 1 – 2k ≤ n + 1 – 1 = n. Thus, by our inductive hypothesis, n + 1 – 2k can be written as the sum of distinct powers of two; let S be the set of these powers of two. This means that n + 1 is equal to 2k plus the sum of the powers of two in S. We now need toThis show step that these would powers fail of intwo aare normal all distinct. inductive We know by the inductive hypothesisThis thatstep all ofwould the powers fail of intwo ain normalS are distinct, inductive so the only way that a power of twoproofproof would because becausebe repeated we'rewe're would betalkingtalking if 2k ∈ S about.about We show somesome that this is k k impossible bynumber contradiction; no assumegreater that than 2 ∈ Sn. , Since not 2 necessarily ∈ S and the sum n of the powers of twonumber in S is n + no1 – 2greaterk, this means than that 2nk, ≤ nnot + 1 –necessarily 2k. This means n that k k + 1 k 2(2 ) ≤ n + 1,itself. soitself. 2 ≤ n Strong +Strong 1, contradicting inductioninduction the fact isis that extremelyextremely 2 is the largest usefuluseful power of two less than or equal to n + 1. We have reached a contradiction, so our assumption was wrong and 2k ∉ S. We haveinin shown casescases that like liken + 1this. this.can be expressed as a sum of distinct powers of two, so P(n + 1) holds, completing the induction. ■ Theorem: Every natural number can be written as the sum of distinct powers of two. Proof: By strong induction. Let P(n) be “n can be written as the sum of distinct powers of two.” We prove that P(n) is true for all n. As our base case, we prove P(0), that 0 can be written as the sum of distinct powers of two. Since the empty sum of no powers of two is equal to 0, P(0) holds. For the inductive step, assume that for some n, for all n' satisfying 0 ≤ n' ≤ n, that P(n') holds and n' can be written as the sum of distinct powers of two. We prove P(n + 1), that n + 1 can be written as the sum of distinct powers of two. Consider the largest power of 2 less than or equal to n + 1; let it be 2k. Then consider the number n + 1 – 2k. Since 2k ≥ 1 for any natural number k, we know that n + 1 – 2k ≤ n + 1 – 1 = n. Thus, by our inductive hypothesis, n + 1 – 2k can be written as the sum of distinct powers of two; let S be the set of these powers of two. This means that n + 1 is equal to 2k plus the sum of the powers of two in S. We now need to show that these powers of two are all distinct. We know by the inductive hypothesis that all of the powers of two in S are distinct, so the only way that a power of two would be repeated would be if 2k ∈ S. We show that this is impossible by contradiction; assume that 2k ∈ S. Since 2k ∈ S and the sum of the powers of two in S is n + 1 – 2k, this means that 2k ≤ n + 1 – 2k. This means that 2(2k) ≤ n + 1, so 2k + 1 ≤ n + 1, contradicting the fact that 2k is the largest power of two less than or equal to n + 1. We have reached a contradiction, so our assumption was wrong and 2k ∉ S. We have shown that n + 1 can be expressed as a sum of distinct powers of two, so P(n + 1) holds, completing the induction. ■ Theorem: Every natural number can be written as the sum of distinct powers of two. Proof: By strong induction. Let P(n) be “n can be written as the sum of distinct powers of two.” We prove that P(n) is true for all n. As our base case, we prove P(0), that 0 can be written as the sum of distinct powers of two. Since the empty sum of no powers of two is equal to 0, P(0) holds. For the inductive step, assume that for some n, for all n' satisfying 0 ≤ n' ≤ n, that P(n') holds and n' can be written as the sum of distinct powers of two. We prove P(n + 1), that n + 1 can be written as the sum of distinct powers of two. Consider the largest power of 2 less than or equal to n + 1; let it be 2k. Then consider the number n + 1 – 2k. Since 2k ≥ 1 for any natural number k, we know that n + 1 – 2k ≤ n + 1 – 1 = n. Thus, by our inductive hypothesis, n + 1 – 2k can be written as the sum of distinct powers of two; let S be the set of these powers of two. This means that n + 1 is equal to 2k plus the sum of the powers of two in S. We now need to show that these powers of two are all distinct. We know by the inductive hypothesis that all of the powers of two in S are distinct, so the only way that a power of two would be repeated would be if 2k ∈ S. We show that this is impossible by contradiction; assume that 2k ∈ S. Since 2k ∈ S and the sum of the powers of two in S is n + 1 – 2k, this means that 2k ≤ n + 1 – 2k. This means that 2(2k) ≤ n + 1, so 2k + 1 ≤ n + 1, contradicting the fact that 2k is the largest power of two less than or equal to n + 1. We have reached a contradiction, so our assumption was wrong and 2k ∉ S. We have shown that n + 1 can be expressed as a sum of distinct powers of two, so P(n + 1) holds, completing the induction. ■ Theorem: Every natural number can be written as the sum of distinct powers of two. Proof: By strong induction. Let P(n) be “n can be written as the sum of distinct powers of two.” We prove that P(n) is true for all n. As our base case, we prove P(0), that 0 can be written as the sum of distinct powers of two. Since the empty sum of no powers of two is equal to 0, P(0) holds. For the inductive step, assume that for some n, for all n' satisfying 0 ≤ n' ≤ n, that P(n') holds and n' can be written as the sum of distinct powers of two. We prove P(n + 1), that n + 1 can be written as the sum of distinct powers of two. Consider the largest power of 2 less than or equal to n + 1; let it be 2k. Then consider the number n + 1 – 2k. Since 2k ≥ 1 for any natural number k, we know that n + 1 – 2k ≤ n + 1 – 1 = n. Thus, by our inductive hypothesis, n + 1 – 2k can be written as the sum of distinct powers of two; let S be the set of these powers of two. This means that n + 1 is equal to 2k plus the sum of the powers of two in S. We now need to show that these powers of two are all distinct. We know by the inductive hypothesis that all of the powers of two in S are distinct, so the only way that a power of two would be repeated would be if 2k ∈ S. We show that this is impossible by contradiction; assume that 2k ∈ S. Since 2k ∈ S and the sum of the powers of two in S is n + 1 – 2k, this means that 2k ≤ n + 1 – 2k. This means that 2(2k) ≤ n + 1, so 2k + 1 ≤ n + 1, contradicting the fact that 2k is the largest power of two less than or equal to n + 1. We have reached a contradiction, so our assumption was wrong and 2k ∉ S. We have shown that n + 1 can be expressed as a sum of distinct powers of two, so P(n + 1) holds, completing the induction. ■ Theorem: Every natural number can be written as the sum of distinct powers of two. Proof: By strong induction. Let P(n) be “n can be written as the sum of distinct powers of two.” We prove that P(n) is true for all n. As our base case, we prove P(0), that 0 can be written as the sum of distinct powers of two. Since the empty sum of no powers of two is equal to 0, P(0) holds. For the inductive step, assume that for some n, for all n' satisfying 0 ≤ n' ≤ n, that P(n') holds and n' can be written as the sum of distinct powers of two. We prove P(n + 1), that n + 1 can be written as the sum of distinct powers of two. Consider the largest power of 2 less than or equal to n + 1; let it be 2k. Then consider the number n + 1 – 2k. Since 2k ≥ 1 for any natural number k, we know that n + 1 – 2k ≤ n + 1 – 1 = n. Thus, by our inductive hypothesis, n + 1 – 2k can be written as the sum of distinct powers of two; let S be the set of these powers of two. This means that n + 1 is equal to 2k plus the sum of the powers of two in S. We now need to show that these powers of two are all distinct. We know by the inductive hypothesis that all of the powers of two in S are distinct, so the only way that a power of two would be repeated would be if 2k ∈ S. We show that this is impossible by contradiction; assume that 2k ∈ S. Since 2k ∈ S and the sum of the powers of two in S is n + 1 – 2k, this means that 2k ≤ n + 1 – 2k. This means that 2(2k) ≤ n + 1, so 2k + 1 ≤ n + 1, contradicting the fact that 2k is the largest power of two less than or equal to n + 1. We have reached a contradiction, so our assumption was wrong and 2k ∉ S. We have shown that n + 1 can be expressed as a sum of distinct powers of two, so P(n + 1) holds, completing the induction. ■ Theorem: Every natural number can be written as the sum of distinct powers of two. Proof: By strong induction. Let P(n) be “n can be written as the sum of distinct powers of two.” We prove that P(n) is true for all n. As our base case, we prove P(0), that 0 can be written as the sum of distinct powers of two. Since the empty sum of no powers of two is equal to 0, P(0) holds. For the inductive step, assume that for some n, for all n' satisfying 0 ≤ n' ≤ n, that P(n') holds and n' can be written as the sum of distinct powers of two. We prove P(n + 1), that n + 1 can be written as the sum of distinct powers of two. Consider the largest power of 2 less than or equal to n + 1; let it be 2k. Then consider the number n + 1 – 2k. Since 2k ≥ 1 for any natural number k, we know that n + 1 – 2k ≤ n + 1 – 1 = n. Thus, by our inductive hypothesis, n + 1 – 2k can be written as the sum of distinct powers of two; let S be the set of these powers of two. This means that n + 1 is equal to 2k plus the sum of the powers of two in S. We now need to show that these powers of two are all distinct. We know by the inductive hypothesis that all of the powers of two in S are distinct, so the only way that a power of two would be repeated would be if 2k ∈ S. We show that this is impossible by contradiction; assume that 2k ∈ S. Since 2k ∈ S and the sum of the powers of two in S is n + 1 – 2k, this means that 2k ≤ n + 1 – 2k. This means that 2(2k) ≤ n + 1, so 2k + 1 ≤ n + 1, contradicting the fact that 2k is the largest power of two less than or equal to n + 1. We have reached a contradiction, so our assumption was wrong and 2k ∉ S. We have shown that n + 1 can be expressed as a sum of distinct powers of two, so P(n + 1) holds, completing the induction. ■ Theorem: Every natural number can be written as the sum of distinct powers of two. Proof: By strong induction. Let P(n) be “n can be written as the sum of distinct powers of two.” We prove that P(n) is true for all n. As our base case, we prove P(0), that 0 can be written as the sum of distinct powers of two. Since the empty sum of no powers of two is equal to 0, P(0) holds. For the inductive step, assume that for some n, for all n' satisfying 0 ≤ n' ≤ n, that P(n') holds and n' can be written as the sum of distinct powers of two. We prove P(n + 1), that n + 1 can be written as the sum of distinct powers of two. Consider the largest power of 2 less than or equal to n + 1; let it be 2k. Then consider the number n + 1 – 2k. Since 2k ≥ 1 for any natural number k, we know that n + 1 – 2k ≤ n + 1 – 1 = n. Thus, by our inductive hypothesis, n + 1 – 2k can be written as the sum of distinct powers of two; let S be the set of these powers of two. This means that n + 1 is equal to 2k plus the sum of the powers of two in S. We now need to show that these powers of two are all distinct. We know by the inductive hypothesis that all of the powers of two in S are distinct, so the only way that a power of two would be repeated would be if 2k ∈ S. We show that this is impossible by contradiction; assume that 2k ∈ S. Since 2k ∈ S and the sum of the powers of two in S is n + 1 – 2k, this means that 2k ≤ n + 1 – 2k. This means that 2(2k) ≤ n + 1, so 2k + 1 ≤ n + 1, contradicting the fact that 2k is the largest power of two less than or equal to n + 1. We have reached a contradiction, so our assumption was wrong and 2k ∉ S. We have shown that n + 1 can be expressed as a sum of distinct powers of two, so P(n + 1) holds, completing the induction. ■ Theorem: Every natural number can be written as the sum of distinct powers of two. Proof: By strong induction. Let P(n) be “n can be written as the sum of distinct powers of two.” We prove that P(n) is true for all n. As our base case, we prove P(0), that 0 can be written as the sum of distinct powers of two. Since the empty sum of no powers of two is equal to 0, P(0) holds. For the inductive step, assume that for some n, for all n' satisfying 0 ≤ n' ≤ n, that P(n') holds and n' can be written as the sum of distinct powers of two. We prove P(n + 1), that n + 1 can be written as the sum of distinct powers of two. Consider the largest power of 2 less than or equal to n + 1; let it be 2k. Then consider the number n + 1 – 2k. Since 2k ≥ 1 for any natural number k, we know that n + 1 – 2k ≤ n + 1 – 1 = n. Thus, by our inductive hypothesis, n + 1 – 2k can be written as the sum of distinct powers of two; let S be the set of these powers of two. This means that n + 1 is equal to 2k plus the sum of the powers of two in S. We now need to show that these powers of two are all distinct. We know by the inductive hypothesis that all of the powers of two in S are distinct, so the only way that a power of two would be repeated would be if 2k ∈ S. We show that this is impossible by contradiction; assume that 2k ∈ S. Since 2k ∈ S and the sum of the powers of two in S is n + 1 – 2k, this means that 2k ≤ n + 1 – 2k. This means that 2(2k) ≤ n + 1, so 2k + 1 ≤ n + 1, contradicting the fact that 2k is the largest power of two less than or equal to n + 1. We have reached a contradiction, so our assumption was wrong and 2k ∉ S. We have shown that n + 1 can be expressed as a sum of distinct powers of two, so P(n + 1) holds, completing the induction. ■ Theorem: Every natural number can be written as the sum of distinct powers of two. Proof: By strong induction. Let P(n) be “n can be written as the sum of distinct powers of two.” We prove that P(n) is true for all n. As our base case, we prove P(0), that 0 can be written as the sum of distinct powers of two. Since the empty sum of no powers of two is equal to 0, P(0) holds. For the inductive step, assume that for some n, for all n' satisfying 0 ≤ n' ≤ n, that P(n') holds and n' can be written as the sum of distinct powers of two. We prove P(n + 1), that n + 1 can be written as the sum of distinct powers of two. Consider the largest power of 2 less than or equal to n + 1; let it be 2k. Then consider the number n + 1 – 2k. Since 2k ≥ 1 for any natural number k, we know that n + 1 – 2k ≤ n + 1 – 1 = n. Thus, by our inductive hypothesis, n + 1 – 2k can be written as the sum of distinct powers of two; let S be the set of these powers of two. This means that n + 1 is equal to 2k plus the sum of the powers of two in S. We now need to show that these powers of two are all distinct. We know by the inductive hypothesis that all of the powers of two in S are distinct, so the only way that a power of two would be repeated would be if 2k ∈ S. We show that this is impossible by contradiction; assume that 2k ∈ S. Since 2k ∈ S and the sum of the powers of two in S is n + 1 – 2k, this means that 2k ≤ n + 1 – 2k. This means that 2(2k) ≤ n + 1, so 2k + 1 ≤ n + 1, contradicting the fact that 2k is the largest power of two less than or equal to n + 1. We have reached a contradiction, so our assumption was wrong and 2k ∉ S. We have shown that n + 1 can be expressed as a sum of distinct powers of two, so P(n + 1) holds, completing the induction. ■ Theorem: Every natural number can be written as the sum of distinct powers of two. Proof: By strong induction. Let P(n) be “n can be written as the sum of distinct powers of two.” We prove that P(n) is true for all n. As our base case, we prove P(0), that 0 can be written as the sum of distinct powers of two. Since the empty sum of no powers of two is equal to 0, P(0) holds. For the inductive step, assume that for some n, for all n' satisfying 0 ≤ n' ≤ n, that P(n') holds and n' can be written as the sum of distinct powers of two. We prove P(n + 1), that n + 1 can be written as the sum of distinct powers of two. Consider the largest power of 2 less than or equal to n + 1; let it be 2k. Then consider the number n + 1 – 2k. Since 2k ≥ 1 for any natural number k, we know that n + 1 – 2k ≤ n + 1 – 1 = n. Thus, by our inductive hypothesis, n + 1 – 2k can be written as the sum of distinct powers of two; let S be the set of these powers of two. This means that n + 1 is equal to 2k plus the sum of the powers of two in S. We now need to show that these powers of two are all distinct. We know by the inductive hypothesis that all of the powers of two in S are distinct, so the only way that a power of two would be repeated would be if 2k ∈ S. We show that this is impossible by contradiction; assume that 2k ∈ S. Since 2k ∈ S and the sum of the powers of two in S is n + 1 – 2k, this means that 2k ≤ n + 1 – 2k. This means that 2(2k) ≤ n + 1, so 2k + 1 ≤ n + 1, contradicting the fact that 2k is the largest power of two less than or equal to n + 1. We have reached a contradiction, so our assumption was wrong and 2k ∉ S. We have shown that n + 1 can be expressed as a sum of distinct powers of two, so P(n + 1) holds, completing the induction. ■ Theorem: Every natural number can be written as the sum of distinct powers of two. Proof: By strong induction. Let P(n) be “n can be written as the sum of distinct powers of two.” We prove that P(n) is true for all n. As our base case, we prove P(0), that 0 can be written as the sum of distinct powers of two. Since the empty sum of no powers of two is equal to 0, P(0) holds. For the inductive step, assume that for some n, for all n' satisfying 0 ≤ n' ≤ n, that P(n') holds and n' can be written as the sum of distinct powers of two. We prove P(n + 1), that n + 1 can be written as the sum of distinct powers of two. Consider the largest power of 2 less than or equal to n + 1; let it be 2k. Then consider the number n + 1 – 2k. Since 2k ≥ 1 for any natural number k, we know that n + 1 – 2k ≤ n + 1 – 1 = n. Thus, by our inductive hypothesis, n + 1 – 2k can be written as the sum of distinct powers of two; let S be the set of these powers of two. This means that n + 1 is equal to 2k plus the sum of the powers of two in S. We now need to show that these powers of two are all distinct. We know by the inductive hypothesis that all of the powers of two in S are distinct, so the only way that a power of two would be repeated would be if 2k ∈ S. We show that this is impossible by contradiction; assume that 2k ∈ S. Since 2k ∈ S and the sum of the powers of two in S is n + 1 – 2k, this means that 2k ≤ n + 1 – 2k. This means that 2(2k) ≤ n + 1, so 2k + 1 ≤ n + 1, contradicting the fact that 2k is the largest power of two less than or equal to n + 1. We have reached a contradiction, so our assumption was wrong and 2k ∉ S. We have shown that n + 1 can be expressed as a sum of distinct powers of two, so P(n + 1) holds, completing the induction. ■ Theorem: Every natural number can be written as the sum of distinct powers of two. Proof: By strong induction. Let P(n) be “n can be written as the sum of distinct powers of two.” We prove that P(n) is true for all n. As our base case, we prove P(0), that 0 can be written as the sum of distinct powers of two. Since the empty sum of no powers of two is equal to 0, P(0) holds. For the inductive step, assume that for some n, for all n' satisfying 0 ≤ n' ≤ n, that P(n') holds and n' can be written as the sum of distinct powers of two. We prove P(n + 1), that n + 1 can be written as the sum of distinct powers of two. Consider the largest power of 2 less than or equal to n + 1; let it be 2k. Then consider the number n + 1 – 2k. Since 2k ≥ 1 for any natural number k, we know that n + 1 – 2k ≤ n + 1 – 1 = n. Thus, by our inductive hypothesis, n + 1 – 2k can be written as the sum of distinct powers of two; let S be the set of these powers of two. This means that n + 1 is equal to 2k plus the sum of the powers of two in S. We now need to show that these powers of two are all distinct. We know by the inductive hypothesis that all of the powers of two in S are distinct, so the only way that a power of two would be repeated would be if 2k ∈ S. We show that this is impossible by contradiction; assume that 2k ∈ S. Since 2k ∈ S and the sum of the powers of two in S is n + 1 – 2k, this means that 2k ≤ n + 1 – 2k. This means that 2(2k) ≤ n + 1, so 2k + 1 ≤ n + 1, contradicting the fact that 2k is the largest power of two less than or equal to n + 1. We have reached a contradiction, so our assumption was wrong and 2k ∉ S. We have shown that n + 1 can be expressed as a sum of distinct powers of two, so P(n + 1) holds, completing the induction. ■ Theorem: Every natural number can be written as the sum of distinct powers of two. Proof: By strong induction. Let P(n) be “n can be written as the sum of distinct powers of two.” We prove that P(n) is true for all n. As our base case, we prove P(0), that 0 can be written as the sum of distinct powers of two. Since the empty sum of no powers of two is equal to 0, P(0) holds. For the inductive step, assume that for some n, for all n' satisfying 0 ≤ n' ≤ n, that P(n') holds and n' can be written as the sum of distinct powers of two. We prove P(n + 1), that n + 1 can be written as the sum of distinct powers of two. Consider the largest power of 2 less than or equal to n + 1; let it be 2k. Then consider the number n + 1 – 2k. Since 2k ≥ 1 for any natural number k, we know that n + 1 – 2k ≤ n + 1 – 1 = n. Thus, by our inductive hypothesis, n + 1 – 2k can be written as the sum of distinct powers of two; let S be the set of these powers of two. This means that n + 1 is equal to 2k plus the sum of the powers of two in S. We now need to show that these powers of two are all distinct. We know by the inductive hypothesis that all of the powers of two in S are distinct, so the only way that a power of two would be repeated would be if 2k ∈ S. We show that this is impossible by contradiction; assume that 2k ∈ S. Since 2k ∈ S and the sum of the powers of two in S is n + 1 – 2k, this means that 2k ≤ n + 1 – 2k. This means that 2(2k) ≤ n + 1, so 2k + 1 ≤ n + 1, contradicting the fact that 2k is the largest power of two less than or equal to n + 1. We have reached a contradiction, so our assumption was wrong and 2k ∉ S. We have shown that n + 1 can be expressed as a sum of distinct powers of two, so P(n + 1) holds, completing the induction. ■ Theorem: Every natural number can be written as the sum of distinct powers of two. Proof: By strong induction. Let P(n) be “n can be written as the sum of distinct powers of two.” We prove that P(n) is true for all n. As our base case, we prove P(0), that 0 can be written as the sum of distinct powers of two. Since the empty sum of no powers of two is equal to 0, P(0) holds. For the inductive step, assume that for some n, for all n' satisfying 0 ≤ n' ≤ n, that P(n') holds and n' can be written as the sum of distinct powers of two. We prove P(n + 1), that n + 1 can be written as the sum of distinct powers of two. Consider the largest power of 2 less than or equal to n + 1; let it be 2k. Then consider the number n + 1 – 2k. Since 2k ≥ 1 for any natural number k, we know that n + 1 – 2k ≤ n + 1 – 1 = n. Thus, by our inductive hypothesis, n + 1 – 2k can be written as the sum of distinct powers of two; let S be the set of these powers of two. This means that n + 1 is equal to 2k plus the sum of the powers of two in S. We now need to show that these powers of two are all distinct. We know by the inductive hypothesis that all of the powers of two in S are distinct, so the only way that a power of two would be repeated would be if 2k ∈ S. We show that this is impossible by contradiction; assume that 2k ∈ S. Since 2k ∈ S and the sum of the powers of two in S is n + 1 – 2k, this means that 2k ≤ n + 1 – 2k. This means that 2(2k) ≤ n + 1, so 2k + 1 ≤ n + 1, contradicting the fact that 2k is the largest power of two less than or equal to n + 1. We have reached a contradiction, so our assumption was wrong and 2k ∉ S. We have shown that n + 1 can be expressed as a sum of distinct powers of two, so P(n + 1) holds, completing the induction. ■ Reformulating Strong Induction

The principle of strong induction states that if for some property P(n), we have that

P(0) is true

and

For any natural number n, if P(n') is true for all n' ≤ n, then P(n + 1) is true

then

For any natural number n, P(n) is true.

The principle of strong induction states that if for some property P(n), we have that

Assume that P(n) P(0) is true holds for n and all smaller n. and

For any natural number n, if P(n') is true for all n' ≤ n, then P(n + 1) is true

then

For any natural number n, P(n) is true.

The principle of strong induction states that if for some property P(n), we have that

P(0) is true

and

For any natural number n, if P(n') is true for all n' < n, then P(n) is true

then

For any natural number n, P(n) is true.

Application: Continued

Continued Fractions

1

1 4 + 1 1 + 2

Continued Fractions

1

1 4 + 1 1 + 2

Continued Fractions

1

1 4 + 3

2

Continued Fractions

1

1 4 + 3

2

Continued Fractions

1

2 4 + 3

Continued Fractions

1

2 4 + 3

Continued Fractions

1

14

3

Continued Fractions

1

14

3

Continued Fractions

3

14

Continued Fractions 1 3 + 1 3 + 1 1 + 1 4 + 2

Continued Fractions 1 3 + 1 3 + 1 1 + 1 4 + 2

Continued Fractions 1 3 + 1 3 + 1 1 + 9

2

Continued Fractions 1 3 + 1 3 + 1 1 + 9

2

Continued Fractions 1 3 + 1 3 + 2 1 + 9

Continued Fractions 1 3 + 1 3 + 2 1 + 9

Continued Fractions 1 3 + 1 3 + 11

9

Continued Fractions 1 3 + 1 3 + 11

9

Continued Fractions 1 3 + 9 3 + 11

Continued Fractions 1 3 + 9 3 + 11

Continued Fractions 1 3 + 42

11

Continued Fractions 1 3 + 42

11

Continued Fractions

11 3 + 42

Continued Fractions

11 3 + 42

Continued Fractions

137

42

Continued Fractions

● A continued is an expression of the form 1 a + 0 1 a + 1 1 a + 2 1 a + 3 ... ● More formally, a is either

● An n, or

● n + 1 / F, where n is an integer and F is a continued fraction.

● Continued fractions have numerous applications in number and science.

● (They're also really fun to write!)

Fun with Continued Fractions

● Every (including negative numbers) has a continued fraction. ● Harder result: every has an (infinite) continued fraction. ● If we truncate an infinite continued fraction for an irrational number, we can get progressively better approximations of that number.

Pi as a Continued Fraction 1 π=3+ 1 7+ 1 15+ 1 1+ 1 1+ 1 292+ 1 1+ 1 1+ 1 1+ 1 2+ ... Approximating

Approximating Pi

1 π=3+ 3 = 3.0000... 1 7+ 1 15+ 1 1+ 292

Approximating Pi

1 π=3+ 3 = 3.0000... 1 7+ 1 15+ And he made the1 Sea of cast bronze, ten cubits1 +from one brim to the other; it was completely292 round. [… A] line of thirty cubits measured its circumference.

1 Kings 7:23, New King James Translation

Approximating Pi

1 π=3+ 3 = 3.0000... 1 7+ 22/7 = 3.142857... 1 15+ 1 1+ 292

Approximating Pi

1 π=3+ 3 = 3.0000... 1 7+ 22/7 = 3.142857... 1 15+ 1 1+ Archimedes292 knew of this approximation, circa 250 BCE

Approximating Pi

1 π=3+ 3 = 3.0000... 1 7+ 22/7 = 3.142857... 1 336/106 = 3.1415094... 15+ 1 1+ 292

Approximating Pi

1 π=3+ 3 = 3.0000... 1 7+ 22/7 = 3.142857... 1 336/106 = 3.1415094... 15+ 1 355/113 = 3.14159292... 1+ 292

Approximating Pi

1 π=3+ 3 = 3.0000... 1 7+ 22/7 = 3.142857... 1 336/106 = 3.1415094... 15+ 1 355/113 = 3.14159292... 1+ 292

Chinese mathematician Zu Chongzhi discovered this approximation in the early fifth century; this was the best approximation of pi for over a thousand years Approximating Pi

1 π=3+ 3 = 3.0000... 1 7+ 22/7 = 3.142857... 1 336/106 = 3.1415094... 15+ 1 355/113 = 3.14159292... 1+ 292 103993/33102 = 3.1415926530...

More Continued Fractions

14

3

More Continued Fractions

14

3

More Continued Fractions

2

3

More Continued Fractions

2

3

More Continued Fractions

1 2

More Continued Fractions

1 2

More Continued Fractions

14

3

More Continued Fractions

14

3

3 1 = 14 1 4 + 1 1 + 2 More Continued Fractions

14

3

3 1 = 14 1 4 + 1 1 + 2 An Interesting Continued Fraction 1 x=1+ 1 1+ 1 1+ 1 1+ 1 1+ 1 1+ 1 1+ 1 1+ 1 1+ 1 1+ ... An Interesting Continued Fraction 1 x=1+ 1 / 1 1 1+ 1 1+ 1 1+ 1 1+ 1 1+ 1 1+ 1

An Interesting Continued Fraction 1 x=1+ 1 / 1 1 1+ 2 / 1 1 1+ 1 1+ 1 1+ 1 1+ 1 1+ 1

An Interesting Continued Fraction 1 x=1+ 1 / 1 1 1+ 2 / 1 1 1+ 3 / 2 1 1+ 1 1+ 1 1+ 1 1+ 1

An Interesting Continued Fraction 1 x=1+ 1 / 1 1 1+ 2 / 1 1 1+ 3 / 2 1 1+ 5 / 3 1 1+ 1 1+ 1 1+ 1

An Interesting Continued Fraction 1 x=1+ 1 / 1 1 1+ 2 / 1 1 1+ 3 / 2 1 1+ 5 / 3 1 1+ 8 / 5 1 1+ 1 1+ 1

An Interesting Continued Fraction 1 x=1+ 1 / 1 1 1+ 2 / 1 1 1+ 3 / 2 1 1+ 5 / 3 1 1+ 8 / 5 1 1+ 13 / 8 1 1+ 1

An Interesting Continued Fraction 1 x=1+ 1 / 1 1 1+ 2 / 1 1 1+ 3 / 2 1 1+ 5 / 3 1 1+ 8 / 5 1 1+ 13 / 8 1 1+ 21 / 13 1

An Interesting Continued Fraction 1 x=1+ 1 / 1 1 1+ 2 / 1 1 1+ 3 / 2 1 1+ 5 / 3 1 1+ 8 / 5 1 1+ 13 / 8 1 1+ 21 / 13 1 34 / 21

An Interesting Continued Fraction 1 x=1+ 1 / 1 1 1+ 2 / 1 1 Each fraction is 1+ 3 / 2 1 the of 1+ 5 / 3 1 consecutive 1+ 8 / 5 1 1+ 13 / 8 Fibonacci 1 1+ 21 / 13 numbers! 1 34 / 21

The

1+ 5 1 ϕ= √ =1+ 2 1 1+ 1 1+ 1 1+ ...

ϕ≈1.61803399

The Golden Ratio

21

34

The Golden Ratio

21

34

The Golden Ratio

21

13

The Golden Ratio

21

13

The Golden Ratio

8

13

The Golden Ratio

8

13

The Golden Ratio

8

5

The Golden Ratio

8

5

The Golden Ratio

3

5

The Golden Ratio

3

5

The Golden Ratio

3

2

The Golden Ratio

3

2

The Golden Ratio

1

2

The Golden Ratio

1

2

The Golden Ratio

The Golden Spiral

How do we prove all rational numbers have continued fractions?

Constructing a Continued Fraction 25 9

Constructing a Continued Fraction 25 7 = 2 + 9 9

Constructing a Continued Fraction 25 1 = 2 + 9 9 7

Constructing a Continued Fraction 25 1 = 2 + 9 9 7 9 7

Constructing a Continued Fraction 25 1 = 2 + 9 9 7 9 2 = 1 + 7 7

Constructing a Continued Fraction 25 1 = 2 + 9 9 7 9 1 = 1 + 7 7 2

Constructing a Continued Fraction 25 1 = 2 + 9 9 7 9 1 = 1 + 7 7 2 7

2 Constructing a Continued Fraction 25 1 = 2 + 9 9 7 9 1 = 1 + 7 7 2 7 1 = 3 + 2 2 Constructing a Continued Fraction 25 1 = 2 + 9 9 7 9 1 = 1 + 7 7 2 7 1 = 3 + 2 2 Constructing a Continued Fraction 25 1 = 2 + 9 9 7 9 1 = 1 + 7 1 3 + 2

Constructing a Continued Fraction 25 1 = 2 + 9 9 7 9 1 = 1 + 7 1 3 + 2

Constructing a Continued Fraction 25 1 = 2 + 9 1 1 + 1 3 + 2

Constructing a Continued Fraction 25 1 = 2 + 9 1 1 + 1 9 3 + 7 2 7 2

2

1 Constructing a Continued Fraction 25 1 = 2 + 9 1 1 + 1 9 3 + 7 2 7 2

2

1 Constructing a Continued Fraction 25 1 = 2 + 9 1 1 + 1 9 3 + 7 2 7 2 9 > 7 > 2 > 1 2

1 The Golden Ratio

21

34

The Golden Ratio

21

34

The Golden Ratio

21

13

The Golden Ratio

21

13

The Golden Ratio

8

13

The Golden Ratio

8

13

The Golden Ratio

8

5

The Golden Ratio

8

5

The Golden Ratio

3

5

The Golden Ratio

3

5

The Golden Ratio

3

2

The Golden Ratio

3

2

The Golden Ratio

1

2

The Golden Ratio

1

2

The Golden Ratio

The Algorithm

● For any a and b, with b ≠ 0, there exists unique integers q and r such that a = qb + r and 0 ≤ r < b

● q is the and r is the .

● If both a and b are nonnegative, then both q and r are nonnegative.

● Given a = 11 and b = 4: 11 = 2·4 + 3

● Given a = 137 and b = 42: 137 = 3·42 + 11 Theorem: Every nonnegative rational number can be expressed as a continued fraction.

Proof: By strong induction. Let P(n) be “any nonnegative rational number with denominator n can be represented as a continued fraction.” We prove that P(n) is true for all positive natural numbers.

For our base case, we prove P(1); that is, any nonnegative rational number with denominator 1 has a continued fraction. Consider an arbitrary nonnegative rational number with denominator 1; let it be m / 1 = m. Since m is a valid continued fraction and m = m / 1, P(1) holds.

For our inductive step, assume that for all 1 ≤ n' < n, P(n') is true; that is, any nonnegative rational number with denominator n' has a continued fraction. We prove that P(n) is true by showing that any nonnegative rational number with denominator n' has a continued fraction.

Consider any nonnegative rational number with denominator n; let it be m / n. Using the , write m = qn + r, where 0 ≤ r < n. We consider two cases:

Case 1: r = 0. Then m = qn, so m / n = q. Then q is a continued fraction for m / n.

Case 2: r ≠ 0. Given that m = qn + r, we have that . Since r < n, by our inductive hypothesis there is some continued fraction for n / r; call it F. Then q + 1 / F is a continued fraction for m / n.

In either case, we find a continued fraction for m / n, so P(n) holds, completing the induction. ■ Theorem: Every nonnegative rational number can be expressed as a continued fraction.

Proof: By strong induction. Let P(n) be “any nonnegative rational number with denominator n can be represented as a continued fraction.” We prove that P(n) is true for all positive natural numbers.

For our base case, we prove P(1); that is, any nonnegative rational number with denominator 1 has a continued fraction. Consider an arbitrary nonnegative rational number with denominator 1; let it be m / 1 = m. Since m is a valid continued fraction and m = m / 1, P(1) holds.

For our inductive step, assume that for all 1 ≤ n' < n, P(n') is true; that is, any nonnegative rational number with denominator n' has a continued fraction. We prove that P(n) is true by showing that any nonnegative rational number with denominator n' has a continued fraction.

Consider any nonnegative rational number with denominator n; let it be m / n. Using the division algorithm, write m = qn + r, where 0 ≤ r < n. We consider two cases:

Case 1: r = 0. Then m = qn, so m / n = q. Then q is a continued fraction for m / n.

Case 2: r ≠ 0. Given that m = qn + r, we have that . Since r < n, by our inductive hypothesis there is some continued fraction for n / r; call it F. Then q + 1 / F is a continued fraction for m / n.

In either case, we find a continued fraction for m / n, so P(n) holds, completing the induction. ■ Theorem: Every nonnegative rational number can be expressed as a continued fraction.

Proof: By strong induction. Let P(n) be “any nonnegative rational number with denominator n can be represented as a continued fraction.” We prove that P(n) is true for all positive natural numbers.

For our base case, we prove P(1); that is, any nonnegative rational number with denominator 1 has a continued fraction. Consider an arbitrary nonnegative rational number with denominator 1; let it be m / 1 = m. Since m is a valid continued fraction and m = m / 1, P(1) holds.

For our inductive step, assume that for all 1 ≤ n' < n, P(n') is true; that is, any nonnegative rational number with denominator n' has a continued fraction. We prove that P(n) is true by showing that any nonnegative rational number with denominator n' has a continued fraction.

Consider any nonnegative rational number with denominator n; let it be m / n. Using the division algorithm, write m = qn + r, where 0 ≤ r < n. We consider two cases:

Case 1: r = 0. Then m = qn, so m / n = q. Then q is a continued fraction for m / n.

Case 2: r ≠ 0. Given that m = qn + r, we have that . Since r < n, by our inductive hypothesis there is some continued fraction for n / r; call it F. Then q + 1 / F is a continued fraction for m / n.

In either case, we find a continued fraction for m / n, so P(n) holds, completing the induction. ■ Theorem: Every nonnegative rational number can be expressed as a continued fraction.

Proof: By strong induction. Let P(n) be “any nonnegative rational number with denominator n can be represented as a continued fraction.” We prove that P(n) is true for all positive natural numbers.

For our base case, we prove P(1); that is, any nonnegative rational number with denominator 1 has a continued fraction. Consider an arbitrary nonnegative rational number with denominator 1; let it be m / 1 = m. Since m is a valid continued fraction and m = m / 1, P(1) holds.

For our inductive step, assume that for all 1 ≤ n' < n, P(n') is true; that is, any nonnegative rational number with denominator n' has a continued fraction. We prove that P(n) is true by showing that any nonnegative rational number with denominator n' has a continued fraction.

Consider any nonnegative rational number with denominator n; let it be m / n. Using the division algorithm, write m = qn + r, where 0 ≤ r < n. We consider two cases:

Case 1: r = 0. Then m = qn, so m / n = q. Then q is a continued fraction for m / n.

Case 2: r ≠ 0. Given that m = qn + r, we have that . Since r < n, by our inductive hypothesis there is some continued fraction for n / r; call it F. Then q + 1 / F is a continued fraction for m / n.

In either case, we find a continued fraction for m / n, so P(n) holds, completing the induction. ■ Theorem: Every nonnegative rational number can be expressed as a continued fraction.

Proof: By strong induction. Let P(n) be “any nonnegative rational number with denominator n can be represented as a continued fraction.” We prove that P(n) is true for all positive natural numbers.

For our base case, we prove P(1); that is, any nonnegative rational number with denominator 1 has a continued fraction. Consider an arbitrary nonnegative rational number with denominator 1; let it be m / 1 = m. Since m is a valid continued fraction and m = m / 1, P(1) holds.

For our inductive step, assume that for all 1 ≤ n' < n, P(n') is true; that is, any nonnegative rational number with denominator n' has a continued fraction. We prove that P(n) is true by showing that any nonnegative rational number with denominator n' has a continued fraction.

Consider any nonnegative rational number with denominator n; let it be m / n. Using the division algorithm, write m = qn + r, where 0 ≤ r < n. We consider two cases:

Case 1: r = 0. Then m = qn, so m / n = q. Then q is a continued fraction for m / n.

Case 2: r ≠ 0. Given that m = qn + r, we have that . Since r < n, by our inductive hypothesis there is some continued fraction for n / r; call it F. Then q + 1 / F is a continued fraction for m / n.

In either case, we find a continued fraction for m / n, so P(n) holds, completing the induction. ■ Theorem: Every nonnegative rational number can be expressed as a continued fraction.

Proof: By strong induction. Let P(n) be “any nonnegative rational number with denominator n can be represented as a continued fraction.” We prove that P(n) is true for all positive natural numbers.

For our base case, we prove P(1); that is, any nonnegative rational number with denominator 1 has a continued fraction. Consider an arbitrary nonnegative rational number with denominator 1; let it be m / 1 = m. Since m is a valid continued fraction and m = m / 1, P(1) holds.

For our inductive step, assume that for all 1 ≤ n' < n, P(n') is true; that is, any nonnegative rational number with denominator n' has a continued fraction. We prove that P(n) is true by showing that any nonnegative rational number with denominator n' has a continued fraction.

Consider any nonnegative rational number with denominator n; let it be m / n. Using the division algorithm, write m = qn + r, where 0 ≤ r < n. We consider two cases:

Case 1: r = 0. Then m = qn, so m / n = q. Then q is a continued fraction for m / n.

Case 2: r ≠ 0. Given that m = qn + r, we have that . Since r < n, by our inductive hypothesis there is some continued fraction for n / r; call it F. Then q + 1 / F is a continued fraction for m / n.

In either case, we find a continued fraction for m / n, so P(n) holds, completing the induction. ■ Theorem: Every nonnegative rational number can be expressed as a continued fraction.

Proof: By strong induction. Let P(n) be “any nonnegative rational number with denominator n can be represented as a continued fraction.” We prove that P(n) is true for all positive natural numbers.

For our base case, we prove P(1); that is, any nonnegative rational number with denominator 1 has a continued fraction. Consider an arbitrary nonnegative rational number with denominator 1; let it be m / 1 = m. Since m is a valid continued fraction and m = m / 1, P(1) holds.

For our inductive step, assume that for all 1 ≤ n' < n, P(n') is true; that is, any nonnegative rational number with denominator n' has a continued fraction. We prove that P(n) is true by showing that any nonnegative rational number with denominator n' has a continued fraction.

Consider any nonnegative rational number with denominator n; let it be m / n. Using the division algorithm, write m = qn + r, where 0 ≤ r < n. We consider two cases:

Case 1: r = 0. Then m = qn, so m / n = q. Then q is a continued fraction for m / n.

Case 2: r ≠ 0. Given that m = qn + r, we have that . Since r < n, by our inductive hypothesis there is some continued fraction for n / r; call it F. Then q + 1 / F is a continued fraction for m / n.

In either case, we find a continued fraction for m / n, so P(n) holds, completing the induction. ■ Theorem: Every nonnegative rational number can be expressed as a continued fraction.

Proof: By strong induction. Let P(n) be “any nonnegative rational number with denominator n can be represented as a continued fraction.” We prove that P(n) is true for all positive natural numbers.

For our base case, we prove P(1); that is, any nonnegative rational number with denominator 1 has a continued fraction. Consider an arbitrary nonnegative rational number with denominator 1; let it be m / 1 = m. Since m is a valid continued fraction and m = m / 1, P(1) holds.

For our inductive step, assume that for all 1 ≤ n' < n, P(n') is true; that is, any nonnegative rational number with denominator n' has a continued fraction. We prove that P(n) is true by showing that any nonnegative rational number with denominator n' has a continued fraction.

Consider any nonnegative rational number with denominator n; let it be m / n. Using the division algorithm, write m = qn + r, where 0 ≤ r < n. We consider two cases:

Case 1: r = 0. Then m = qn, so m / n = q. Then q is a continued fraction for m / n.

Case 2: r ≠ 0. Given that m = qn + r, we have that . Since r < n, by our inductive hypothesis there is some continued fraction for n / r; call it F. Then q + 1 / F is a continued fraction for m / n.

In either case, we find a continued fraction for m / n, so P(n) holds, completing the induction. ■ Theorem: Every nonnegative rational number can be expressed as a continued fraction.

Proof: By strong induction. Let P(n) be “any nonnegative rational number with denominator n can be represented as a continued fraction.” We prove that P(n) is true for all positive natural numbers.

For our base case, we prove P(1); that is, any nonnegative rational number with denominator 1 has a continued fraction. Consider an arbitrary nonnegative rational number with denominator 1; let it be m / 1 = m. Since m is a valid continued fraction and m = m / 1, P(1) holds.

For our inductive step, assume that for all 1 ≤ n' < n, P(n') is true; that is, any nonnegative rational number with denominator n' has a continued fraction. We prove that P(n) is true by showing that any nonnegative rational number with denominator n has a continued fraction.

Consider any nonnegative rational number with denominator n; let it be m / n. Using the division algorithm, write m = qn + r, where 0 ≤ r < n. We consider two cases:

Case 1: r = 0. Then m = qn, so m / n = q. Then q is a continued fraction for m / n.

Case 2: r ≠ 0. Given that m = qn + r, we have that . Since r < n, by our inductive hypothesis there is some continued fraction for n / r; call it F. Then q + 1 / F is a continued fraction for m / n.

In either case, we find a continued fraction for m / n, so P(n) holds, completing the induction. ■ Theorem: Every nonnegative rational number can be expressed as a continued fraction.

Proof: By strong induction. Let P(n) be “any nonnegative rational number with denominator n can be represented as a continued fraction.” We prove that P(n) is true for all positive natural numbers.

For our base case, we prove P(1); that is, any nonnegative rational number with denominator 1 has a continued fraction. Consider an arbitrary nonnegative rational number with denominator 1; let it be m / 1 = m. Since m is a valid continued fraction and m = m / 1, P(1) holds.

For our inductive step, assume that for all 1 ≤ n' < n, P(n') is true; that is, any nonnegative rational number with denominator n' has a continued fraction. We prove that P(n) is true by showing that any nonnegative rational number with denominator n has a continued fraction.

Consider any nonnegative rational number with denominator n; let it be m / n. Using the division algorithm, write m = qn + r, where 0 ≤ r < n. We consider two cases:

Case 1: r = 0. Then m = qn, so m / n = q. Then q is a continued fraction for m / n.

Case 2: r ≠ 0. Given that m = qn + r, we have that . Since r < n, by our inductive hypothesis there is some continued fraction for n / r; call it F. Then q + 1 / F is a continued fraction for m / n.

In either case, we find a continued fraction for m / n, so P(n) holds, completing the induction. ■ Theorem: Every nonnegative rational number can be expressed as a continued fraction.

Proof: By strong induction. Let P(n) be “any nonnegative rational number with denominator n can be represented as a continued fraction.” We prove that P(n) is true for all positive natural numbers.

For our base case, we prove P(1); that is, any nonnegative rational number with denominator 1 has a continued fraction. Consider an arbitrary nonnegative rational number with denominator 1; let it be m / 1 = m. Since m is a valid continued fraction and m = m / 1, P(1) holds.

For our inductive step, assume that for all 1 ≤ n' < n, P(n') is true; that is, any nonnegative rational number with denominator n' has a continued fraction. We prove that P(n) is true by showing that any nonnegative rational number with denominator n has a continued fraction.

Consider any nonnegative rational number with denominator n; let it be m / n. Using the division algorithm, write m = qn + r, where 0 ≤ r < n. We consider two cases:

Case 1: r = 0. Then m = qn, so m / n = q. Then q is a continued fraction for m / n.

Case 2: r ≠ 0. Given that m = qn + r, we have that . Since r < n, by our inductive hypothesis there is some continued fraction for n / r; call it F. Then q + 1 / F is a continued fraction for m / n.

In either case, we find a continued fraction for m / n, so P(n) holds, completing the induction. ■ Theorem: Every nonnegative rational number can be expressed as a continued fraction.

Proof: By strong induction. Let P(n) be “any nonnegative rational number with denominator n can be represented as a continued fraction.” We prove that P(n) is true for all positive natural numbers.

For our base case, we prove P(1); that is, any nonnegative rational number with denominator 1 has a continued fraction. Consider an arbitrary nonnegative rational number with denominator 1; let it be m / 1 = m. Since m is a valid continued fraction and m = m / 1, P(1) holds.

For our inductive step, assume that for all 1 ≤ n' < n, P(n') is true; that is, any nonnegative rational number with denominator n' has a continued fraction. We prove that P(n) is true by showing that any nonnegative rational number with denominator n has a continued fraction.

Consider any nonnegative rational number with denominator n; let it be m / n. Using the division algorithm, write m = qn + r, where 0 ≤ r < n. We consider two cases:

Case 1: r = 0. Then m = qn, so m / n = q. Then q is a continued fraction for m / n.

Case 2: r ≠ 0. Given that m = qn + r, weThe Thehave divisionthatdivision algorithm algorithm is is . thethe Since r < n, by our inductive hypothesismathematically there is some continued rigorous fraction way for nto / r ; call it F. Then q + 1 / F is a continued fractionmathematically for m / n. rigorous way to justify getting a quotient and In either case, we find a continued fractionjustify for m /getting n, so P(n ) holds,a quotient completing and the induction. ■ aa remainder.remainder. Theorem: Every nonnegative rational number can be expressed as a continued fraction.

Proof: By strong induction. Let P(n) be “any nonnegative rational number with denominator n can be represented as a continued fraction.” We prove that P(n) is true for all positive natural numbers.

For our base case, we prove P(1); that is, any nonnegative rational number with denominator 1 has a continued fraction. Consider an arbitrary nonnegative rational number with denominator 1; let it be m / 1 = m. Since m is a valid continued fraction and m = m / 1, P(1) holds.

For our inductive step, assume that for all 1 ≤ n' < n, P(n') is true; that is, any nonnegative rational number with denominator n' has a continued fraction. We prove that P(n) is true by showing that any nonnegative rational number with denominator n has a continued fraction.

Consider any nonnegative rational number with denominator n; let it be m / n. Using the division algorithm, write m = qn + r, where 0 ≤ r < n. We consider two cases:

Case 1: r = 0. Then m = qn, so m / n = q. Then q is a continued fraction for m / n.

Case 2: r ≠ 0. Given that m = qn + r, we have that . Since r < n, by our inductive hypothesis there is some continued fraction for n / r; call it F. Then q + 1 / F is a continued fraction for m / n.

In either case, we find a continued fraction for m / n, so P(n) holds, completing the induction. ■ Theorem: Every nonnegative rational number can be expressed as a continued fraction.

Proof: By strong induction. Let P(n) be “any nonnegative rational number with denominator n can be represented as a continued fraction.” We prove that P(n) is true for all positive natural numbers.

For our base case, we prove P(1); that is, any nonnegative rational number with denominator 1 has a continued fraction. Consider an arbitrary nonnegative rational number with denominator 1; let it be m / 1 = m. Since m is a valid continued fraction and m = m / 1, P(1) holds.

For our inductive step, assume that for all 1 ≤ n' < n, P(n') is true; that is, any nonnegative rational number with denominator n' has a continued fraction. We prove that P(n) is true by showing that any nonnegative rational number with denominator n has a continued fraction.

Consider any nonnegative rational number with denominator n; let it be m / n. Using the division algorithm, write m = qn + r, where 0 ≤ r < n. We consider two cases:

Case 1: r = 0. Then m = qn, so m / n = q. Then q is a continued fraction for m / n.

Case 2: r ≠ 0. Given that m = qn + r, we have that . Since r < n, by our inductive hypothesis there is some continued fraction for n / r; call it F. Then q + 1 / F is a continued fraction for m / n.

In either case, we find a continued fraction for m / n, so P(n) holds, completing the induction. ■ Theorem: Every nonnegative rational number can be expressed as a continued fraction.

Proof: By strong induction. Let P(n) be “any nonnegative rational number with denominator n can be represented as a continued fraction.” We prove that P(n) is true for all positive natural numbers.

For our base case, we prove P(1); that is, any nonnegative rational number with denominator 1 has a continued fraction. Consider an arbitrary nonnegative rational number with denominator 1; let it be m / 1 = m. Since m is a valid continued fraction and m = m / 1, P(1) holds.

For our inductive step, assume that for all 1 ≤ n' < n, P(n') is true; that is, any nonnegative rational number with denominator n' has a continued fraction. We prove that P(n) is true by showing that any nonnegative rational number with denominator n has a continued fraction.

Consider any nonnegative rational number with denominator n; let it be m / n. Using the division algorithm, write m = qn + r, where 0 ≤ r < n. We consider two cases:

Case 1: r = 0. Then m = qn, so m / n = q. Then q is a continued fraction for m / n.

Case 2: r ≠ 0. Given that m = qn + r, we have that . Since r < n, by our inductive hypothesis there is some continued fraction for n / r; call it F. Then q + 1 / F is a continued fraction for m / n.

In either case, we find a continued fraction for m / n, so P(n) holds, completing the induction. ■ Theorem: Every nonnegative rational number can be expressed as a continued fraction.

Proof: By strong induction. Let P(n) be “any nonnegative rational number with denominator n can be represented as a continued fraction.” We prove that P(n) is true for all positive natural numbers.

For our base case, we prove P(1); that is, any nonnegative rational number with denominator 1 has a continued fraction. Consider an arbitrary nonnegative rational number with denominator 1; let it be m / 1 = m. Since m is a valid continued fraction and m = m / 1, P(1) holds.

For our inductive step, assume that for all 1 ≤ n' < n, P(n') is true; that is, any nonnegative rational number with denominator n' has a continued fraction. We prove that P(n) is true by showing that any nonnegative rational number with denominator n has a continued fraction.

Consider any nonnegative rational number with denominator n; let it be m / n. Using the division algorithm, write m = qn + r, where 0 ≤ r < n. We consider two cases:

Case 1: r = 0. Then m = qn, so m / n = q. Then q is a continued fraction for m / n.

Case 2: r ≠ 0. Given that m = qn + r, we have that . Since r < n, by our inductive hypothesis there is some continued fraction for n / r; call it F. Then q + 1 / F is a continued fraction for m / n.

In either case, we find a continued fraction for m / n, so P(n) holds, completing the induction. ■ Theorem: Every nonnegative rational number can be expressed as a continued fraction.

Proof: By strong induction. Let P(n) be “any nonnegative rational number with denominator n can be represented as a continued fraction.” We prove that P(n) is true for all positive natural numbers.

For our base case, we prove P(1); that is, any nonnegative rational number with denominator 1 has a continued fraction. Consider an arbitrary nonnegative rational number with denominator 1; let it be m / 1 = m. Since m is a valid continued fraction and m = m / 1, P(1) holds.

For our inductive step, assume that for all 1 ≤ n' < n, P(n') is true; that is, any nonnegative rational number with denominator n' has a continued fraction. We prove that P(n) is true by showing that any nonnegative rational number with denominator n has a continued fraction.

Consider any nonnegative rational number with denominator n; let it be m / n. Using the division algorithm, write m = qn + r, where 0 ≤ r < n. We consider two cases:

Case 1: r = 0. Then m = qn, so m / n = q. Then q is a continued fraction for m / n. m r 1 =q+ =q+ Case 2: r ≠ 0. Given that m = qn + r, we have that n n n / r . Since r < n, by our inductive hypothesis there is some continued fraction for n / r; call it F. Then q + 1 / F is a continued fraction for m / n.

In either case, we find a continued fraction for m / n, so P(n) holds, completing the induction. ■ Theorem: Every nonnegative rational number can be expressed as a continued fraction.

Proof: By strong induction. Let P(n) be “any nonnegative rational number with denominator n can be represented as a continued fraction.” We prove that P(n) is true for all positive natural numbers.

For our base case, we prove P(1); that is, any nonnegative rational number with denominator 1 has a continued fraction. Consider an arbitrary nonnegative rational number with denominator 1; let it be m / 1 = m. Since m is a valid continued fraction and m = m / 1, P(1) holds.

For our inductive step, assume that for all 1 ≤ n' < n, P(n') is true; that is, any nonnegative rational number with denominator n' has a continued fraction. We prove that P(n) is true by showing that any nonnegative rational number with denominator n has a continued fraction.

Consider any nonnegative rational number with denominator n; let it be m / n. Using the division algorithm, write m = qn + r, where 0 ≤ r < n. We consider two cases:

Case 1: r = 0. Then m = qn, so m / n = q. Then q is a continued fraction for m / n. m r 1 =q+ =q+ Case 2: r ≠ 0. Given that m = qn + r, we have that n n n / r . Since 1 ≤ r < n, by our inductive hypothesis there is some continued fraction for n / r; call it F. Then q + 1 / F is a continued fraction for m / n.

In either case, we find a continued fraction for m / n, so P(n) holds, completing the induction. ■ Theorem: Every nonnegative rational number can be expressed as a continued fraction.

Proof: By strong induction. Let P(n) be “any nonnegative rational number with denominator n can be represented as a continued fraction.” We prove that P(n) is true for all positive natural numbers. Notice how we're using the fact that For our base case,Notice we prove howP(1); thatwe're is, any using nonnegative the fact rational that number with denominator 1 has r < nar < n continued toto fraction. justifyjustify Consider usingusing anthethe arbitrary inductiveinductive nonnegative rational number with denominator 1; let it be hypothesis.m / 1 = m. Since m is a valid continued fraction and m = m / 1, P(1) holds. hypothesis.

For our inductive step, assume that for all 1 ≤ n' < n, P(n') is true; that is, any nonnegative rationalSinceSince number ourour with inductioninduction denominator startsstarts n' has ataat continued 1,1, wewe fraction.alsoalso We prove that P(n) is true by showing that any nonnegative≥ rational number with denominator n has a continued havefraction.have toto showshow thatthat r r ≥ 1.1. OtherwiseOtherwise wewe

Consider any nonnegativemightmight bebe rational outout ofnumberof thethe with rangerange denominator ofof wherewhere n; let it thebethe m / n. Using the division algorithm, writeinductive m = qn + r, hypothesiswhere 0 ≤ r < nholds.. We consider two cases: inductive hypothesis holds. Case 1: r = 0. Then m = qn, so m / n = q. Then q is a continued fraction for m / n. m r 1 =q+ =q+ Case 2: r ≠ 0. Given that m = qn + r, we have that n n n / r . Since 1 ≤ r < n, by our inductive hypothesis there is some continued fraction for n / r; call it F. Then q + 1 / F is a continued fraction for m / n.

In either case, we find a continued fraction for m / n, so P(n) holds, completing the induction. ■ Theorem: Every nonnegative rational number can be expressed as a continued fraction.

Proof: By strong induction. Let P(n) be “any nonnegative rational number with denominator n can be represented as a continued fraction.” We prove that P(n) is true for all positive natural numbers.

For our base case, we prove P(1); that is, any nonnegative rational number with denominator 1 has a continued fraction. Consider an arbitrary nonnegative rational number with denominator 1; let it be m / 1 = m. Since m is a valid continued fraction and m = m / 1, P(1) holds.

For our inductive step, assume that for all 1 ≤ n' < n, P(n') is true; that is, any nonnegative rational number with denominator n' has a continued fraction. We prove that P(n) is true by showing that any nonnegative rational number with denominator n has a continued fraction.

Consider any nonnegative rational number with denominator n; let it be m / n. Using the division algorithm, write m = qn + r, where 0 ≤ r < n. We consider two cases:

Case 1: r = 0. Then m = qn, so m / n = q. Then q is a continued fraction for m / n. m r 1 =q+ =q+ Case 2: r ≠ 0. Given that m = qn + r, we have that n n n / r . Since 1 ≤ r < n, by our inductive hypothesis there is some continued fraction for n / r; call it F. Then q + 1 / F is a continued fraction for m / n.

In either case, we find a continued fraction for m / n, so P(n) holds, completing the induction. ■ Theorem: Every nonnegative rational number can be expressed as a continued fraction.

Proof: By strong induction. Let P(n) be “any nonnegative rational number with denominator n can be represented as a continued fraction.” We prove that P(n) is true for all positive natural numbers.

For our base case, we prove P(1); that is, any nonnegative rational number with denominator 1 has a continued fraction. Consider an arbitrary nonnegative rational number with denominator 1; let it be m / 1 = m. Since m is a valid continued fraction and m = m / 1, P(1) holds.

For our inductive step, assume that for all 1 ≤ n' < n, P(n') is true; that is, any nonnegative rational number with denominator n' has a continued fraction. We prove that P(n) is true by showing that any nonnegative rational number with denominator n has a continued fraction.

Consider any nonnegative rational number with denominator n; let it be m / n. Using the division algorithm, write m = qn + r, where 0 ≤ r < n. We consider two cases:

Case 1: r = 0. Then m = qn, so m / n = q. Then q is a continued fraction for m / n. m r 1 =q+ =q+ Case 2: r ≠ 0. Given that m = qn + r, we have that n n n / r . Since 1 ≤ r < n, by our inductive hypothesis there is some continued fraction for n / r; call it F. Then q + 1 / F is a continued fraction for m / n.

In either case, we find a continued fraction for m / n, so P(n) holds, completing the induction. ■ Theorem: Every nonnegative rational number can be expressed as a continued fraction.

Proof: By strong induction. Let P(n) be “any nonnegative rational number with denominator n can be represented as a continued fraction.” We prove that P(n) is true for all positive natural numbers.

For our base case, we prove P(1); that is, any nonnegative rational number with denominator 1 has a continued fraction. Consider an arbitrary nonnegative rational number with denominator 1; let it be m / 1 = m. Since m is a valid continued fraction and m = m / 1, P(1) holds.

For our inductive step, assume that for all 1 ≤ n' < n, P(n') is true; that is, any nonnegative rational number with denominator n' has a continued fraction. We prove that P(n) is true by showing that any nonnegative rational number with denominator n has a continued fraction.

Consider any nonnegative rational number with denominator n; let it be m / n. Using the division algorithm, write m = qn + r, where 0 ≤ r < n. We consider two cases:

Case 1: r = 0. Then m = qn, so m / n = q. Then q is a continued fraction for m / n. m r 1 =q+ =q+ Case 2: r ≠ 0. Given that m = qn + r, we have that n n n / r . Since 1 ≤ r < n, by our inductive hypothesis there is some continued fraction for n / r; call it F. Then q + 1 / F is a continued fraction for m / n.

In either case, we find a continued fraction for m / n, so P(n) holds, completing the induction. ■ Theorem: Every nonnegative rational number can be expressed as a continued fraction.

Proof: By strong induction. Let P(n) be “any nonnegative rational number with denominator n can be represented as a continued fraction.” We prove that P(n) is true for all positive natural numbers.

For our base case, we prove P(1); that is, any nonnegative rational number with denominator 1 has a continued fraction. Consider an arbitrary nonnegative rational number with denominator 1; let it be m / 1 = m. Since m is a valid continued fraction and m = m / 1, P(1) holds.

For our inductive step, assume that for all 1 ≤ n' < n, P(n') is true; that is, any nonnegative rational number with denominator n' has a continued fraction. We prove that P(n) is true by showing that any nonnegative rational number with denominator n has a continued fraction.

Consider any nonnegative rational number with denominator n; let it be m / n. Using the division algorithm, write m = qn + r, where 0 ≤ r < n. We consider two cases:

Case 1: r = 0. Then m = qn, so m / n = q. Then q is a continued fraction for m / n. m r 1 =q+ =q+ Case 2: r ≠ 0. Given that m = qn + r, we have that n n n / r . Since 1 ≤ r < n, by our inductive hypothesis there is some continued fraction for n / r; call it F. Then q + 1 / F is a continued fraction for m / n.

In either case, we find a continued fraction for m / n, so P(n) holds, completing the induction. ■ For more on continued fractions: http://www.maths.surrey.ac.uk/hosted-sites/R.Knott/Fibonacci/cfINTRO.html

The Well-Ordering Principle

Extremal Cases

● Our proof about powers of two relied on a key step: Let 2k be the largest power of two less than or equal to n + 1. ● Many proofs work by picking some extremal objects (the largest x such that..., the smallest y such that..., etc.)

The Well-Ordering Principle

● The well-ordering principle is the following: Any nonempty set of natural numbers has a least element. ● Examples:

● The least element of {1, 2, 3} is 1. ● The least element of ℕ is 0. ● There is no least element of ℤℤ , but is not a set of natural numbers. ● There is no least element of Ø, but Ø is empty.

Proof by Well-Ordering

● Many proofs by induction or strong induction can be rewritten as proofs using the well-ordering principle.

● To prove that P(n) is true for all natural numbers n:

● Consider the set S = { n | n ∈ ℕ and P(n) is false} of all natural numbers for which P(n) is false.

● Assume, for the sake of contradiction, that S is nonempty.

● Using the well-ordering principle, take the smallest element

of S, call it n0.

● Derive a contradiction with n0.

● Conclude that S must be empty, so P(n) is always true.

n 2i=2n+1−1 Theorem: For any natural number n, ∑i=0 Proof: Let S be the set { n ∈ ℕ | }. We prove that S must be empty by contradiction; assume that S is nonempty. By

the well-ordering principle, there is a least element of S, call it n0. We consider two cases:

Case 1: n0 = 0. But this is impossible, since we know that

Case 2: n0 > 0. Then . Since n0 ∈ S, we know that . Therefore,

But this means that n0 – 1 ∈ S, contradicting the fact that n0 is the least element of S. We have reached a contradiction, so our assumption must have been wrong and S is empty. Thus for any natural number n, . ■ n 2i=2n+1−1 Theorem: For any natural number n, ∑i=0 n Proof: Let S be the set { n ∈ ℕ | 2 i ≠ 2 n + 1 − 1 }. We prove that S ∑i=0 must be empty by contradiction; assume that S is nonempty. By

the well-ordering principle, there is a least element of S, call it n0. We consider two cases:

Case 1: n0 = 0. But this is impossible, since we know that

Case 2: n0 > 0. Then . Since n0 ∈ S, we know that . Therefore,

But this means that n0 – 1 ∈ S, contradicting the fact that n0 is the least element of S. We have reached a contradiction, so our assumption must have been wrong and S is empty. Thus for any natural number n, . ■ n 2i=2n+1−1 Theorem: For any natural number n, ∑i=0 n Proof: Let S be the set { n ∈ ℕ | 2 i ≠ 2 n + 1 − 1 }. We prove that S ∑i=0 must be empty by contradiction; assume that S is nonempty. By

the well-ordering principle, there is a least element of S, call it n0. We considerThisThis setset two SS iscases:is thethe setset ofof allall naturalnatural numbersnumbers nn wherewhere thethe theoremtheorem isn'tisn't true.true. IfIf thisthis setset isis Case 1: n = 0. But this is impossible, since we know that empty,empty,0 we'rewe're done.done. SoSo ourour goalgoal nownow isis toto

Case 2: n0 > 0.show Then that it has to be empty. . Since n0 ∈ S, we show that it has to be empty. know that . Therefore,

But this means that n0 – 1 ∈ S, contradicting the fact that n0 is the least element of S. We have reached a contradiction, so our assumption must have been wrong and S is empty. Thus for any natural number n, . ■ n 2i=2n+1−1 Theorem: For any natural number n, ∑i=0 n Proof: Let S be the set { n ∈ ℕ | 2 i ≠ 2 n + 1 − 1 }. We prove that S ∑i=0 must be empty by contradiction; assume that S is nonempty. By

the well-ordering principle, there is a least element of S, call it n0. We consider two cases:

Case 1: n0 = 0. But this is impossible, since we know that

Case 2: n0 > 0. Then . Since n0 ∈ S, we know that . Therefore,

But this means that n0 – 1 ∈ S, contradicting the fact that n0 is the least element of S. We have reached a contradiction, so our assumption must have been wrong and S is empty. Thus for any natural number n, . ■ n 2i=2n+1−1 Theorem: For any natural number n, ∑i=0 n Proof: Let S be the set { n ∈ ℕ | 2 i ≠ 2 n + 1 − 1 }. We prove that S ∑i=0 must be empty by contradiction; assume that S is nonempty. By

the well-ordering principle, there is a least element of S, call it n0. We consider two cases:

Case 1: n0 = 0. But this is impossible, since we know that

Case 2: n0 > 0. Then . Since n0 ∈ S, we know that . Therefore,

But this means that n0 – 1 ∈ S, contradicting the fact that n0 is the least element of S. We have reached a contradiction, so our assumption must have been wrong and S is empty. Thus for any natural number n, . ■ n 2i=2n+1−1 Theorem: For any natural number n, ∑i=0 n Proof: Let S be the set { n ∈ ℕ | 2 i ≠ 2 n + 1 − 1 }. We prove that S ∑i=0 must be empty by contradiction; assume that S is nonempty. By

the well-ordering principle, there is a least element of S, call it n0. We consider two cases:

Case 1: n0 = 0. But this is impossible, since we know that

Case 2: n0 > 0. Then . Since n0 ∈ S, we know that . Therefore,

But this means that n0 – 1 ∈ S, contradicting the fact that n0 is the least element of S. We have reached a contradiction, so our assumption must have been wrong and S is empty. Thus for any natural number n, . ■ n 2i=2n+1−1 Theorem: For any natural number n, ∑i=0 n Proof: Let S be the set { n ∈ ℕ | 2 i ≠ 2 n + 1 − 1 }. We prove that S ∑i=0 must be empty by contradiction; assume that S is nonempty. By

the well-ordering principle, there is a least element of S, call it n0. We consider two cases:

Case 1: n0 = 0. But this is impossible, since we know that AnAn importantimportant detaildetail herehere isis thatthat we'rewe're pickingpicking Case 2: n0 > 0. Then . Since n0 ∈ S, we the smallest element of S, not just any know that the smallest . elementTherefore, of S, not just any arbitraryarbitrary elementelement ofof SS.. We'llWe'll useuse thisthis factfact laterlater on.on.

But this means that n0 – 1 ∈ S, contradicting the fact that n0 is the least element of S. We have reached a contradiction, so our assumption must have been wrong and S is empty. Thus for any natural number n, . ■ n 2i=2n+1−1 Theorem: For any natural number n, ∑i=0 n Proof: Let S be the set { n ∈ ℕ | 2 i ≠ 2 n + 1 − 1 }. We prove that S ∑i=0 must be empty by contradiction; assume that S is nonempty. By

the well-ordering principle, there is a least element of S, call it n0. We consider two cases:

Case 1: n0 = 0. But this is impossible, since we know that

Case 2: n0 > 0. Then . Since n0 ∈ S, we know that . Therefore,

But this means that n0 – 1 ∈ S, contradicting the fact that n0 is the least element of S. We have reached a contradiction, so our assumption must have been wrong and S is empty. Thus for any natural number n, . ■ n 2i=2n+1−1 Theorem: For any natural number n, ∑i=0 n Proof: Let S be the set { n ∈ ℕ | 2 i ≠ 2 n + 1 − 1 }. We prove that S ∑i=0 must be empty by contradiction; assume that S is nonempty. By

the well-ordering principle, there is a least element of S, call it n0. We consider two cases:

Case 1: n0 = 0. But this is impossible, since we know that

Case 2: n0 > 0. Then . Since n0 ∈ S, we know that . Therefore,

But this means that n0 – 1 ∈ S, contradicting the fact that n0 is the least element of S. We have reached a contradiction, so our assumption must have been wrong and S is empty. Thus for any natural number n, . ■ n 2i=2n+1−1 Theorem: For any natural number n, ∑i=0 n Proof: Let S be the set { n ∈ ℕ | 2 i ≠ 2 n + 1 − 1 }. We prove that S ∑i=0 must be empty by contradiction; assume that S is nonempty. By

the well-ordering principle, there is a least element of S, call it n0. We consider two cases:

0 2i=1 Case 1: n0 = 0. But this is impossible, since we know that ∑ i = 0

Case 2: n0 > 0. Then . Since n0 ∈ S, we know that . Therefore,

But this means that n0 – 1 ∈ S, contradicting the fact that n0 is the least element of S. We have reached a contradiction, so our assumption must have been wrong and S is empty. Thus for any natural number n, . ■ n 2i=2n+1−1 Theorem: For any natural number n, ∑i=0 n Proof: Let S be the set { n ∈ ℕ | 2 i ≠ 2 n + 1 − 1 }. We prove that S ∑i=0 must be empty by contradiction; assume that S is nonempty. By

the well-ordering principle, there is a least element of S, call it n0. We consider two cases:

0 Case 1: n = 0. But this is impossible, since we know that ∑ 2 i = 1 0 n n −1 i=0 0 i 0 i n 2 =( 2 )+2 0 Case 2: n0 > 0. Then ∑ i= 0 ∑ i = 0 . Since n0 ∈ S, we know that . Therefore,

But this means that n0 – 1 ∈ S, contradicting the fact that n0 is the least element of S. We have reached a contradiction, so our assumption must have been wrong and S is empty. Thus for any natural number n, . ■ n 2i=2n+1−1 Theorem: For any natural number n, ∑i=0 n Proof: Let S be the set { n ∈ ℕ | 2 i ≠ 2 n + 1 − 1 }. We prove that S ∑i=0 must be empty by contradiction; assume that S is nonempty. By

the well-ordering principle, there is a least element of S, call it n0. We consider two cases:

0 Case 1: n = 0. But this is impossible, since we know that ∑ 2 i = 1 0 n n −1 i=0 0 i 0 i n 2 =( 2 )+2 0 Case 2: n0 > 0. Then ∑ i= 0 ∑ i = 0 . Since n0 ∈ S, we know that . Therefore, ThisThis isis notationallynotationally dense,dense, butbut we'rewe're justjust pullingpulling offoff thethe lastlast termterm ofof thethe sum.sum. SinceSince wewe knowknow thatthat nn0 >> 0,0, thethe upperupper But this means that n – 1 ∈ S, 0contradicting the fact that n is the bound0 on this sum is still a 0 least element of S.bound We have on reachedthis sum a contradiction,is still a so our assumption must have beennaturalnatural wrong number.number. and S is empty. Thus for any natural number n, . ■ n 2i=2n+1−1 Theorem: For any natural number n, ∑i=0 n Proof: Let S be the set { n ∈ ℕ | 2 i ≠ 2 n + 1 − 1 }. We prove that S ∑i=0 must be empty by contradiction; assume that S is nonempty. By

the well-ordering principle, there is a least element of S, call it n0. We consider two cases:

0 Case 1: n = 0. But this is impossible, since we know that ∑ 2 i = 1 0 n n −1 i=0 0 i 0 i n 2 =( 2 )+2 0 Case 2: n0 > 0. Then ∑ i= 0 ∑ i = 0 . Since n0 ∈ S, we know that . Therefore,

But this means that n0 – 1 ∈ S, contradicting the fact that n0 is the least element of S. We have reached a contradiction, so our assumption must have been wrong and S is empty. Thus for any natural number n, . ■ n 2i=2n+1−1 Theorem: For any natural number n, ∑i=0 n Proof: Let S be the set { n ∈ ℕ | 2 i ≠ 2 n + 1 − 1 }. We prove that S ∑i=0 must be empty by contradiction; assume that S is nonempty. By

the well-ordering principle, there is a least element of S, call it n0. We consider two cases:

0 Case 1: n = 0. But this is impossible, since we know that ∑ 2 i = 1 0 n n −1 i=0 0 i 0 i n 2 =( 2 )+2 0 Case 2: n0 > 0. Then ∑ i= 0 ∑ i = 0 . Since n0 ∈ S, we n 0 i n +1 2 ≠2 0 −1 know that ∑ i = 0 . Therefore,

But this means that n0 – 1 ∈ S, contradicting the fact that n0 is the least element of S. We have reached a contradiction, so our assumption must have been wrong and S is empty. Thus for any natural number n, . ■ n 2i=2n+1−1 Theorem: For any natural number n, ∑i=0 n Proof: Let S be the set { n ∈ ℕ | 2 i ≠ 2 n + 1 − 1 }. We prove that S ∑i=0 must be empty by contradiction; assume that S is nonempty. By

the well-ordering principle, there is a least element of S, call it n0. We consider two cases:

0 Case 1: n = 0. But this is impossible, since we know that ∑ 2 i = 1 0 n n −1 i=0 0 i 0 i n 2 =( 2 )+2 0 Case 2: n0 > 0. Then ∑ i= 0 ∑ i = 0 . Since n0 ∈ S, we n 0 i n +1 2 ≠2 0 −1 know that ∑ i = 0 . Therefore, n −1 0 i n n +1 ( 2 )+2 0≠2 0 −1 ∑i=0

But this means that n0 – 1 ∈ S, contradicting the fact that n0 is the least element of S. We have reached a contradiction, so our assumption must have been wrong and S is empty. Thus for any natural number n, . ■ n 2i=2n+1−1 Theorem: For any natural number n, ∑i=0 n Proof: Let S be the set { n ∈ ℕ | 2 i ≠ 2 n + 1 − 1 }. We prove that S ∑i=0 must be empty by contradiction; assume that S is nonempty. By

the well-ordering principle, there is a least element of S, call it n0. We consider two cases:

0 Case 1: n = 0. But this is impossible, since we know that ∑ 2 i = 1 0 n n −1 i=0 0 i 0 i n 2 =( 2 )+2 0 Case 2: n0 > 0. Then ∑ i= 0 ∑ i = 0 . Since n0 ∈ S, we n 0 i n +1 2 ≠2 0 −1 know that ∑ i = 0 . Therefore, n −1 0 i n n +1 ( 2 )+2 0≠2 0 −1 ∑i=0 n −1 0 i n +1 n n n 2 ≠2 0 −2 0−1=2(2 0 )−2 0−1 ∑i=0

But this means that n0 – 1 ∈ S, contradicting the fact that n0 is the least element of S. We have reached a contradiction, so our assumption must have been wrong and S is empty. Thus for any natural number n, . ■ n 2i=2n+1−1 Theorem: For any natural number n, ∑i=0 n Proof: Let S be the set { n ∈ ℕ | 2 i ≠ 2 n + 1 − 1 }. We prove that S ∑i=0 must be empty by contradiction; assume that S is nonempty. By

the well-ordering principle, there is a least element of S, call it n0. We consider two cases:

0 Case 1: n = 0. But this is impossible, since we know that ∑ 2 i = 1 0 n n −1 i=0 0 i 0 i n 2 =( 2 )+2 0 Case 2: n0 > 0. Then ∑ i= 0 ∑ i = 0 . Since n0 ∈ S, we n 0 i n +1 2 ≠2 0 −1 know that ∑ i = 0 . Therefore, n −1 0 i n n +1 ( 2 )+2 0≠2 0 −1 ∑i=0 n −1 0 i n +1 n n n 2 ≠2 0 −2 0−1=2(2 0 )−2 0−1 ∑i=0

But this means that n0 – 1 ∈ S, contradicting the fact that n0 is the least element of S. We have reached a contradiction, so our assumption must have been wrong and S is empty. Thus for any natural number n, . ■ n 2i=2n+1−1 Theorem: For any natural number n, ∑i=0 n Proof: Let S be the set { n ∈ ℕ | 2 i ≠ 2 n + 1 − 1 }. We prove that S ∑i=0 must be empty by contradiction; assume that S is nonempty. By

the well-ordering principle, there is a least element of S, call it n0. We consider two cases:

0 Case 1: n = 0. But this is impossible, since we know that ∑ 2 i = 1 0 n n −1 i=0 0 i 0 i n 2 =( 2 )+2 0 Case 2: n0 > 0. Then ∑ i= 0 ∑ i = 0 . Since n0 ∈ S, we n 0 i n +1 2 ≠2 0 −1 know that ∑ i = 0 . Therefore, n −1 0 i n n +1 ( 2 )+2 0≠2 0 −1 ∑i=0 n −1 0 i n +1 n n n 2 ≠2 0 −2 0−1=2(2 0 )−2 0−1 ∑i=0 n −1 0 i n 2 ≠2 0−1 ∑i=0

But this means that n0 – 1 ∈ S, contradicting the fact that n0 is the least element of S. We have reached a contradiction, so our assumption must have been wrong and S is empty. Thus for any natural number n, . ■ n 2i=2n+1−1 Theorem: For any natural number n, ∑i=0 n Proof: Let S be the set { n ∈ ℕ | 2 i ≠ 2 n + 1 − 1 }. We prove that S ∑i=0 must be empty by contradiction; assume that S is nonempty. By

the well-ordering principle, there is a least element of S, call it n0. We consider two cases:

0 Case 1: n = 0. But this is impossible, since we know that ∑ 2 i = 1 0 n n −1 i=0 0 i 0 i n 2 =( 2 )+2 0 Case 2: n0 > 0. Then ∑ i= 0 ∑ i = 0 . Since n0 ∈ S, we n 0 i n +1 2 ≠2 0 −1 know that ∑ i = 0 . Therefore, n −1 0 i n n +1 ( 2 )+2 0≠2 0 −1 ∑i=0 n −1 0 i n +1 n n n 2 ≠2 0 −2 0−1=2(2 0 )−2 0−1 ∑i=0 n −1 0 i n 2 ≠2 0−1 ∑i=0 But this means that n – 1 ∈ S, contradicting the fact that n is the This means0 that the theorem is false for0 least elementThis of S . means We have that reached the theorem a contradiction, is false so forour n0 – 1, which in turn means that n0 – 1 has to assumptionn0 must – 1, have which been in wrongturn meansand S isthat empty. n0 –Thus 1 has for toany natural number n, be be in in .the the■ setset SS.. n 2i=2n+1−1 Theorem: For any natural number n, ∑i=0 n Proof: Let S be the set { n ∈ ℕ | 2 i ≠ 2 n + 1 − 1 }. We prove that S ∑i=0 must be empty by contradiction; assume that S is nonempty. By

the well-ordering principle, there is a least element of S, call it n0. We consider two cases:

0 Case 1: n = 0. But this is impossible, since we know that ∑ 2 i = 1 0 n n −1 i=0 0 i 0 i n 2 =( 2 )+2 0 Case 2: n0 > 0. Then ∑ i= 0 ∑ i = 0 . Since n0 ∈ S, we n 0 i n +1 2 ≠2 0 −1 know that ∑ i = 0 . Therefore, n −1 0 i n n +1 ( 2 )+2 0≠2 0 −1 ∑i=0 n −1 0 i n +1 n n n 2 ≠2 0 −2 0−1=2(2 0 )−2 0−1 ∑i=0 n −1 0 i n 2 ≠2 0−1 ∑i=0

But this means that n0 – 1 ∈ S, contradicting the fact that n0 is the least element of S. We have reached a contradiction, so our assumption must have been wrong and S is empty. Thus for any natural number n, . ■ n 2i=2n+1−1 Theorem: For any natural number n, ∑i=0 n Proof: Let S be the set { n ∈ ℕ | 2 i ≠ 2 n + 1 − 1 }. We prove that S ∑i=0 must be empty by contradiction; assume that S is nonempty. By

the well-ordering principle, there is a least element of S, call it n0. We consider two cases:

0 Case 1: n = 0. But this is impossible, since we know that ∑ 2 i = 1 0 n n −1 i=0 0 i 0 i n 2 =( 2 )+2 0 Case 2: n0 > 0. Then ∑ i= 0 ∑ i = 0 . Since n0 ∈ S, we n 0 i n +1 2 ≠2 0 −1 know that ∑ i = 0 . Therefore, n −1 0 i n n +1 ( 2 )+2 0≠2 0 −1 ∑i=0 n −1 0 i n +1 n n n 2 ≠2 0 −2 0−1=2(2 0 )−2 0−1 ∑i=0 n −1 0 i n 2 ≠2 0−1 ∑i=0

But this means that n0 – 1 ∈ S, contradicting the fact that n0 is the least element of S. We have reached a contradiction, so our assumption must have been wrong and S is empty. Thus for any natural number n, . ■ n 2i=2n+1−1 Theorem: For any natural number n, ∑i=0 n Proof: Let S be the set { n ∈ ℕ | 2 i ≠ 2 n + 1 − 1 }. We prove that S ∑i=0 must be empty by contradiction; assume that S is nonempty. By

the well-ordering principle, there is a least element of S, call it n0. We consider two cases:

0 Case 1: n = 0. But this is impossible, since we know that ∑ 2 i = 1 0 n n −1 i=0 0 i 0 i n 2 =( 2 )+2 0 Case 2: n0 > 0. Then ∑ i= 0 ∑ i = 0 . Since n0 ∈ S, we n 0 i n +1 2 ≠2 0 −1 know that ∑ i = 0 . Therefore, n −1 0 i n n +1 ( 2 )+2 0≠2 0 −1 ∑i=0 n −1 0 i n +1 n n n 2 ≠2 0 −2 0−1=2(2 0 )−2 0−1 ∑i=0 n −1 0 i n 2 ≠2 0−1 ∑i=0

But this means that n0 – 1 ∈ S, contradicting the fact that n0 is the least element of S. We have reached a contradiction, so our assumption must have been wrong and S is empty. Thus for any natural number n, . ■ n 2i=2n+1−1 Theorem: For any natural number n, ∑i=0 n Proof: Let S be the set { n ∈ ℕ | 2 i ≠ 2 n + 1 − 1 }. We prove that S ∑i=0 must be empty by contradiction; assume that S is nonempty. By

the well-ordering principle, there is a least element of S, call it n0. We consider two cases:

0 Case 1: n = 0. But this is impossible, since we know that ∑ 2 i = 1 0 n n −1 i=0 0 i 0 i n 2 =( 2 )+2 0 Case 2: n0 > 0. Then ∑ i= 0 ∑ i = 0 . Since n0 ∈ S, we n 0 i n +1 2 ≠2 0 −1 know that ∑ i = 0 . Therefore, n −1 0 i n n +1 ( 2 )+2 0≠2 0 −1 ∑i=0 n −1 0 i n +1 n n n 2 ≠2 0 −2 0−1=2(2 0 )−2 0−1 ∑i=0 n −1 0 i n 2 ≠2 0−1 ∑i=0

But this means that n0 – 1 ∈ S, contradicting the fact that n0 is the least element of S. We have reached a contradiction, so our assumption must have been wrong and S is empty. Thus for any n 2i=2n+1−1 natural number n, ∑ i = 0 . ■ n 2i=2n+1−1 Theorem: For any natural number n, ∑i=0 n Proof: Let S be the set { n ∈ ℕ | 2 i ≠ 2 n + 1 − 1 }. We prove that S ∑i=0 must be empty by contradiction; assume that S is nonempty. By

the well-ordering principle, there is a least element of S, call it n0. We consider two cases:

0 Case 1: n = 0. But this is impossible, since we know that ∑ 2 i = 1 0 n n −1 i=0 0 i 0 i n 2 =( 2 )+2 0 Case 2: n0 > 0. Then ∑ i= 0 ∑ i = 0 . Since n0 ∈ S, we n 0 i n +1 2 ≠2 0 −1 know that ∑ i = 0 . Therefore, n −1 0 i n n +1 ( 2 )+2 0≠2 0 −1 ∑i=0 n −1 0 i n +1 n n n 2 ≠2 0 −2 0−1=2(2 0 )−2 0−1 ∑i=0 n −1 0 i n 2 ≠2 0−1 ∑i=0

But this means that n0 – 1 ∈ S, contradicting the fact that n0 is the least element of S. We have reached a contradiction, so our assumption must have been wrong and S is empty. Thus for any n 2i=2n+1−1 natural number n, ∑ i = 0 . ■ Irrational Numbers Revisited

● A rational number is a number r that can be written as p r= q where

● p and q are integers,

● q ≠ 0, and

● p and q have no common other than ±1. This last condition is troubling. What if we get rid of it?

Irrational Numbers Revisited

● A rational number is a number r that can be written as p r= q where

● p and q are integers,

● q ≠ 0, and

● p and q have no common divisors other than ±1. ● This last condition is troubling. What if we get rid of it?

Irrational Numbers Revisited

● A rational number is a number r that can be written as p r= q where

● p and q are integers,

● q ≠ 0, and

● p and q have no common divisors other than ±1. ● This last condition is troubling. What if we get rid of it?

One Simplifying Assumption

● For general rational numbers, p and q can be integers. ● We will assume that the root of two is positive. ● Because of this, p and q can be assumed to be natural numbers.

Theorem: √√22 is irrational. Proof: Consider the set

S = { q ∈ ℕ | q ≠ 0 and there exists a p ∈ ℕ such that p / q = √2}.

If this set is empty, then √2 is irrational, because there is no choice of p / q with q ≠ 0 such that p / q = √2.

We prove that S is empty by contradiction; assume that S is nonempty.

Then by the well-ordering principle, it has a least element q0. By our choice of S, q0 ≠ 0, and there exists some p ∈ ℕ such that p / q0 = √2. 2 2 2 2 This means that p = √2q0, so p = 2q0 . Since q0 is an integer, p is even. By our earlier result, this means that p is even, so there exists some k ∈ ℤ such that p = 2k.

2 2 2 2 2 2 2 Therefore, 2q0 = p = (2k) = 4k , and so q0 = 2k . Since k is an integer, 2 this means that q0 is even, so by our earlier result q0 is even.

Since both p and q0 are even, this means that p / 2 and q0 / 2 are natural numbers. Note that (p / 2) / (q0 / 2) = p / q0 = √2. Since q0 ≠ 0, we also have that q0 ≠ 0, and so q0 / 2 ∈S. However, q0 / 2 < q0, contradicting the fact that q0 is the least element of S. We have reached a contradiction, so our assumption must have been wrong and S is empty. ■ Theorem: √√22 is irrational. Proof: Consider the set

S = { q ∈ ℕ | q ≠ 0 and there exists a p ∈ ℕ such that p / q = √√22 }.

If this set is empty, then √2 is irrational, because there is no choice of p / q with q ≠ 0 such that p / q = √2.

We prove that S is empty by contradiction; assume that S is nonempty.

Then by the well-ordering principle, it has a least element q0. By our choice of S, q0 ≠ 0, and there exists some p ∈ ℕ such that p / q0 = √2. 2 2 2 2 This means that p = √2q0, so p = 2q0 . Since q0 is an integer, p is even. By our earlier result, this means that p is even, so there exists some k ∈ ℤ such that p = 2k.

2 2 2 2 2 2 2 Therefore, 2q0 = p = (2k) = 4k , and so q0 = 2k . Since k is an integer, 2 this means that q0 is even, so by our earlier result q0 is even.

Since both p and q0 are even, this means that p / 2 and q0 / 2 are natural numbers. Note that (p / 2) / (q0 / 2) = p / q0 = √2. Since q0 ≠ 0, we also have that q0 ≠ 0, and so q0 / 2 ∈S. However, q0 / 2 < q0, contradicting the fact that q0 is the least element of S. We have reached a contradiction, so our assumption must have been wrong and S is empty. ■ Theorem: √√22 is irrational. Proof: Consider the set

S = { q ∈ ℕ | q ≠ 0 and there exists a p ∈ ℕ such that p / q = √√22 }.

If this set is empty, then √2 is irrational, because there is no choice of p / q with q ≠ 0 such that p / q = √2.

We prove that S is empty by contradiction; assume that S is nonempty. Then by the well-orderingNotationally principle, it thishas ais least quite element q . By our Notationally this is quite 0 choice of S, q ≠ 0, and there exists some p ∈ ℕ such that p / q = √2. 0 dense,dense, butbut itit justjust sayssays thatthat SS 0 This means that p = √2q , so p2 = 2q 2. Since q 2 is an integer, p2 is even. is the0 set of denominators0 0 in By our earlier result,is thisthe means set ofthat denominatorsp is even, so there in exists some k ∈ ℤ such that p =an an2k .expressionexpression ofof thethe squaresquare root of two as a ratio. 2 2 root2 of2 two as a2 ratio.2 2 Therefore, 2q0 = p = (2k) = 4k , and so q0 = 2k . Since k is an integer, 2 this means that q0 is even, so by our earlier result q0 is even.

Since both p and q0 are even, this means that p / 2 and q0 / 2 are natural numbers. Note that (p / 2) / (q0 / 2) = p / q0 = √2. Since q0 ≠ 0, we also have that q0 ≠ 0, and so q0 / 2 ∈S. However, q0 / 2 < q0, contradicting the fact that q0 is the least element of S. We have reached a contradiction, so our assumption must have been wrong and S is empty. ■ Theorem: √√22 is irrational. Proof: Consider the set

S = { q ∈ ℕ | q ≠ 0 and there exists a p ∈ ℕ such that p / q = √√22 }.

If this set is empty, then √2 is irrational, because there is no choice of p / q with q ≠ 0 such that p / q = √2.

We prove that S is empty by contradiction; assume that S is nonempty.

Then by the well-ordering principle, it has a least element q0. By our choice of S, q0 ≠ 0, and there exists some p ∈ ℕ such that p / q0 = √2. 2 2 2 2 This means that p = √2q0, so p = 2q0 . Since q0 is an integer, p is even. By our earlier result, this means that p is even, so there exists some k ∈ ℤ such that p = 2k.

2 2 2 2 2 2 2 Therefore, 2q0 = p = (2k) = 4k , and so q0 = 2k . Since k is an integer, 2 this means that q0 is even, so by our earlier result q0 is even.

Since both p and q0 are even, this means that p / 2 and q0 / 2 are natural numbers. Note that (p / 2) / (q0 / 2) = p / q0 = √2. Since q0 ≠ 0, we also have that q0 ≠ 0, and so q0 / 2 ∈S. However, q0 / 2 < q0, contradicting the fact that q0 is the least element of S. We have reached a contradiction, so our assumption must have been wrong and S is empty. ■ Theorem: √√22 is irrational. Proof: Consider the set

S = { q ∈ ℕ | q ≠ 0 and there exists a p ∈ ℕ such that p / q = √√22 }.

If this set is empty, then √2√2 is irrational, because there is no choice of p / q with q ≠ 0 such that p / q = √√22 .

We prove that S is empty by contradiction; assume that S is nonempty.

Then by the well-ordering principle, it has a least element q0. By our choice of S, q0 ≠ 0, and there exists some p ∈ ℕ such that p / q0 = √2. 2 2 2 2 This means that p = √2q0, so p = 2q0 . Since q0 is an integer, p is even. By our earlier result, this means that p is even, so there exists some k ∈ ℤ such that p = 2k.

2 2 2 2 2 2 2 Therefore, 2q0 = p = (2k) = 4k , and so q0 = 2k . Since k is an integer, 2 this means that q0 is even, so by our earlier result q0 is even.

Since both p and q0 are even, this means that p / 2 and q0 / 2 are natural numbers. Note that (p / 2) / (q0 / 2) = p / q0 = √2. Since q0 ≠ 0, we also have that q0 ≠ 0, and so q0 / 2 ∈S. However, q0 / 2 < q0, contradicting the fact that q0 is the least element of S. We have reached a contradiction, so our assumption must have been wrong and S is empty. ■ Theorem: √√22 is irrational. Proof: Consider the set

S = { q ∈ ℕ | q ≠ 0 and there exists a p ∈ ℕ such that p / q = √√22 }.

If this set is empty, then √2√2 is irrational, because there is no choice of p / q with q ≠ 0 such that p / q = √√22 .

We prove that S is empty by contradiction; assume that S is nonempty.

Then by the well-ordering principle, it has a least element q0. By our choice of S, q0 ≠ 0, and there exists some p ∈ ℕ such that p / q0 = √2. 2 2 2 2 This means that p = √2q0, so p = 2q0 . Since q0 is an integer, p is even. By our earlier result, this means that p is even, so there exists some k ∈ ℤ such that p = 2k.

2 2 2 2 2 2 2 Therefore, 2q0 = p = (2k) = 4k , and so q0 = 2k . Since k is an integer, 2 this means that q0 is even, so by our earlier result q0 is even.

Since both p and q0 are even, this means that p / 2 and q0 / 2 are natural numbers. Note that (p / 2) / (q0 / 2) = p / q0 = √2. Since q0 ≠ 0, we also have that q0 ≠ 0, and so q0 / 2 ∈S. However, q0 / 2 < q0, contradicting the fact that q0 is the least element of S. We have reached a contradiction, so our assumption must have been wrong and S is empty. ■ Theorem: √√22 is irrational. Proof: Consider the set

S = { q ∈ ℕ | q ≠ 0 and there exists a p ∈ ℕ such that p / q = √√22 }.

If this set is empty, then √2√2 is irrational, because there is no choice of p / q with q ≠ 0 such that p / q = √√22 .

We prove that S is empty by contradiction; assume that S is nonempty.

Then by the well-ordering principle, it has a least element q0. By our choice of S, q0 ≠ 0, and there exists some p ∈ ℕ such that p / q0 = √2. 2 2 2 2 This means that p = √2q0, so p = 2q0 . Since q0 is an integer, p is even. By our earlier result, this means that p is even, so there exists some k ∈ ℤ such that p = 2k.

2 2 2 2 2 2 2 Therefore, 2q0 = p = (2k) = 4k , and so q0 = 2k . Since k is an integer, 2 this means that q0 is even, so by our earlier result q0 is even.

Since both p and q0 are even, this means that p / 2 and q0 / 2 are natural numbers. Note that (p / 2) / (q0 / 2) = p / q0 = √2. Since q0 ≠ 0, we also have that q0 ≠ 0, and so q0 / 2 ∈S. However, q0 / 2 < q0, contradicting the fact that q0 is the least element of S. We have reached a contradiction, so our assumption must have been wrong and S is empty. ■ Theorem: √√22 is irrational. Proof: Consider the set

S = { q ∈ ℕ | q ≠ 0 and there exists a p ∈ ℕ such that p / q = √√22 }.

If this set is empty, then √2√2 is irrational, because there is no choice of p / q with q ≠ 0 such that p / q = √√22 .

We prove that S is empty by contradiction; assume that S is nonempty.

Then by the well-ordering principle, it has a least element q0. By our choice of S, q0 ≠ 0, and there exists some p ∈ ℕ such that p / q0 = √2. This means that p = √2q , so p2 = 2q 2. Since q 2 is an integer, p2 is even. Again,0 notice0 that we're0 By our earlier result, thisAgain, means notice that p isthat even, we're so there exists some picking q0 as the least element k ∈ ℤ such that p picking= 2k. q0 as the least element

2 2 of 2S, not2 an arbitrary2 2 2 Therefore, 2q0 = p = (2ofk) =S, 4 knot, and an so arbitraryq0 = 2k . Since k is an integer, 2 element of S. this means that q0 is even, soelement by our earlier of S. result q0 is even.

Since both p and q0 are even, this means that p / 2 and q0 / 2 are natural numbers. Note that (p / 2) / (q0 / 2) = p / q0 = √2. Since q0 ≠ 0, we also have that q0 ≠ 0, and so q0 / 2 ∈S. However, q0 / 2 < q0, contradicting the fact that q0 is the least element of S. We have reached a contradiction, so our assumption must have been wrong and S is empty. ■ Theorem: √√22 is irrational. Proof: Consider the set

S = { q ∈ ℕ | q ≠ 0 and there exists a p ∈ ℕ such that p / q = √√22 }.

If this set is empty, then √2√2 is irrational, because there is no choice of p / q with q ≠ 0 such that p / q = √√22 .

We prove that S is empty by contradiction; assume that S is nonempty.

Then by the well-ordering principle, it has a least element q0. By our choice of S, q0 ≠ 0, and there exists some p ∈ ℕ such that p / q0 = √2. 2 2 2 2 This means that p = √2q0, so p = 2q0 . Since q0 is an integer, p is even. By our earlier result, this means that p is even, so there exists some k ∈ ℤ such that p = 2k.

2 2 2 2 2 2 2 Therefore, 2q0 = p = (2k) = 4k , and so q0 = 2k . Since k is an integer, 2 this means that q0 is even, so by our earlier result q0 is even.

Since both p and q0 are even, this means that p / 2 and q0 / 2 are natural numbers. Note that (p / 2) / (q0 / 2) = p / q0 = √2. Since q0 ≠ 0, we also have that q0 ≠ 0, and so q0 / 2 ∈S. However, q0 / 2 < q0, contradicting the fact that q0 is the least element of S. We have reached a contradiction, so our assumption must have been wrong and S is empty. ■ Theorem: √√22 is irrational. Proof: Consider the set

S = { q ∈ ℕ | q ≠ 0 and there exists a p ∈ ℕ such that p / q = √√22 }.

If this set is empty, then √2√2 is irrational, because there is no choice of p / q with q ≠ 0 such that p / q = √√22 .

We prove that S is empty by contradiction; assume that S is nonempty.

Then by the well-ordering principle, it has a least element q0. By our choice of S, q0 ≠ 0, and there exists some p ∈ ℕ such that p / q0 = √2√2. 2 2 2 2 This means that p = √2q0, so p = 2q0 . Since q0 is an integer, p is even. By our earlier result, this means that p is even, so there exists some k ∈ ℤ such that p = 2k.

2 2 2 2 2 2 2 Therefore, 2q0 = p = (2k) = 4k , and so q0 = 2k . Since k is an integer, 2 this means that q0 is even, so by our earlier result q0 is even.

Since both p and q0 are even, this means that p / 2 and q0 / 2 are natural numbers. Note that (p / 2) / (q0 / 2) = p / q0 = √2. Since q0 ≠ 0, we also have that q0 ≠ 0, and so q0 / 2 ∈S. However, q0 / 2 < q0, contradicting the fact that q0 is the least element of S. We have reached a contradiction, so our assumption must have been wrong and S is empty. ■ Theorem: √√22 is irrational. Proof: Consider the set

S = { q ∈ ℕ | q ≠ 0 and there exists a p ∈ ℕ such that p / q = √√22 }.

If this set is empty, then √2√2 is irrational, because there is no choice of p / q with q ≠ 0 such that p / q = √√22 .

We prove that S is empty by contradiction; assume that S is nonempty.

Then by the well-ordering principle, it has a least element q0. By our choice of S, q0 ≠ 0, and there exists some p ∈ ℕ such that p / q0 = √2√2. 2 2 2 2 2 This means that p = √2√ q0, so p = 2q0 . Since q0 is an integer, p is even. By our earlier result, this means that p is even, so there exists some k ∈ ℤ such that p = 2k.

2 2 2 2 2 2 2 Therefore, 2q0 = p = (2k) = 4k , and so q0 = 2k . Since k is an integer, 2 this means that q0 is even, so by our earlier result q0 is even.

Since both p and q0 are even, this means that p / 2 and q0 / 2 are natural numbers. Note that (p / 2) / (q0 / 2) = p / q0 = √2. Since q0 ≠ 0, we also have that q0 ≠ 0, and so q0 / 2 ∈S. However, q0 / 2 < q0, contradicting the fact that q0 is the least element of S. We have reached a contradiction, so our assumption must have been wrong and S is empty. ■ Theorem: √√22 is irrational. Proof: Consider the set

S = { q ∈ ℕ | q ≠ 0 and there exists a p ∈ ℕ such that p / q = √√22 }.

If this set is empty, then √2√2 is irrational, because there is no choice of p / q with q ≠ 0 such that p / q = √√22 .

We prove that S is empty by contradiction; assume that S is nonempty.

Then by the well-ordering principle, it has a least element q0. By our choice of S, q0 ≠ 0, and there exists some p ∈ ℕ such that p / q0 = √2√2. 2 2 2 2 2 This means that p = √2√ q0, so p = 2q0 . Since q0 is an integer, p is even. By our earlier result, this means that p is even, so there exists some k ∈ ℤ such that p = 2k.

2 2 2 2 2 2 2 Therefore, 2q0 = p = (2k) = 4k , and so q0 = 2k . Since k is an integer, 2 this means that q0 is even, so by our earlier result q0 is even.

Since both p and q0 are even, this means that p / 2 and q0 / 2 are natural numbers. Note that (p / 2) / (q0 / 2) = p / q0 = √2. Since q0 ≠ 0, we also have that q0 ≠ 0, and so q0 / 2 ∈S. However, q0 / 2 < q0, contradicting the fact that q0 is the least element of S. We have reached a contradiction, so our assumption must have been wrong and S is empty. ■ Theorem: √√22 is irrational. Proof: Consider the set

S = { q ∈ ℕ | q ≠ 0 and there exists a p ∈ ℕ such that p / q = √√22 }.

If this set is empty, then √2√2 is irrational, because there is no choice of p / q with q ≠ 0 such that p / q = √√22 .

We prove that S is empty by contradiction; assume that S is nonempty.

Then by the well-ordering principle, it has a least element q0. By our choice of S, q0 ≠ 0, and there exists some p ∈ ℕ such that p / q0 = √2√2. 2 2 2 2 2 This means that p = √2√ q0, so p = 2q0 . Since q0 is an integer, p is even. By our earlier result, this means that p is even, so there exists some k ∈ ℤ such that p = 2k.

2 2 2 2 2 2 2 Therefore, 2q0 = p = (2k) = 4k , and so q0 = 2k . Since k is an integer, 2 this means that q0 is even, so by our earlier result q0 is even.

Since both p and q0 are even, this means that p / 2 and q0 / 2 are natural numbers. Note that (p / 2) / (q0 / 2) = p / q0 = √2. Since q0 ≠ 0, we also have that q0 ≠ 0, and so q0 / 2 ∈S. However, q0 / 2 < q0, contradicting the fact that q0 is the least element of S. We have reached a contradiction, so our assumption must have been wrong and S is empty. ■ Theorem: √√22 is irrational. Proof: Consider the set

S = { q ∈ ℕ | q ≠ 0 and there exists a p ∈ ℕ such that p / q = √√22 }.

If this set is empty, then √2√2 is irrational, because there is no choice of p / q with q ≠ 0 such that p / q = √√22 .

We prove that S is empty by contradiction; assume that S is nonempty.

Then by the well-ordering principle, it has a least element q0. By our choice of S, q0 ≠ 0, and there exists some p ∈ ℕ such that p / q0 = √2√2. 2 2 2 2 2 This means that p = √2√ q0, so p = 2q0 . Since q0 is an integer, p is even. By our earlier result, this means that p is even, so there exists some k ∈ ℤ such that p = 2k.

2 2 2 2 2 2 2 Therefore, 2q0 = p = (2k) = 4k , and so q0 = 2k . Since k is an integer, 2 this means that q0 is even, so by our earlier result q0 is even.

Since both p and q0 are even, this means that p / 2 and q0 / 2 are natural numbers. Note that (p / 2) / (q0 / 2) = p / q0 = √2. Since q0 ≠ 0, we also have that q0 ≠ 0, and so q0 / 2 ∈S. However, q0 / 2 < q0, contradicting the fact that q0 is the least element of S. We have reached a contradiction, so our assumption must have been wrong and S is empty. ■ Theorem: √√22 is irrational. Proof: Consider the set

S = { q ∈ ℕ | q ≠ 0 and there exists a p ∈ ℕ such that p / q = √√22 }.

If this set is empty, then √2√2 is irrational, because there is no choice of p / q with q ≠ 0 such that p / q = √√22 .

We prove that S is empty by contradiction; assume that S is nonempty.

Then by the well-ordering principle, it has a least element q0. By our choice of S, q0 ≠ 0, and there exists some p ∈ ℕ such that p / q0 = √2√2. 2 2 2 2 2 This means that p = √2√ q0, so p = 2q0 . Since q0 is an integer, p is even. By our earlier result, this means that p is even, so there exists some k ∈ ℤ such that p = 2k.

2 2 2 2 2 2 2 Therefore, 2q0 = p = (2k) = 4k , and so q0 = 2k . Since k is an integer, 2 this means that q0 is even, so by our earlier result q0 is even.

Since both p and q0 are even, this means that p / 2 and q0 / 2 are natural numbers. Note that (p / 2) / (q0 / 2) = p / q0 = √2. Since q0 ≠ 0, we also have that q0 ≠ 0, and so q0 / 2 ∈S. However, q0 / 2 < q0, contradicting the fact that q0 is the least element of S. We have reached a contradiction, so our assumption must have been wrong and S is empty. ■ Theorem: √√22 is irrational. Proof: Consider the set

S = { q ∈ ℕ | q ≠ 0 and there exists a p ∈ ℕ such that p / q = √√22 }.

If this set is empty, then √2√2 is irrational, because there is no choice of p / q with q ≠ 0 such that p / q = √√22 .

We prove that S is empty by contradiction; assume that S is nonempty.

Then by the well-ordering principle, it has a least element q0. By our choice of S, q0 ≠ 0, and there exists some p ∈ ℕ such that p / q0 = √2√2. 2 2 2 2 2 This means that p = √2√ q0, so p = 2q0 . Since q0 is an integer, p is even. By our earlier result, this means that p is even, so there exists some k ∈ ℤ such that p = 2k.

2 2 2 2 2 2 2 Therefore, 2q0 = p = (2k) = 4k , and so q0 = 2k . Since k is an integer, 2 this means that q0 is even, so by our earlier result q0 is even.

Since both p and q0 are even, this means that p / 2 and q0 / 2 are natural numbers. Note that (p / 2) / (q0 / 2) = p / q0 = √2. Since q0 ≠ 0, we also have that q0 ≠ 0, and so q0 / 2 ∈S. However, q0 / 2 < q0, contradicting the fact that q0 is the least element of S. We have reached a contradiction, so our assumption must have been wrong and S is empty. ■ Theorem: √√22 is irrational. Proof: Consider the set

S = { q ∈ ℕ | q ≠ 0 and there exists a p ∈ ℕ such that p / q = √√22 }.

If this set is empty, then √2√2 is irrational, because there is no choice of p / q with q ≠ 0 such that p / q = √√22 .

We prove that S is empty by contradiction; assume that S is nonempty.

Then by the well-ordering principle, it has a least element q0. By our choice of S, q0 ≠ 0, and there exists some p ∈ ℕ such that p / q0 = √2√2. 2 2 2 2 2 This means that p = √2√ q0, so p = 2q0 . Since q0 is an integer, p is even. By our earlier result, this means that p is even, so there exists some k ∈ ℤ such that p = 2k.

2 2 2 2 2 2 2 Therefore, 2q0 = p = (2k) = 4k , and so q0 = 2k . Since k is an integer, 2 this means that q0 is even, so by our earlier result q0 is even.

Since both p and q0 are even, this means that p / 2 and q0 / 2 are natural numbers. Note that (p / 2) / (q0 / 2) = p / q0 = √√22 . Since q0 ≠ 0, we also have that q0 ≠ 0, and so q0 / 2 ∈S. However, q0 / 2 < q0, contradicting the fact that q0 is the least element of S. We have reached a contradiction, so our assumption must have been wrong and S is empty. ■ Theorem: √√22 is irrational. Proof: Consider the set

S = { q ∈ ℕ | q ≠ 0 and there exists a p ∈ ℕ such that p / q = √√22 }.

If this set is empty, then √2√2 is irrational, because there is no choice of p / q with q ≠ 0 such that p / q = √√22 .

We prove that S is empty by contradiction; assume that S is nonempty.

Then by the well-ordering principle, it has a least element q0. By our choice of S, q0 ≠ 0, and there exists some p ∈ ℕ such that p / q0 = √2√2. 2 2 2 2 2 This means that p = √2√ q0, so p = 2q0 . Since q0 is an integer, p is even. By our earlier result, this means that p is even, so there exists some k ∈ ℤ such that p = 2k.

2 2 2 2 2 2 2 Therefore, 2q0 = p = (2k) = 4k , and so q0 = 2k . Since k is an integer, 2 this means that q0 is even, so by our earlier result q0 is even.

Since both p and q0 are even, this means that p / 2 and q0 / 2 are natural numbers. Note that (p / 2) / (q0 / 2) = p / q0 = √√22 . Since q0 ≠ 0, we have that q0 / 2 ≠ 0, and so q0 / 2 ∈ S. However, q0 / 2 < q0, contradicting the fact that q0 is the least element of S. We have reached a contradiction, so our assumption must have been wrong and S is empty. ■ Theorem: √√22 is irrational. Proof: Consider the set

S = { q ∈ ℕ | q ≠ 0 and there exists a p ∈ ℕ such that p / q = √√22 }.

If this set is empty, then √2√2 is irrational, because there is no choice of p / q with q ≠ 0 such that p / q = √√22 .

We prove that S is empty by contradiction; assume that S is nonempty.

Then by the well-ordering principle, it has a least element q0. By our choice of S, q0 ≠ 0, and there exists some p ∈ ℕ such that p / q0 = √2√2. 2 2 2 2 2 This means that p = √2√ q0, so p = 2q0 . Since q0 is an integer, p is even. By our earlier result, this means that p is even, so there exists some k ∈ ℤ such that p = 2k.

2 2 2 2 2 2 2 Therefore, 2q0 = p = (2k) = 4k , and so q0 = 2k . Since k is an integer, 2 this means that q0 is even, so by our earlier result q0 is even.

Since both p and q0 are even, this means that p / 2 and q0 / 2 are natural numbers. Note that (p / 2) / (q0 / 2) = p / q0 = √√22 . Since q0 ≠ 0, we have that q0 / 2 ≠ 0, and so q0 / 2 ∈ S. However, q0 / 2 < q0, contradicting the fact that q0 is the least element of S. We have reached a contradiction, so our assumption must have been wrong and S is empty. ■ Theorem: √√22 is irrational. Proof: Consider the set

S = { q ∈ ℕ | q ≠ 0 and there exists a p ∈ ℕ such that p / q = √√22 }.

If this set is empty, then √2√2 is irrational, because there is no choice of p / q with q ≠ 0 such that p / q = √√22 .

We prove that S is empty by contradiction; assume that S is nonempty.

Then by the well-ordering principle, it has a least element q0. By our choice of S, q0 ≠ 0, and there exists some p ∈ ℕ such that p / q0 = √2√2. 2 2 2 2 2 This means that p = √2√ q0, so p = 2q0 . Since q0 is an integer, p is even. By our earlier result, this means that p is even, so there exists some k ∈ ℤ such that p = 2k.

2 2 2 2 2 2 2 Therefore, 2q0 = p = (2k) = 4k , and so q0 = 2k . Since k is an integer, 2 this means that q0 is even, so by our earlier result q0 is even.

Since both p and q0 are even, this means that p / 2 and q0 / 2 are natural numbers. Note that (p / 2) / (q0 / 2) = p / q0 = √√22 . Since q0 ≠ 0, we have that q0 / 2 ≠ 0, and so q0 / 2 ∈ S. However, q0 / 2 < q0, contradicting the fact that q0 is the least element of S. We have reached a contradiction, so our assumption must have been wrong and S is empty. ■ Theorem: √√22 is irrational. Proof: Consider the set

S = { q ∈ ℕ | q ≠ 0 and there exists a p ∈ ℕ such that p / q = √√22 }.

If this set is empty, then √2√2 is irrational, because there is no choice of p / q with q ≠ 0 such that p / q = √√22 .

We prove that S is empty by contradiction; assume that S is nonempty.

Then by the well-ordering principle, it has a least element q0. By our choice of S, q0 ≠ 0, and there exists some p ∈ ℕ such that p / q0 = √2√2. 2 2 2 2 2 This means that p = √2√ q0, so p = 2q0 . Since q0 is an integer, p is even. By our earlier result, this means that p is even, so there exists some k ∈ ℤ such that p = 2k.

2 2 2 2 2 2 2 Therefore, 2q0 = p = (2k) = 4k , and so q0 = 2k . Since k is an integer, 2 this means that q0 is even, so by our earlier result q0 is even.

Since both p and q0 are even, this means that p / 2 and q0 / 2 are natural numbers. Note that (p / 2) / (q0 / 2) = p / q0 = √√22 . Since q0 ≠ 0, we have that q0 / 2 ≠ 0, and so q0 / 2 ∈ S. However, q0 / 2 < q0, contradicting the fact that q0 is the least element of S. We have reached a contradiction, so our assumption must have been wrong and S is empty. ■ Next Time

● Graphs and Relations

● Representing structured data. ● Categorizing how objects are connected.