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

Similar documents
UNIT-II NUMBER THEORY

ELEMENTARY NUMBER THEORY AND METHODS OF PROOF

ELEMENTARY NUMBER THEORY AND METHODS OF PROOF

ELEMENTARY NUMBER THEORY AND METHODS OF PROOF

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

CHAPTER 8. Copyright Cengage Learning. All rights reserved.

A. Incorrect! To simplify this expression you need to find the product of 7 and 4, not the sum.

Multiplying and Dividing Rational Expressions

Chapter 1: Number and Operations

Number Theory and Proof Methods

Algebra 1 Review. Properties of Real Numbers. Algebraic Expressions

Algebra II Chapter 6: Rational Exponents and Radical Functions

Rules of Exponents Part 1[Algebra 1](In Class Version).notebook. August 22, 2017 WARM UP. Simplify using order of operations. SOLUTION.

Warm Up Simplify each expression. Assume all variables are nonzero.

Multiplying and Dividing Rational Expressions

Is the statement sufficient? If both x and y are odd, is xy odd? 1) xy 2 < 0. Odds & Evens. Positives & Negatives. Answer: Yes, xy is odd

Integers are whole numbers; they include negative whole numbers and zero. For example -7, 0, 18 are integers, 1.5 is not.

Problem. Prove that the square of any whole number n is a multiple of 4 or one more than a multiple of 4.

Simplifying Square Root Expressions[In Class Version][Algebra 1 Honors].notebook August 26, Homework Assignment. Example 5 Example 6.

EXAMPLE 1. Change each of the following fractions into decimals.

Number System. Introduction. Natural Numbers (N) Whole Numbers (W) Integers (Z) Prime Numbers (P) Face Value. Place Value

A.1 Numbers, Sets and Arithmetic

Rational Numbers: Multiply and Divide

Pythagorean Triples. Chapter 2. Exercises

Summer Assignment Glossary

Student Outcomes. Classwork. Discussion (10 minutes)

(-,+) (+,+) Plotting Points

ELEMENTARY NUMBER THEORY AND METHODS OF PROOF

Learning Log Title: CHAPTER 3: ARITHMETIC PROPERTIES. Date: Lesson: Chapter 3: Arithmetic Properties

Algebra Homework: Chapter 1 (Homework is listed by date assigned; homework is due the following class period) Day Date In-Class Homework

Operations and Properties

Chapter 4 Section 2 Operations on Decimals

Exponents and Real Numbers

Mth 60 Module 2 Section Signed Numbers All numbers,, and

Study Guide For use with pages

Lesson 1: Arithmetic Review

Lemma (x, y, z) is a Pythagorean triple iff (y, x, z) is a Pythagorean triple.

[Ch 6] Set Theory. 1. Basic Concepts and Definitions. 400 lecture note #4. 1) Basics

Math Glossary Numbers and Arithmetic

50 MATHCOUNTS LECTURES (6) OPERATIONS WITH DECIMALS

Radical Expressions and Functions What is a square root of 25? How many square roots does 25 have? Do the following square roots exist?

MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question.

Exercise 1.1. Page 1 of 22. Website: Mobile:

Algebra II Chapter 8 Part 2: Rational Functions

Section 3.1 Factors and Multiples of Whole Numbers:

1-3 Multiplying and Dividing Real Numbers

2.4 Multiplication and Division of Integers

Mini-Lectures by Section

Unit 3: Multiplication and Division Reference Guide pages x 7 = 392 factors: 56, 7 product 392

Review of Operations on the Set of Real Numbers

Rational numbers as decimals and as integer fractions

Section 2.3 Rational Numbers. A rational number is a number that may be written in the form a b. for any integer a and any nonzero integer b.

Math Circle Beginners Group October 18, 2015 Solutions

Math 302 Introduction to Proofs via Number Theory. Robert Jewett (with small modifications by B. Ćurgus)

Final Exam: Precalculus

UNIT 8 STUDY SHEET POLYNOMIAL FUNCTIONS

Any Integer Can Be Written as a Fraction

Lesson 16: Applying the Properties of Operations to Multiply and Divide Rational Numbers

SUMMER REVIEW PACKET 2 FOR STUDENTS ENTERING ALGEBRA 1

Prepared by Sa diyya Hendrickson. Package Summary

Unit 2: Accentuate the Negative Name:

SEQUENCES, MATHEMATICAL INDUCTION, AND RECURSION

Exponent Properties: The Product Rule. 2. Exponential expressions multiplied with each other that have the same base.

Mathematics. Grade 8 Curriculum Guide. Curriculum Guide Revised 2016

Mathematics Background

Lesson 10: Representing, Naming, and Evaluating Functions

6.3. Complex Fractions

Name Core Date Accentuate the Negative

Radicals - Mixed Index

Math 7 Notes Unit 2B: Rational Numbers

Section 1.2 Fractions

Mini-Lesson 1. Section 1.1: Order of Operations PEMDAS

