Direct Proof MAT231. Fall Transition to Higher Mathematics. MAT231 (Transition to Higher Math) Direct Proof Fall / 24

Similar documents
2 Arithmetic. 2.1 Greatest common divisors. This chapter is about properties of the integers Z = {..., 2, 1, 0, 1, 2,...}.

Chapter 5: The Integers

The Euclidean Algorithm and Multiplicative Inverses

1 Overview and revision

Exercises Exercises. 2. Determine whether each of these integers is prime. a) 21. b) 29. c) 71. d) 97. e) 111. f) 143. a) 19. b) 27. c) 93.

INTEGERS. In this section we aim to show the following: Goal. Every natural number can be written uniquely as a product of primes.

Ch 3.2: Direct proofs

2 Elementary number theory

WORKSHEET ON NUMBERS, MATH 215 FALL. We start our study of numbers with the integers: N = {1, 2, 3,...}

Chapter 2. Divisibility. 2.1 Common Divisors

Proofs. Methods of Proof Divisibility Floor and Ceiling Contradiction & Contrapositive Euclidean Algorithm. Reading (Epp s textbook)

5: The Integers (An introduction to Number Theory)

WORKSHEET MATH 215, FALL 15, WHYTE. We begin our course with the natural numbers:

Ch 4.2 Divisibility Properties

Homework #2 solutions Due: June 15, 2012

Number Theory. Introduction

not to be republished NCERT REAL NUMBERS CHAPTER 1 (A) Main Concepts and Results

(3,1) Methods of Proof

3 The language of proof

Chapter 5. Number Theory. 5.1 Base b representations

Math 110 FOUNDATIONS OF THE REAL NUMBER SYSTEM FOR ELEMENTARY AND MIDDLE SCHOOL TEACHERS

Math Circle Beginners Group February 28, 2016 Euclid and Prime Numbers Solutions

Intermediate Math Circles February 29, 2012 Linear Diophantine Equations I

Chapter 1 A Survey of Divisibility 14

The following techniques for methods of proofs are discussed in our text: - Vacuous proof - Trivial proof

Mat Week 8. Week 8. gcd() Mat Bases. Integers & Computers. Linear Combos. Week 8. Induction Proofs. Fall 2013

Wednesday, February 21. Today we will begin Course Notes Chapter 5 (Number Theory).

HOW TO WRITE PROOFS. Dr. Min Ru, University of Houston

ALGEBRA. 1. Some elementary number theory 1.1. Primes and divisibility. We denote the collection of integers

Student Responsibilities Week 8. Mat Section 3.6 Integers and Algorithms. Algorithm to Find gcd()

The set of integers will be denoted by Z = {, -3, -2, -1, 0, 1, 2, 3, 4, }

Exam 2 Review Chapters 4-5

4 Powers of an Element; Cyclic Groups

EUCLID S ALGORITHM AND THE FUNDAMENTAL THEOREM OF ARITHMETIC after N. Vasiliev and V. Gutenmacher (Kvant, 1972)

Mathematics for Computer Science Exercises for Week 10

Definition For a set F, a polynomial over F with variable x is of the form

Math Circle Beginners Group February 28, 2016 Euclid and Prime Numbers

CHAPTER 1 REAL NUMBERS KEY POINTS

Lecture Notes 1 Basic Concepts of Mathematics MATH 352

Proof Techniques (Review of Math 271)

Number Theory Proof Portfolio

Introduction to Number Theory. The study of the integers

Math Circles - Lesson 2 Linear Diophantine Equations cont.

MAS114: Solutions to Exercises

Disproof MAT231. Fall Transition to Higher Mathematics. MAT231 (Transition to Higher Math) Disproof Fall / 16

Modular Arithmetic Instructor: Marizza Bailey Name:

COMP239: Mathematics for Computer Science II. Prof. Chadi Assi EV7.635

Proof by Contradiction

MATH FINAL EXAM REVIEW HINTS

