MATH CSE20 Homework 5 Due Monday November 4

Similar documents
Proof by Contradiction

MATH 271 Summer 2016 Practice problem solutions Week 1

(3,1) Methods of Proof

9/5/17. Fermat s last theorem. CS 220: Discrete Structures and their Applications. Proofs sections in zybooks. Proofs.

COMP 182 Algorithmic Thinking. Proofs. Luay Nakhleh Computer Science Rice University

Intro to Algebra Today. We will learn names for the properties of real numbers. Homework Next Week. Due Tuesday 45-47/ 15-20, 32-35, 40-41, *28,29,38

(4) Using results you have studied, show that if x, y are real numbers,

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

Basic Proof Examples

Foundations of Discrete Mathematics

Mathematics 220 Homework 4 - Solutions. Solution: We must prove the two statements: (1) if A = B, then A B = A B, and (2) if A B = A B, then A = B.

Proof Terminology. Technique #1: Direct Proof. Learning objectives. Proof Techniques (Rosen, Sections ) Direct Proof:

Solutions to Assignment 1

PROBLEM SET 3: PROOF TECHNIQUES

Lecture 2: Proof Techniques Lecturer: Lale Özkahya

Final Exam Review. 2. Let A = {, { }}. What is the cardinality of A? Is

Contradiction MATH Contradiction. Benjamin V.C. Collins, James A. Swenson MATH 2730

Math Homework # 4

Midterm Preparation Problems

Some Review Problems for Exam 1: Solutions

CSE 20 DISCRETE MATH WINTER

CSE 20 DISCRETE MATH SPRING

UNIVERSITY OF VICTORIA DECEMBER EXAMINATIONS MATH 122: Logic and Foundations

Carmen s Core Concepts (Math 135)

5. Use a truth table to determine whether the two statements are equivalent. Let t be a tautology and c be a contradiction.

Computer Science Section 1.6

In Exercises 1 12, list the all of the elements of the given set. 2. The set of all positive integers whose square roots are less than or equal to 3

Recitation 7: Existence Proofs and Mathematical Induction

Midterm Exam Solution

CSE 215: Foundations of Computer Science Recitation Exercises Set #5 Stony Brook University. Name: ID#: Section #: Score: / 4

MATH 2112/CSCI 2112, Discrete Structures I Winter 2007 Toby Kenney Homework Sheet 5 Hints & Model Solutions

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

Proofs. Chapter 2 P P Q Q

CSE 20 DISCRETE MATH. Winter

1 Direct Proofs Technique Outlines Example Implication Proofs Technique Outlines Examples...

Chapter 2. Mathematical Reasoning. 2.1 Mathematical Models

MATH 2200 Final LC Review

Show Your Work! Point values are in square brackets. There are 35 points possible. Tables of tautologies and contradictions are on the last page.

