Computer Science Section 1.6

Similar documents
Homework 3: Solutions

MATH 271 Summer 2016 Practice problem solutions Week 1

Introduction to proofs. Niloufar Shafiei

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

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

MATH CSE20 Homework 5 Due Monday November 4

m + q = p + n p + s = r + q m + q + p + s = p + n + r + q. (m + s) + (p + q) = (r + n) + (p + q) m + s = r + n.

(3,1) Methods of Proof

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

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

Foundations of Discrete Mathematics

Proofs. Chapter 2 P P Q Q

Solutions to Homework Set 1

MATH 135 Fall 2006 Proofs, Part IV

Chapter 2: The Logic of Quantified Statements. January 22, 2010

Some Review Problems for Exam 1: Solutions

3.6. Disproving Quantified Statements Disproving Existential Statements

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

Proof by Contradiction

PROBLEM SET 3: PROOF TECHNIQUES

Solutions to Assignment 1

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

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

Proofs. Chapter 2 P P Q Q

Lecture Notes on DISCRETE MATHEMATICS. Eusebius Doedel

LECTURE NOTES DISCRETE MATHEMATICS. Eusebius Doedel

Properties of the Integers

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.

Midterm: Sample 3. ECS20 (Fall 2017) 1) Using truth tables, establish for each of the two propositions below if it is a tautology, a contradiction

Homework 3 Solutions, Math 55

Math 320: Real Analysis MWF 1pm, Campion Hall 302 Homework 2 Solutions Please write neatly, and in complete sentences when possible.

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

Things to remember: x n a 1. x + a 0. x n + a n-1. P(x) = a n. Therefore, lim g(x) = 1. EXERCISE 3-2

Carmen s Core Concepts (Math 135)

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

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

Quiz 1. Directions: Show all of your work and justify all of your answers.

Undergraduate Notes in Mathematics. Arkansas Tech University Department of Mathematics. Introductory Notes in Discrete Mathematics Solution Guide

CMPSCI 250: Introduction to Computation. Lecture 11: Proof Techniques David Mix Barrington 5 March 2013

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

Discrete Mathematics Logics and Proofs. Liangfeng Zhang School of Information Science and Technology ShanghaiTech University

Summer MA Lesson 11 Section 1.5 (part 1)

Mathematics 228(Q1), Assignment 2 Solutions

Basic properties of the Integers

and problem sheet 1

Predicate logic. G. Carl Evans. Summer University of Illinois. Propositional Logic Review Predicate logic Predicate Logic Examples

LECTURE NOTES DISCRETE MATHEMATICS. Eusebius Doedel

Proof by contrapositive, contradiction

Math.3336: Discrete Mathematics. Proof Methods and Strategy

Packet #2: Set Theory & Predicate Calculus. Applied Discrete Mathematics

2k n. k=0. 3x 2 7 (mod 11) 5 4x 1 (mod 9) 2 r r +1 = r (2 r )

CSE 20 DISCRETE MATH WINTER

CSE 20 DISCRETE MATH SPRING

Homework 5 Solutions

Recitation 7: Existence Proofs and Mathematical Induction

Midterm Exam Solution

Chapter 3: Factors, Roots, and Powers

Logical Operators. Conjunction Disjunction Negation Exclusive Or Implication Biconditional

Basic Logic and Proof Techniques

First order Logic ( Predicate Logic) and Methods of Proof

Mathematical Reasoning Rules of Inference & Mathematical Induction. 1. Assign propositional variables to the component propositional argument.

Math1a Set 1 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.

Homework 5 Solutions

Argument. whenever all the assumptions are true, then the conclusion is true. If today is Wednesday, then yesterday is Tuesday. Today is Wednesday.

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

Direct Proof and Proof by Contrapositive

2. Find all combinations of truth values for p, q and r for which the statement p (q (p r)) is true.

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

1 2 1 = = =

CS Module 1. Ben Harsha Apr 12, 2017

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

MCS-236: Graph Theory Handout #A4 San Skulrattanakulchai Gustavus Adolphus College Sep 15, Methods of Proof

Exercise Set 1 Solutions Math 2020 Due: January 30, Find the truth tables of each of the following compound statements.

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