Limits and Continuity: section 12.2

Objective Simplify expressions using the properties of exponents.

NAME UNIT 4 ALGEBRA II. NOTES PACKET ON RADICALS, RATIONALS d COMPLEX NUMBERS

Course Learning Outcomes for Unit I. Reading Assignment. Unit Lesson. UNIT I STUDY GUIDE Number Theory and the Real Number System

Math 355: Linear Algebra: Midterm 1 Colin Carroll June 25, 2011

Slide 1 / 180. Radicals and Rational Exponents

Ch 3.4 The Integers and Division

Algebra II Radical Equations

Rational number operations can often be simplified by converting mixed numbers to improper fractions Add EXAMPLE:

REGULAR GRAPHS OF GIVEN GIRTH. Contents

Pick any positive integer. If the integer is even, divide it by 2. If it is odd,

ALGEBRA I Summer Packet

Math 083 Final Exam Practice

Odd-Numbered Answers to Exercise Set 1.1: Numbers

College Prep Algebra II Summer Packet

EXERCISE Which of the following is irrational? (C) 7 (D) 81 (A) (B)

Chapter 3. Set Theory. 3.1 What is a Set?

2009 HMMT Team Round. Writing proofs. Misha Lavrov. ARML Practice 3/2/2014

Unit 7 Number System and Bases. 7.1 Number System. 7.2 Binary Numbers. 7.3 Adding and Subtracting Binary Numbers. 7.4 Multiplying Binary Numbers

1-3 Continuity, End Behavior, and Limits

, 1 1, A complex fraction is a quotient of rational expressions (including their sums) that result

Chapter 9 Review. By Charlie and Amy

Divisibility Rules and Their Explanations

Solving Algebraic Equations

PreCalculus 300. Algebra 2 Review

Indirect measure the measurement of an object through the known measure of another object.

The set consisting of all natural numbers that are in A and are in B is the set f1; 3; 5g;

Limits and an Introduction to Calculus. Copyright Cengage Learning. All rights reserved.

Transcription:

CSE 215: Foundations of Computer Science Recitation Exercises Set #4 Stony Brook University Name: ID#: Section #: Score: / 4 Unit 7: Direct Proof Introduction 1. The statement below is true. Rewrite the statement with the quantification implicit as If, then, and also write the first sentence of a proof (the starting point ) and the last sentence of a proof (the conclusion to be shown ). For all integers m, if m > 1, then 0 < 1 m < 1. If an integer is greater than 1, then its reciprocal is between 0 and 1. Start of proof: Suppose m is any integer such that m > 1. Conclusion to be shown: 0 < 1 m < 1. 2. Prove the following statement: The difference of any even integer minus any odd integer is odd. Proof: Suppose a is any even integer and b is any odd integer. We must show that a b is odd. By definition of even and odd, a = 2r and b = 2s + 1 for some integers r and s. By substitution and algebra, a b = 2r (2s + 1) = 2r 2s 1 = 2(r s 1) + 1 Let t = r s 1. Then t is an integer because differences of integers are integers. Thus a b = 2t + 1, where t is an integer, and so, by definition of odd, a b is odd. CSE 215 R01/R02/R06 Page 1 of 6

3. Prove the following statement: Suppose that n is any even integer. Then ( 1) n = 1. Proof: Suppose n is any even integer. Then n = 2k for some integer k. Hence, ( 1) n = ( 1) 2k by substitution = (( 1) 2 ) k by a law of exponents = 1 k because ( 1) 2 = 1 = 1 because 1 raise to any power equals 1. This is what we wanted to show. 4. Prove that the following statement is false: There exists an integer m 3 such that m 2 1 is prime. The negation of the statement is For all integers m 3, m 2 1 is not prime. Proof of the negation: Suppose m is any integer with m 3. By basic algebra, m 2 1 = (m 1)(m + 1). Because m 3, both m 1 and m + 1 are positive integers greater than 1, and each is smaller than m 2 1. So m 2 1 is a product of two smaller positive integers, each greater than 1, and hence m 2 1 is not prime. CSE 215 R01/R02/R06 Page 2 of 6

Unit 8: Direct Proofs Involving Rational Numbers 5. Consider the statement: The negative of any rational number is rational. a. Write the statement formally using a quantifier and a variable. real numbers r, if r is rational then r is rational. Or: r, if r is a rational number then r is rational. Or: rational numbers r, r is rational. b. Determine whether the statement is true or false and justify your answer. The statement is true. Proof: Suppose r is a rational number. We must show that r is rational. By definition of rational, r = a b Then r = a b = a b by algebra for some integers a and b with b 0. by substitutions But since a is an integer, so is a (being the product of 1 and a). Hence, r is a quotient of integers with a nonzero denominator, and so r is rational 6. Prove that for any rational numbers r and s, 2r + 3s is rational. Suppose r and s are any rational numbers. Both 2 and 3 are integers, and are therefore rational numbers. Now, the product any two rational numbers is a rational number. (We proved this in class.) Therefore, both 2r and 3s are rational. We also know that the sum of two rational numbers is rational. (We proved this in class too.) Therefore, 2r + 3s is rational. CSE 215 R01/R02/R06 Page 3 of 6