Math 131 notes. Jason Riedy. 6 October, Linear Diophantine equations : Likely delayed 6

MATHEMATICAL INDUCTION

Chapter 1 Review of Equations and Inequalities

11 Division Mod n, Linear Integer Equations, Random Numbers, The Fundamental Theorem of Arithmetic

The following is an informal description of Euclid s algorithm for finding the greatest common divisor of a pair of numbers:

Section 3.1: Direct Proof and Counterexample 1

Applied Cryptography and Computer Security CSE 664 Spring 2017

(e) Commutativity: a b = b a. (f) Distributivity of times over plus: a (b + c) = a b + a c and (b + c) a = b a + c a.

Fall 2017 Test II review problems

Chapter 14: Divisibility and factorization

Elementary Properties of the Integers

1. multiplication is commutative and associative;

4. Number Theory (Part 2)

Olympiad Number Theory Through Challenging Problems

Intermediate Math Circles February 26, 2014 Diophantine Equations I

8. Given a rational number r, prove that there exist coprime integers p and q, with q 0, so that r = p q. . For all n N, f n = an b n 2

REAL NUMBERS. Any positive integer a can be divided by another positive integer b in such a way that it leaves a remainder r that is smaller than b.

Module 1. Integers, Induction, and Recurrences

CHAPTER 3. Number Theory

Divisibility of Natural Numbers

What is a proof? Proofing as a social process, a communication art.

CSE 1400 Applied Discrete Mathematics Proofs

#26: Number Theory, Part I: Divisibility

CHAPTER 4: EXPLORING Z

Math 016 Lessons Wimayra LUY

Sail into Summer with Math!

Example: This theorem is the easiest way to test an ideal (or an element) is prime. Z[x] (x)