Topics in Logic and Proofs

Chapter 1. Sets and Numbers

Introduction: Pythagorean Triplets

MATH 215 Discrete Mathematics Worksheets. Which of these are propositions? What are the truth values of those that are propositions?

SECTION Types of Real Numbers The natural numbers, positive integers, or counting numbers, are

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.

COT 2104 Homework Assignment 1 (Answers)

ANALYSIS EXERCISE 1 SOLUTIONS

10.1 Radical Expressions and Functions Math 51 Professor Busken

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

Mat 243 Exam 1 Review

Lesson 3.5 Exercises, pages

CSE 20. Final Review. CSE 20: Final Review

AN INTRODUCTION TO MATHEMATICAL PROOFS NOTES FOR MATH Jimmy T. Arnold

1.1 Language and Logic

MATH 2200 Final LC Review

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

Section Summary. Proof by Cases Existence Proofs

Discrete Math, Spring Solutions to Problems V

Homework 4 Solutions

MAT 243 Test 1 SOLUTIONS, FORM A

x P(x) x P(x) CSE 311: Foundations of Computing announcements last time: quantifiers, review: logical Inference Fall 2013 Lecture 7: Proofs

DISCRETE MATH: FINAL REVIEW

Chapter 2. Real Numbers and Monomials. 8/2016 LSowatsky 1

and LCM (a, b, c) LCM ( a, b) LCM ( b, c) LCM ( a, c)

Transcription:

Computer Science 180 Solutions for Recommended Exercises Section 1.6. Let m and n be any two even integers (possibly the same). Then, there exist integers k and l such that m = k and n = l. Consequently, so the sum of m and n is even, as required. m + n = k + l = (k + l), where k + l Z, 4. Let m be any even integer. Then, there exists an integer k such that m = k. Accordingly, so the negative of m is even, as required. m = k = ( k), where k Z, 6. Let m and n be any two odd integers (possibly the same), so that there exist integers k and l such that m = k + 1 and n = l + 1. Then, mn = (k + 1)(l + 1) = 4kl + k + l + 1 = (kl + k + l) + 1, where kl + k + l Z, so the product of m and n is odd, as required. 8. First, let n be an integer. To prove the given statement, we use a proof by contradiction: assume that n is a perfect square and n + is a perfect square. Then, n = k and n + = l for some integers k and l; clearly, n + > n 0. We now let p = k and q = l, so that n = p, n + = q, and q > p 0. Consequently, p + = q = q p = (q p)(q + p) (q + p = 1 q + p = ) p = 0 (consider the positive integer factors of, then consider that q > p 0). However, n + = p + = 0 + =, which is not a perfect square. This a contradiction, thereby proving the original statement. 1

10. In if-then form, the given statement is If x is rational and y is rational, then xy is rational. To do a direct proof, we assume that x and y are both rational. Then, there exist integers p, q, m, and n with q and n being nonzero such that x = p/q and y = m/n. Accordingly, ( ) p (m ) xy = = pm q n qn, where pm and qn are integers and qn is nonzero; by definition, xy is rational, as required. 1. The if-then form of the given statement is If x is a nonzero rational and y is irrational, then xy is irrational, where the domain is R. This statement is true. To prove it, we use a proof by contradiction: assume that x is a nonzero rational and y is irrational and xy is rational. Then, there exist integers p, q, m, and n with q, n, and p being nonzero such that x = p/q and xy = m/n. Accordingly, ( ) p ( m ) ( ) q (m ) y = y = = qm q n p n pn, where qm and pn are integers and qn is nonzero i.e. y is rational, which is a contradiction, as required. 14. We use a direct proof: let x be a nonzero rational, so that there exist integers p and q both nonzero such that x = p/q. Then 1 x = 1 p/q = q p, where q and p are integers and p is nonzero, so 1/x is rational, as required. 16. Let the domain be the integers, and let E(n) be n is even. Then, the given statement is ( m)( n)(e(mn) (E(m) E(n))). Using the Contrapositive Law and De Morgan s Law, it is logically equivalent to ( m)( n)( (E(m) E(n)) E(mn)) ( m)( n)(( E(m) E(n)) E(mn)). Consider: an integer is either even or odd, so if it is not even, it must be odd. Ergo, the last statement may be expressed in English as If m is odd and n is odd, then mn is odd, which we proved in Exercise 6! ( )