Proof Techniques 1. Math Camp n = (1 = n) + (2 + (n 1)) ( n 1. = (n + 1) + (n + 1) (n + 1) + n + 1.

3.6. Disproving Quantified Statements Disproving Existential Statements

Discrete Math I Exam II (2/9/12) Page 1

MATH 135 Fall 2006 Proofs, Part IV

WUCT121. Discrete Mathematics. Logic. Tutorial Exercises

ASSIGNMENT 1 SOLUTIONS

Writing proofs for MATH 61CM, 61DM Week 1: basic logic, proof by contradiction, proof by induction

DISCRETE MATH: FINAL REVIEW

Solutions to Homework Set 1

Math 109 HW 9 Solutions

CSE 20 DISCRETE MATH. Fall

MATH 310: Homework 7

Midterm 2 Sample Introduction to Higher Math Fall 2018 Instructor: Linh Truong

SOLUTIONS Math 345 Homework 6 10/11/2017. Exercise 23. (a) Solve the following congruences: (i) x (mod 12) Answer. We have

Solutions to Practice Final

Mathematics 220 Midterm Practice problems from old exams Page 1 of 8

Inference and Proofs (1.6 & 1.7)

CHMC: Finite Fields 9/23/17

Lecture Notes on DISCRETE MATHEMATICS. Eusebius Doedel

Yale University Department of Mathematics Math 350 Introduction to Abstract Algebra Fall Midterm Exam Review Solutions

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

Your quiz in recitation on Tuesday will cover 3.1: Arguments and inference. Your also have an online quiz, covering 3.1, due by 11:59 p.m., Tuesday.

Math.3336: Discrete Mathematics. Proof Methods and Strategy

CSE 20 DISCRETE MATH. Winter

Proof by contrapositive, contradiction

Problem Set 5 Solutions

Example ( x.(p(x) Q(x))) ( x.p(x) x.q(x)) premise. 2. ( x.(p(x) Q(x))) -elim, 1 3. ( x.p(x) x.q(x)) -elim, x. P(x) x.

MATH 2200 Final Review

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

All numbered readings are from Beck and Geoghegan s The art of proof.

Basic Proof Techniques

Homework 3 Solutions, Math 55

a + b = b + a and a b = b a. (a + b) + c = a + (b + c) and (a b) c = a (b c). a (b + c) = a b + a c and (a + b) c = a c + b c.

. As the binomial coefficients are integers we have that. 2 n(n 1).

Properties of the Integers

Cool Results on Primes

Homework 3: Solutions

EECS 1028 M: Discrete Mathematics for Engineers

CSE 1400 Applied Discrete Mathematics Proofs

Proof techniques (section 2.1)

9.4. Mathematical Induction. Introduction. What you should learn. Why you should learn it

COT 2104 Homework Assignment 1 (Answers)

Proofs. Joe Patten August 10, 2018

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

MATH Fundamental Concepts of Algebra

Chapter 2 Section 2.1: Proofs Proof Techniques. CS 130 Discrete Structures

STRATEGIES OF PROBLEM SOLVING

Any Wizard of Oz fans? Discrete Math Basics. Outline. Sets. Set Operations. Sets. Dorothy: How does one get to the Emerald City?

Modular Arithmetic Instructor: Marizza Bailey Name:

CHAPTER 1 REAL NUMBERS KEY POINTS

ELEMENTARY NUMBER THEORY AND METHODS OF PROOF

CSE 105 Homework 1 Due: Monday October 9, Instructions. should be on each page of the submission.

1. Consider the conditional E = p q r. Use de Morgan s laws to write simplified versions of the following : The negation of E : 5 points

CS 340: Discrete Structures for Engineers

Section 1.2: Conditional Statements

MI 4 Mathematical Induction Name. Mathematical Induction

Writing proofs for MATH 51H Section 2: Set theory, proofs of existential statements, proofs of uniqueness statements, proof by cases

Normal Forms Note: all ppts about normal forms are skipped.

First In-Class Exam Solutions Math 410, Professor David Levermore Monday, 1 October 2018

REVIEW PROBLEMS FOR SECOND 3200 MIDTERM

Appendix G: Mathematical Induction

Proofs. Chapter 2 P P Q Q

Transcription:

MATH CSE20 Homework 5 Due Monday November 4 Assigned reading: NT Section 1 (1) Prove the statement if true, otherwise find a counterexample. (a) For all natural numbers x and y, x + y is odd if one of x and y even and the other is odd. TRUE; Proof: Let x, y be natural numbers. Assume, without loss of generality, that x is even and y is odd. The argument is symmetric if x is odd and y is even. WTS: x + y is odd. x = 2k, for some k Z by the definition of even y = 2j + 1, for some j Z by the definition of odd x + y = 2k + 2j + 1 = 2(k + j) + 1 = 2l + 1 for some l = k + j and l Z because integers are closed under addition. Thus, by the definition of odd, x + y is odd and the statement is true. (b) For all natural numbers x and y, if x + y is odd then one of x and y even and the other is odd. TRUE; Proof: Let x, y be natural numbers. By contrapositive, we will prove that if it s not the case that one of x and y is even and the other is odd, then x + y is even. There are two cases to this proof: Case 1: Given: Assume x and y are odd. WTS: x + y is even. x = 2k + 1, for some k Z y = 2j + 1, for some j Z x + y = 2(k + j + 1) = 2l for some l = k + j + 1 and l Z because integers are closed under addition. Thus, by the definition of even, x + y is even. Case 2: Given: Assume x and y are even. WTS: x + y is even. x = 2k, for some k Z

2 y = 2j, for some j Z x + y = 2(k + j) = 2l for some l = k + j and l Z because integers are closed under addition. Thus, by the definition of even, x + y is even. Because both cases result in x + y being even, the statement is true. (2) Prove the statement if true, otherwise find a counterexample. (a) The difference of any two odd integers is odd. False: Counterexample: 5-3 = 2. (b) If the sum of two integers is even, one of them must be even. False: Counterexample: 1 + 3 = 4. (3) Prove the statement if true, otherwise find a counterexample. (a) The product of two integers is even if and only if at least one of them is even. Negating both A and B in A if and only B gives an equivalent statement. (It s the contrapositive.) In this case, the result of this negation is The product of two integers is odd if and only if neither of them is even. Since neither of them is even is the same thing as both of them are odd, this is the closure property mentioned in Example 1. We can also formally show that this statement is true by proving the if part, then proving the only if. Proof (direct) of if : Given: Assume x and y Z and x = 2k is even, for some k Z. WTS: xy is even. xy = 2ky = 2(ky) = 2z for some integer z = ky and z Z because integers are closed under multiplication. By the definition of even, xy is even. Proof (contrapositive) of only if : If x and y are both odd, their product is odd. Given: Assume for x and y Z, x = 2k + 1 and y = 2j + 1 are odd, for some k, j Z. WTS: xy is odd. xy = (2k + 1)(2j + 1) = 2kj + 2k + 2j + 1 = 2(kj + k + j) + 1 = 2l + 1

3 for some integer l = kj + k + j and l Z because integers are closed under multiplication and addition. By the definition of even, xy is odd. Because we have proven both parts of the statement, it is true. (b) The product of two integers is odd if and only if at least one of them is odd. False: Counterexample: 3 x 2 = 6. (4) Prove the statement if true, otherwise find a counterexample. (a) For any integers m and n, m 3 n 3 is even if and only if m n is even. True. Once can write out various proofs, breaking things down into cases depending on whether m and n are even or odd. Alternatively, one can construct a table with four cases: m n m n m 3 n 3 m 3 n 3 even even even even even even even odd odd even odd odd odd even odd odd even odd odd odd even odd odd even By comparing the m n and m 3 n 3 columns, we see that the result is true. An alternative proof can be obtained by doing calculations modulo 2. We ll see more of this in the next week. This is because even corresponds to 0 (mod 2) and odd to 1 (mod 2). We have m 3 = m (mod 2) and n 3 = n (mod 2). Therefore m 3 n 3 = m n (mod 2). (b) For any integers m and n, m 3 n 3 is odd if and only if m n is odd. True. In fact, this is equivalent to (a) because A B is true if and only if A B is true. (5) Prove the statement if true, otherwise find a counterexample. (a) For all integers n > 2, n 3 8 is composite. False. Try n = 3. (What is the answer for n > 3?) (b) For all integers n, ( 1) n = 1 if and only if n is odd. We will prove this in the same way that we proved problem 3a. Proof (direct) of if : Given: Assume n Z and is odd. By the definition of odd, n = 2k + 1, for k Z. ( 1) n = ( 1) 2k+1 = ( 1) 2k = 1 Thus, for all integers n, ( 1) n = 1 if n is odd. Proof (by contrapositive) of only if : Given: Assume n Z is even. WTS: ( 1) n = 1

4 By the definition of even, n = 2k for k Z. ( 1) n = ( 1) 2k = (( 1) 2 ) k = 1 k = 1 Thus, for all integers n, ( 1) n = 1 if n is even. Because we have proven both parts of the statement, it is true. (6) Prove the statement if true, otherwise find a counterexample. We provide proof sketches for each of the true statements. (a) n Z, n 2 + n + 5 is odd. True: One of n and n + 1 is even. Therefore, n(n + 1) = n 2 + n is even and since 5 is odd, (n 2 + n) + 5 is odd. (b) n Z, (6(n 2 + n + 1) (5n 2 3) is a perfect square). True: With some algebra, we can conclude that 6(n 2 + n + 1) (5n 2 3) = (n + 3) 2. (c) M > 0, n > M, (n 2 n + 11 is prime). False: For every M > 0, let n = 11M > M. Note that n 2 n + 11 = 11(11M 2 M + 1), which is composite because 11M 2 M + 1 M(11M 1) > 1. (d) There is a unique prime p of the form n 2 + 2n 3. True: Factor n 2 + 2n 3 to get (n + 3)(n 1). For this to be a prime, we must choose n so that one factor is ±1 and the other is ±p, where p is a prime and both factors have the same sign. Thus either n + 3 = p and n 1 = 1 or n + 3 = 1 and n 1 = p. The first pair of equations give n = 2 and p = 5, which is a prime. The second pair of equations give n = 4 and p = 5, which is the same prime. You may ask about the choices n + 3 = 1 and n 1 = p or n + 3 = 1 and n 1 = p. They lead to negative values for p and primes must be positive by definition. (7) Prove the statement if true, otherwise find a counterexample. (a) For all integers n > 0, either n is a perfect square or, n = x + y where x and y are perfect squares or, n = x + y + z where x, y, and z perfect squares. False: 7 is a counterexample since the only possible perfect square values for x, y and z are 0, 1, and 4. (b) The product of four consecutive positive integers is never a perfect square. True: We can write such a product as N(k) = k(k + 1)(k + 2)(k + 3). Let s look at some values: N(1) = 24 = 5 2 1, N(2) = 120 = 11 2 1, N(3) = 360 = 19 2 1. It looks like N is always one less than a square. Since squares are not very close together this would mean that N is not a square. We have a plan. Let s write a

5 proof. Since k(k + 3) and (k + 1)(k + 2) are close together, we rewrite the product as N = (k(k + 3))((k + 1)(k + 2)) = (k(k + 3))(k(k + 3) + 2) = n(n + 2) > n 2, where n = k(k + 3). Now n(n + 2) = (n + 1) 2 = 1 one less than a square as we conjectured. Thus N < (n + 1) 2. We ve shown that N lies between two consecutive squares; that is, n 2 < N < (n + 1) 2. Hence N cannot be a square. (8) Prove the statement if true, otherwise find a counterexample. (a) For all distinct positive integers m and n, either m 1/2 +n 1/2 and m 1/2 n 1/2 are both rational or both irrational. Hint: Consider (m 1/2 + n 1/2 )(m 1/2 n 1/2 ). True: Let x = m 1/2 + n 1/2 and y = m 1/2 n 1/2. Then xy = m n is a nonzero integer. Hence x and y are either both rational or both irrational. (See discussion in Example 3). (b) For all distinct positive integers, if either m 1/2 + n 1/2 or m 1/2 n 1/2 are rational then both m and n are perfect squares. True: Define x and y as in (a). Since at least one is rational, they are both rational by (a). Thus (x + y)/2 = m 1/2 is rational and so m is a perfect square by Theorem 3. Likewise, (x y)/2 = n 1/2 shows that n is also a perfect square. (c) For all distinct positive integers m and n, both m and n are perfect squares if and only if m + 2m 1/2 n 1/2 + n is a perfect square. True: Note that m + 2m 1/2 n 1/2 + n = (m 1/2 + n 1/2 ) 2. This is a perfect square if m and n are perfect squares. Conversely, suppose this is a perfect square. Then m 1/2 + n 1/2 is rational and so m and n are perfect squares by (b). (d) Which of (a), (b), and (c) are true if m n is changed to m = n? (a) and (b) are false whenever m = n is not a perfect square. If m = n, m + 2m 1/2 n 1/2 +n = 4m and hence is a perfect square if and only if m is a perfect square. Thus (c) is true.