Unit 9: Direct Proofs Involving Divisibility and the Quotient-Remainder Theorem 7. Prove that for all integers a, b and c, if a b and a c then a (b + c). Proof: Suppose a, b and c are any integers such that a b and a c. We must show that a (b + c). By definition of divides, b = ar and c = as for some integers r and s. Then b + c = ar + as = a(r + s) by algebra. Let t = r + s. Then t is an integer (being a sum of integers), and thus b + c = at where t is an integer. By definition of divides, then, a (b + c). 8. True or false: For all integers a, b and c, if a is a factor of c then ab is a factor of c. Prove your answer. The statement is false. Counterexample: Let a = 2, b = 3 and c = 8. Then a c because 2 divides 8, but ab c because ab = 6 and 6 does not divide 8. 9. Use the unique factorization theorem to write 1,176 in standard factored form. 1176 = 2 3 3 7 2 10. Suppose that in standard factored form, a = p e 1 1 p e 2 2 p e k k, where k is a positive integer; p 1, p 2,..., p k are prime numbers; and e 1, e 2,..., e k are positive integers. What is the standard factored form for a 2? p 2e 1 1 p 2e 2 2 p 2e k k CSE 215 R01/R02/R06 Page 4 of 6

11. If a and b are integers and 12a = 25b, does 12 b? Does 25 a? Explain. Because 12a = 25b, the unique factorization theorem guarantees that the standard factored forms of 12a and 25b must be the same. Thus 25b contains the factors 2 2 3(= 12). But since neither 2 nor 3 divide 25, the factors 2 2 3 must all occur in b, and hence 12 b. Similarly, 12a contains the factors 5 2 = 25, and since 5 is not a factor of 12, the factors 5 2 must occur in a. So 25 a. 12. Suppose a is an integer. If a mod 7 = 4, what is 5a mod 7? In other words, if division of a by 7 gives a remainder of 4, what is the remainder when 5a is divided by 7? Because a mod 7 = 4, the remainder obtained when a is divided by 7 is 4, and so a = 7q + 4 for some integer q. Multiplying this equation through by 5 gives that 5a = 35q + 20 = 35q + 14 + 6 = 7(5q + 2) + 6. Because q is an integer, 5q + 2 is also an integer, and so 5a = 7 (an integer) + 6. Thus, because 0 6 < 7, the remainder obtained when 5a is divided by 7 is 6, and so 5a mod 7 = 6. CSE 215 R01/R02/R06 Page 5 of 6

13. Use the quotient-remainder theorem with d = 3 to prove that the product of any three consecutive integers is divisible by 3. Suppose n, n+1 and n+2 are any three consecutive integers. We must show that n(n+1)(n+2) is divisible by 3. By the quotient-remainder theorem, n can be written in one of the three forms: 3q, 3q + 1 or 3q + 2 for some integer q. Case 1 (n = 3q): In this case, n(n + 1)(n + 2) = 3q(3q + 1)(3q + 2) = 3 [q(3q + 1)(3q + 2)] Let m = q(3q + 1)(3q + 2). Then m is an integer because q is an integer, and sums and products of integers are integers. By substitution, n(n + 1)(n + 2) = 3m where m is an integer. And so, by definition of divisible, n(n + 1)(n + 2) is divisible by 3. Case 2 (n = 3q + 1): In this case, n(n + 1)(n + 2) = (3q + 1)((3q + 1) + 1)((3q + 1) + 2) = (3q + 1)(3q + 2)(3q + 3) = (3q + 1)(3q + 2)3(q + 1) = 3 [(3q + 1)(3q + 2)(q + 1)] Let m = (3q + 1)(3q + 2)(q + 1). Then m is an integer because q is an integer, and sums and products of integers are integers. By substitution, n(n + 1)(n + 2) = 3m where m is an integer. And so, by definition of divisible, n(n + 1)(n + 2) is divisible by 3. Case 3 (n = 3q + 2): In this case, n(n + 1)(n + 2) = (3q + 2)((3q + 2) + 1)((3q + 2) + 2) = (3q + 2)(3q + 3)(3q + 4) = (3q + 2)3(q + 1)(3q + 4) = 3 [(3q + 2)(q + 1)(3q + 4)] Let m = (3q + 2)(q + 1)(3q + 4). Then m is an integer because q is an integer, and sums and products of integers are integers. By substitution, n(n + 1)(n + 2) = 3m where m is an integer. And so, by definition of divisible, n(n + 1)(n + 2) is divisible by 3. In all three cases, n(n + 1)(n + 2) is divisible by 3. But by the quotient-remainder theorem, one of these cases must occur. Therefore, the product of any three consecutive integers is divisible by 3. CSE 215 R01/R02/R06 Page 6 of 6