30. As shown in Example 13, it suffices to prove that (i) (ii), (ii) (iii), and (iii) (i): (i) (ii): If a is less than b, then the average of a and b is greater than a: We use a direct proof: let a be less than b. Then, a < b b > a a + b > a + a a + b > a a + b so the average of a and b is greater than a, as required. > a, (ii) (iii): If the average of a and b is greater than a, then the average of a and b is less than b: Again, we use a direct proof: let the average of a and b be greater than a. Then, a + b > a a < a + b a < a + b a + b a < a + b + b a a + b < b a + b so the average of a and b is less than b, as required. < b, (iii) (i): If the average of a and b is less than b, then a is less than b: Let the average of a and b be less than b. Then, as required. a + b < b a + b < b a + b b < b b a < b, Therefore, (i), (ii), and (iii) are equivalent. 3

3. As in Exercise 30, we prove three implications: (i) (ii): If x is rational, then x/ is rational: We use a direct proof: let x be rational. Then, there exists an integer p and a nonzero integer q such that x = p/q. Consequently, x = p/q /1 = p q 1 = p q, where p is an integer and q is a nonzero integer i.e. x/ is rational, as required. (ii) (iii): If x/ is rational, then 3x 1 is rational: Again, we use a direct proof: let x/ be rational. Then, there exists an integer p and a nonzero integer q such that x/ = p/q; we rewrite this as x = p/q. Accordingly, ( ) p 3x 1 = 3 1 = 6p q q q q = 6p q, q where 6p q is an integer and q is a nonzero integer i.e. 3x 1 is rational, as required. (ii) (iii): If 3x 1 is rational, then x is rational: Let 3x 1 be rational, so that there exists an integer p and a nonzero integer q such that 3x 1 = p/q. Then, 3x 1 = p q 3x = p q + 1 3x = p q + q q 3x = p + q q x = p + q 3q, where p + q is an integer and 3q is a nonzero integer, so x is rational, as required. Thus, (i), (ii), and (iii) are equivalent. 4

4. This time, we need to prove at least four implications. To avoid a difficult subproof, let us prove five: (i) (ii), (ii) (iv), (iv) (i), (ii) (iii), and (iii) (ii): (i) (ii): If n is odd, then 1 n is even: This time, we use a contrapositive proof: let 1 n be odd, so that 1 n = k + 1 for some integer k. Then, n = k, and n = ( k) = 4k = ( k ), where k is an integer, so n is even, as required. (ii) (iv): If 1 n is even, then n + 1 is even: We use a direct proof: let 1 n be even, so that 1 n = k for some integer k. Then, n = 1 k, and n + 1 = (1 k) = (1 k)(1 k) + 1 = 1 4k + 4k + 1 = 4k + 4k = ( 1 k + k ), where 1 k + k is an integer, so n + 1 is even, as required. (iv) (i): If n + 1 is even, then n is odd: Let us use a contrapositive proof: let n be even, so that n = k for some integer k. n + 1 = k + 1, where k is an integer, so n + 1 is odd, as required. Then, (continued) 5

(continued) So far, we ve proved that (i), (ii), and (iv) are equivalent. We will now prove that (iii) is equivalent to them by proving that it is equivalent to (ii): (ii) (iii): If 1 n is even, then n 3 is odd: We use a direct proof: let 1 n be even, so that 1 n = k for some integer k. Then, n = 1 k, and n 3 = (1 k) 3 = (1 k)(1 k)(1 k) = 1 6k + 1k 8k 3 = ( 3k + 6k 4k 3) + 1, where 3k + 6k 4k 3 is an integer, so n 3 is odd, as required. (iii) (ii): If n 3 is odd, then 1 n is even: We use a contrapositive proof: let 1 n be odd, so that 1 n = k + 1 for some integer k. n = k, and n 3 = ( k) 3 = 8k 3 = ( 4k 3), where 4k 3 is an integer, so n 3 is even, as required. Then, Ergo, all four statements are equivalent. 6