2. Two binary operations (addition, denoted + and multiplication, denoted

Tomáš Madaras Congruence classes

Divisibility = 16, = 9, = 2, = 5. (Negative!)

Some Review Problems for Exam 1: Solutions

Greatest Common Divisor MATH Greatest Common Divisor. Benjamin V.C. Collins, James A. Swenson MATH 2730

Math.3336: Discrete Mathematics. Primes and Greatest Common Divisors

18 Divisibility. and 0 r < d. Lemma Let n,d Z with d 0. If n = qd+r = q d+r with 0 r,r < d, then q = q and r = r.

Abstract algebra is the study of structures that certain collections of. 204, linear algebra, or in CS 221, discrete structures.

3 The fundamentals: Algorithms, the integers, and matrices

Math 511, Algebraic Systems, Fall 2017 July 20, 2017 Edition. Todd Cochrane

Introduction to Sets and Logic (MATH 1190)

1. Given the public RSA encryption key (e, n) = (5, 35), find the corresponding decryption key (d, n).

MATH CSE20 Homework 5 Due Monday November 4

Math 31 Lesson Plan. Day 2: Sets; Binary Operations. Elizabeth Gillaspy. September 23, 2011

Writing Assignment 2 Student Sample Questions

Modern Algebra Prof. Manindra Agrawal Department of Computer Science and Engineering Indian Institute of Technology, Kanpur

Q 2.0.2: If it s 5:30pm now, what time will it be in 4753 hours? Q 2.0.3: Today is Wednesday. What day of the week will it be in one year from today?

Contribution of Problems

8 Primes and Modular Arithmetic

NOTES ON SIMPLE NUMBER THEORY

Chapter III. Basic Proof Techniques. Proving the obvious has never been easy. Marty Rubin

Chapter 1. Greatest common divisor. 1.1 The division theorem. In the beginning, there are the natural numbers 0, 1, 2, 3, 4,...,

CHAPTER 6. Prime Numbers. Definition and Fundamental Results

1. Introduction to commutative rings and fields

Transcription:

Direct Proof MAT231 Transition to Higher Mathematics Fall 2014 MAT231 (Transition to Higher Math) Direct Proof Fall 2014 1 / 24

Outline 1 Overview of Proof 2 Theorems 3 Definitions 4 Direct Proof 5 Using Cases 6 Proof Exercises MAT231 (Transition to Higher Math) Direct Proof Fall 2014 2 / 24

What is a proof? One thing that high-school and college students often say they appreciate about mathematics is that answers are either right or wrong. MAT231 (Transition to Higher Math) Direct Proof Fall 2014 3 / 24

What is a proof? One thing that high-school and college students often say they appreciate about mathematics is that answers are either right or wrong. While this isn t always true, it is the case that a large part of mathematics is focused on knowing if something is always true, sometimes true, or never true. This knowledge is without ambiguity we can know it for certain. MAT231 (Transition to Higher Math) Direct Proof Fall 2014 3 / 24

What is a proof? The proof of a proposition is an argument that will convince any reader with suitable background that the proposition is always true. MAT231 (Transition to Higher Math) Direct Proof Fall 2014 4 / 24

What is a proof? The proof of a proposition is an argument that will convince any reader with suitable background that the proposition is always true. Mathematical proofs are often written in a formal style, but that is not required. Proofs can come in many different forms, but mathematicians writing proofs often strive for conciseness and clarity... MAT231 (Transition to Higher Math) Direct Proof Fall 2014 4 / 24

What is a proof? The proof of a proposition is an argument that will convince any reader with suitable background that the proposition is always true. Mathematical proofs are often written in a formal style, but that is not required. Proofs can come in many different forms, but mathematicians writing proofs often strive for conciseness and clarity......well, at least they should be clear to other mathematicians. MAT231 (Transition to Higher Math) Direct Proof Fall 2014 4 / 24

Theorems Definition A theorem is a statement that is true and has been proved to be true. Not surprisingly, some theorems are more significant than others. Arithmetic, Algebra, and Calculus all have theorems named The fundamental theorem of... From arithmetic we have Theorem (The Fundamental Theorem of Arithmetic) Every positive integer greater than 1 can be represented in exactly one way (apart from rearrangement) as a product of one or more primes. MAT231 (Transition to Higher Math) Direct Proof Fall 2014 5 / 24

Types of Theorems Our text uses the term proposition to mean a statement which is true, but not important enough to be called a theorem. (In other contexts, a proposition can merely be a statement which is either true or false; at least until it is proved true). A lemma is a theorem whose main purpose is to help prove a more substantial theorem. A corollary to a theorem is a result that can be established easily once the theorem is proved. MAT231 (Transition to Higher Math) Direct Proof Fall 2014 6 / 24

The Chicken and Egg Problem Proving a theorem often involves making deductions using the rules of inference. These deductions move us from some statement or statements known to be true to one or more new statements that we can know are true. To use this approach, however, we need to start somewhere... Our starting points will be definitions and axioms (also called postulates). MAT231 (Transition to Higher Math) Direct Proof Fall 2014 7 / 24

Definitions We begin with some key definitions that we will use frequently. Definition An integer n is even if n = 2a for some integer a Z. Definition An integer n is odd if n = 2a + 1 for some integer a Z. Definition Two integers have the same parity if they are both even or they are both odd. Otherwise they have opposite parity. As noted in our text, definitions are often worded to sound like an implication (if-then), but really they should be treated like a biconditional (if-and-only-if). MAT231 (Transition to Higher Math) Direct Proof Fall 2014 8 / 24

Closure Definition Let S be a set of numbers. S is closed under addition if the sum of any two elements in S is a member of S. Similar definitions exist for closure under subtraction, multiplication, and division. N is closed under what operations? MAT231 (Transition to Higher Math) Direct Proof Fall 2014 9 / 24

Closure Definition Let S be a set of numbers. S is closed under addition if the sum of any two elements in S is a member of S. Similar definitions exist for closure under subtraction, multiplication, and division. N is closed under what operations? addition and multiplication, but not subtraction or division. Z is closed under what operations? MAT231 (Transition to Higher Math) Direct Proof Fall 2014 9 / 24

Closure Definition Let S be a set of numbers. S is closed under addition if the sum of any two elements in S is a member of S. Similar definitions exist for closure under subtraction, multiplication, and division. N is closed under what operations? addition and multiplication, but not subtraction or division. Z is closed under what operations? addition, subtraction, and multiplication, but not division. Q is closed under what operations? MAT231 (Transition to Higher Math) Direct Proof Fall 2014 9 / 24

Closure Definition Let S be a set of numbers. S is closed under addition if the sum of any two elements in S is a member of S. Similar definitions exist for closure under subtraction, multiplication, and division. N is closed under what operations? addition and multiplication, but not subtraction or division. Z is closed under what operations? addition, subtraction, and multiplication, but not division. Q is closed under what operations? all four, if we disallow division by zero. R is closed under what operations? MAT231 (Transition to Higher Math) Direct Proof Fall 2014 9 / 24

Closure Definition Let S be a set of numbers. S is closed under addition if the sum of any two elements in S is a member of S. Similar definitions exist for closure under subtraction, multiplication, and division. N is closed under what operations? addition and multiplication, but not subtraction or division. Z is closed under what operations? addition, subtraction, and multiplication, but not division. Q is closed under what operations? all four, if we disallow division by zero. R is closed under what operations? all four, if we disallow division by zero. MAT231 (Transition to Higher Math) Direct Proof Fall 2014 9 / 24

Divisibility Definition Suppose a and b are integers. We say that a divides b, written a b, if b = ac for some c Z. We say a is a divisor of b and b is a multiple of a. To say a does not divide b, we write a b. Be careful; a b is not the same as a/b. a b is a statement that means a divides b; it is either true or false. a/b is a mathematical operation that yields a numerical result. Note that if a b, then b/a is an integer. Example Finding the set of divisors of 10 means finding every a such that a 10. The set is {a : a 10} = { 10, 5, 2, 1, 1, 2, 5, 10}. MAT231 (Transition to Higher Math) Direct Proof Fall 2014 10 / 24

Prime Numbers Definition A natural number n is prime if it has exactly two positive divisors, 1 and n. An integer m is composite if it factors as n = ab where a, b > 1. Note: 1 is not prime because it has only one divisor, itself. 2 is the only even prime number. MAT231 (Transition to Higher Math) Direct Proof Fall 2014 11 / 24

Division Algorithm Definition (The Division Algorithm) Given integers a and d with d > 0, there exist unique integers q and r for which a = dq + r and 0 r < d. We call d the divisor, q is the quotient, and r is the remainder. Note: The remainder r is zero if d a, otherwise it is a positive number strictly less than the divisor d. If the division algorithm is applied to 56 20, we have 56 = 20 2 + 16 so the quotient is 2 and the remainder is 16. Be careful with negative numbers! Remember the remainder must always be non-negative: 31 7 gives 31 = 7 ( 5) + 4. MAT231 (Transition to Higher Math) Direct Proof Fall 2014 12 / 24

GCD and LCM Definition The greatest common divisor (GCD) of integers a and b, denoted gcd(a, b), is the largest integer that divides both a and b. The least common multiple (LCM) of non-zero integers a and b, denoted lcm(a, b), is the smallest positive integer that is a multiple of both a and b. While the GCD of a and b is relative easy to find if the prime factorizations of both a and b are available. If not, one can use the Euclidean Algorithm. MAT231 (Transition to Higher Math) Direct Proof Fall 2014 13 / 24

Euclidean Algorithm to find the GCD The Euclidean Algorithm is based upon the following lemma: Lemma Let a = bq + r where a, b, q, and r are integers with b > 0, and 0 r < b. Then gcd(a, b) = gcd(b, r). Proof. Suppose d divides both a and b. Then d divides bq and also divides a bq = r. Thus, d divides both b and r. Now suppose that d divides b and r. Then d also divides bq + r = a and so d divides both a and b. Since every divisor of a and b is also a divisor of b and r and vice versa, the sets of divisors for these two pairs are identical and the must share the same greatest value. Therefore gcd(a, b) = gcd(b, r). MAT231 (Transition to Higher Math) Direct Proof Fall 2014 14 / 24

Euclidean Algorithm to find the GCD Lets use the Euclidean Algorithm to find gcd(38, 22). The colors show how the numbers move from one line to the next based on the lemma we just proved. a = b q + r MAT231 (Transition to Higher Math) Direct Proof Fall 2014 15 / 24

Euclidean Algorithm to find the GCD Lets use the Euclidean Algorithm to find gcd(38, 22). The colors show how the numbers move from one line to the next based on the lemma we just proved. a = b q + r 38 = 22 1 + 16 MAT231 (Transition to Higher Math) Direct Proof Fall 2014 15 / 24

Euclidean Algorithm to find the GCD Lets use the Euclidean Algorithm to find gcd(38, 22). The colors show how the numbers move from one line to the next based on the lemma we just proved. a = b q + r 38 = 22 1 + 16 22 = 16 1 + 6 MAT231 (Transition to Higher Math) Direct Proof Fall 2014 15 / 24

Euclidean Algorithm to find the GCD Lets use the Euclidean Algorithm to find gcd(38, 22). The colors show how the numbers move from one line to the next based on the lemma we just proved. a = b q + r 38 = 22 1 + 16 22 = 16 1 + 6 16 = 6 2 + 4 MAT231 (Transition to Higher Math) Direct Proof Fall 2014 15 / 24

Euclidean Algorithm to find the GCD Lets use the Euclidean Algorithm to find gcd(38, 22). The colors show how the numbers move from one line to the next based on the lemma we just proved. a = b q + r 38 = 22 1 + 16 22 = 16 1 + 6 16 = 6 2 + 4 6 = 4 1 + 2 MAT231 (Transition to Higher Math) Direct Proof Fall 2014 15 / 24

Euclidean Algorithm to find the GCD Lets use the Euclidean Algorithm to find gcd(38, 22). The colors show how the numbers move from one line to the next based on the lemma we just proved. a = b q + r 38 = 22 1 + 16 22 = 16 1 + 6 16 = 6 2 + 4 6 = 4 1 + 2 4 = 2 2 + 0 MAT231 (Transition to Higher Math) Direct Proof Fall 2014 15 / 24

Euclidean Algorithm to find the GCD Lets use the Euclidean Algorithm to find gcd(38, 22). The colors show how the numbers move from one line to the next based on the lemma we just proved. a = b q + r 38 = 22 1 + 16 22 = 16 1 + 6 16 = 6 2 + 4 6 = 4 1 + 2 4 = 2 2 + 0 The last non-zero remainder 2 is the GCD of both 2 and 4. By our lemma it is also the GCD of 4 and 6, and of 6 and 16, etc., all the way back to our original pair 38 and 22. MAT231 (Transition to Higher Math) Direct Proof Fall 2014 15 / 24

Direct Proof During our study of proofs, we will use several approaches. The most straight forward, called direct proof, proves the a proposition in the form If P, then Q by assuming P (called the hypothesis) is true and, through a sequence of logical deductions, shows that Q (the conclusion) must be true. Some hints: Be sure you are convinced the proposition you are trying to prove seems true. Try some examples and look for patterns you can exploit. Be sure you know what the conclusion should be. Think of proofs as like doing a problem where you know what the answer should be you are trying to work toward it. In a very real sense you re trying to build a bridge from the hypothesis to the conclusion. MAT231 (Transition to Higher Math) Direct Proof Fall 2014 16 / 24

Direct Proof Example 1 Proposition The sum of an even integer and an odd integer is odd. Some things to consider: First question: do we believe this proposition? 2 + 3 = 5, 28 + 437 = 465, 120 + 35 = 85 all confirm the proposition. MAT231 (Transition to Higher Math) Direct Proof Fall 2014 17 / 24

Direct Proof Example 1 Proposition The sum of an even integer and an odd integer is odd. Some things to consider: First question: do we believe this proposition? 2 + 3 = 5, 28 + 437 = 465, 120 + 35 = 85 all confirm the proposition. It may be helpful to reword the proposition as an implication. Something like If a is an even integer and b is an odd integer, then a + b is odd. MAT231 (Transition to Higher Math) Direct Proof Fall 2014 17 / 24

Direct Proof Example 1 Proposition The sum of an even integer and an odd integer is odd. Some things to consider: First question: do we believe this proposition? 2 + 3 = 5, 28 + 437 = 465, 120 + 35 = 85 all confirm the proposition. It may be helpful to reword the proposition as an implication. Something like If a is an even integer and b is an odd integer, then a + b is odd. We want to start with the hypothesis a is an even integer and b is an odd integer and work our way to the conclusion: a + b is odd. MAT231 (Transition to Higher Math) Direct Proof Fall 2014 17 / 24

Direct Proof Example 1 Proposition The sum of an even integer and an odd integer is odd. Some things to consider: First question: do we believe this proposition? 2 + 3 = 5, 28 + 437 = 465, 120 + 35 = 85 all confirm the proposition. It may be helpful to reword the proposition as an implication. Something like If a is an even integer and b is an odd integer, then a + b is odd. We want to start with the hypothesis a is an even integer and b is an odd integer and work our way to the conclusion: a + b is odd. What does it mean for a to be even? From our definition, we know that a = 2m for some integer m. Similarly, we know that if b is odd, then b = 2n + 1 for some integer n. MAT231 (Transition to Higher Math) Direct Proof Fall 2014 17 / 24

Direct Proof Example 1 Proposition The sum of an even integer and an odd integer is odd. Some things to consider: First question: do we believe this proposition? 2 + 3 = 5, 28 + 437 = 465, 120 + 35 = 85 all confirm the proposition. It may be helpful to reword the proposition as an implication. Something like If a is an even integer and b is an odd integer, then a + b is odd. We want to start with the hypothesis a is an even integer and b is an odd integer and work our way to the conclusion: a + b is odd. What does it mean for a to be even? From our definition, we know that a = 2m for some integer m. Similarly, we know that if b is odd, then b = 2n + 1 for some integer n. We know the result we need: a + b is odd. Working backward, we need to find that a + b = 2c + 1 for some integer c. MAT231 (Transition to Higher Math) Direct Proof Fall 2014 17 / 24

Direct Proof Example 1 Proposition The sum of an even integer and an odd integer is odd. Proof. Suppose a is an even integer and b is an odd integer. Then, by our definitions of even and odd numbers, we know that integers m and n exist so that a = 2m and b = 2n + 1. Then a + b = (2m) + (2n + 1) = 2(m + n) + 1 = 2c + 1 where c = m + n is an integer by the closure property of addition. We have shown that a + b = 2c + 1 for an integer c so a + b must be odd. MAT231 (Transition to Higher Math) Direct Proof Fall 2014 18 / 24

Direct Proof Example 2 Proposition Suppose a, b, c Z. If a b and b c, then a c. MAT231 (Transition to Higher Math) Direct Proof Fall 2014 19 / 24

Direct Proof Example 2 Proposition Suppose a, b, c Z. If a b and b c, then a c. Our strategy will be to work forward from the hypothesis and work backward from the conclusion, trying to link the ends of the argument together. We start with a b and b c. This means that b = am and c = bn for some m, n Z. Working backward from a c, we have that c = ak for some k Z. MAT231 (Transition to Higher Math) Direct Proof Fall 2014 19 / 24

Direct Proof Example 2 Proposition Suppose a, b, c Z. If a b and b c, then a c. MAT231 (Transition to Higher Math) Direct Proof Fall 2014 20 / 24

Direct Proof Example 2 Proposition Suppose a, b, c Z. If a b and b c, then a c. Proof. Let a, b, c Z. If a b and b c then by the definition of divisibility there are integers m and n for which b = am and c = bn. In this case c = bn = (am)n = a(mn) = ak where k = mn. Since c is a multiple of a, by the definition of divisibility we see that a c. MAT231 (Transition to Higher Math) Direct Proof Fall 2014 20 / 24

Proof by Cases Sometimes it is not possible to construct a single path from hypothesis to conclusion. In such cases we can use a proof by cases. Consider the following proposition: Proposition For any integer n, n 2 + n is even. This could be restated as If n Z, then n 2 + n is even. How can we start with an integer n and work to show n 2 + n is even? We know we need to end up with n 2 + n = 2q for some integer q, but how do we get there? MAT231 (Transition to Higher Math) Direct Proof Fall 2014 21 / 24

Proof by Cases Sometimes it is not possible to construct a single path from hypothesis to conclusion. In such cases we can use a proof by cases. Consider the following proposition: Proposition For any integer n, n 2 + n is even. This could be restated as If n Z, then n 2 + n is even. How can we start with an integer n and work to show n 2 + n is even? We know we need to end up with n 2 + n = 2q for some integer q, but how do we get there? We ll try two cases: n even and then n odd. MAT231 (Transition to Higher Math) Direct Proof Fall 2014 21 / 24

Proof by Cases Example 1 Proposition For any integer n, n 2 + n is even. MAT231 (Transition to Higher Math) Direct Proof Fall 2014 22 / 24

Proof by Cases Example 1 Proposition For any integer n, n 2 + n is even. Proof. Suppose n Z. Case 1. If n is even we can write n = 2q for some q Z. In this case n 2 + n = 4q 2 + 2q = 2(2q 2 + q) which, by definition, is even. Case 2. If n is odd then n = 2q + 1 for some q Z. Now n 2 + n = (4q 2 + 4q + 1) + (2q + 1) = 2(2q 2 + 3q + 1) which is also even. We find that n 2 + 2 is even when n is even and when n is odd. Therefore n 2 + n must be even for any integer n. MAT231 (Transition to Higher Math) Direct Proof Fall 2014 22 / 24

Proof by Cases Example 2 Proposition Suppose n Z. If n is not divisible by 3, then n 2 + 2 is divisible by 3. MAT231 (Transition to Higher Math) Direct Proof Fall 2014 23 / 24

Proof by Cases Example 2 Proposition Suppose n Z. If n is not divisible by 3, then n 2 + 2 is divisible by 3. Proof. Let n Z be given. By the Division Algorithm we can write n = 3q + r for some q, r Z with 0 r < 3. If r = 0 then 3 n, so we consider the other two cases, r = 1 and r = 2. Case 1. Suppose r = 1 so n = 3q + 1, which is not divisible by 3. However, n 2 + 2 = 9q 2 + 6q + 3 = 3(3q 2 + 2q + 1), so n 2 + 2 is divisible by 3. Case 2. Now suppose r = 2 so n = 3q + 2. As before, this is not divisible by 3. On the other hand, 3 does divide n 2 + 2 since n 2 + 2 = 9q 2 + 12q + 4 + 2 = 3(3q 2 + 4q + 1). Reviewing these cases, we see that whenever 3 n, we find 3 (n 2 + 2), completing the proof. MAT231 (Transition to Higher Math) Direct Proof Fall 2014 23 / 24

Proof Exercises Write proofs for the following propositions. 1 If the integers m and n are both divisible by 3, then the number mn is divisible by 9. 2 Suppose a, b Z. If a b, then a 2 b 2. 3 Every perfect square is either a multiple of 4 or of the form 4q + 1 for some integer q. 4 The sum of any two rational numbers is a rational number. MAT231 (Transition to Higher Math) Direct Proof Fall 2014 24 / 24