(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.

Similar documents
Contribution of Problems

Chapter 5: The Integers

Ch 4.2 Divisibility Properties

NOTES ON INTEGERS. 1. Integers

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

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

Proof by Contradiction

Chapter 1 A Survey of Divisibility 14

Contribution of Problems

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

NOTES ON SIMPLE NUMBER THEORY

Chapter 2. Divisibility. 2.1 Common Divisors

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

MATH 433 Applied Algebra Lecture 4: Modular arithmetic (continued). Linear congruences.

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

Chapter 5. Number Theory. 5.1 Base b representations

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

Divisibility. Def: a divides b (denoted a b) if there exists an integer x such that b = ax. If a divides b we say that a is a divisor of b.

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

1 Overview and revision

5: The Integers (An introduction to Number Theory)

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

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

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

NUMBER SYSTEMS. Number theory is the study of the integers. We denote the set of integers by Z:

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

Writing Assignment 2 Student Sample Questions

MATH FINAL EXAM REVIEW HINTS

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

MATH 271 Summer 2016 Practice problem solutions Week 1

a = qb + r where 0 r < b. Proof. We first prove this result under the additional assumption that b > 0 is a natural number. Let

Notes for Recitation 6

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

(3,1) Methods of Proof

Notes for Math 290 using Introduction to Mathematical Proofs by Charles E. Roberts, Jr.

MATH 501 Discrete Mathematics. Lecture 6: Number theory. German University Cairo, Department of Media Engineering and Technology.

The Fundamental Theorem of Arithmetic

MATH10040: Numbers and Functions Homework 1: Solutions

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

CSE 1400 Applied Discrete Mathematics Proofs

CHAPTER 4: EXPLORING Z

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

2. THE EUCLIDEAN ALGORITHM More ring essentials

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

Cool Results on Primes

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

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

Euclidean Domains. Kevin James

Lecture Notes 1 Basic Concepts of Mathematics MATH 352

MATH 215 Final. M4. For all a, b in Z, a b = b a.

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

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

Solutions to Assignment 1

Mathematical Reasoning & Proofs

Fall 2017 Test II review problems

Proof 1: Using only ch. 6 results. Since gcd(a, b) = 1, we have

Math 109 HW 9 Solutions

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

Math 10850, fall 2017, University of Notre Dame

Elementary Properties of the Integers

2301 Assignment 1 Due Friday 19th March, 2 pm

Chapter 1 : The language of mathematics.

1. Factorization Divisibility in Z.

1. multiplication is commutative and associative;

2x 1 7. A linear congruence in modular arithmetic is an equation of the form. Why is the solution a set of integers rather than a unique integer?

PRIME NUMBERS YANKI LEKILI

Ma/CS 6a Class 2: Congruences

Do not open this exam until you are told to begin. You will have 75 minutes for the exam.

Homework 3, solutions

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

0.Axioms for the Integers 1

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

Introduction to Number Theory. The study of the integers

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

2x 1 7. A linear congruence in modular arithmetic is an equation of the form. Why is the solution a set of integers rather than a unique integer?

3 Finite continued fractions

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.

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

Math 412, Introduction to abstract algebra. Overview of algebra.

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

a the relation arb is defined if and only if = 2 k, k

CHAPTER 3. Number Theory

Math1a Set 1 Solutions

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

Mathematics 228(Q1), Assignment 2 Solutions

MATH10040 Chapter 1: Integers and divisibility

PUTNAM TRAINING NUMBER THEORY. Exercises 1. Show that the sum of two consecutive primes is never twice a prime.

Solutions I.N. Herstein- Second Edition

4 Powers of an Element; Cyclic Groups

Chapter 3: The Euclidean Algorithm and Diophantine. Math 138 Burger California State University, Fresno

Beautiful Mathematics

Name CMSC203 Fall2008 Exam 2 Solution Key Show All Work!!! Page (16 points) Circle T if the corresponding statement is True or F if it is False.

Carmen s Core Concepts (Math 135)

7.2 Applications of Euler s and Fermat s Theorem.

cse547, math547 DISCRETE MATHEMATICS Professor Anita Wasilewska

Downloaded from

PROBLEM SET 1 SOLUTIONS 1287 = , 403 = , 78 = 13 6.

Homework #2 solutions Due: June 15, 2012

Mathematics for Computer Science Exercises for Week 10

Practice Midterm Exam Solutions

Transcription:

Math 299 Midterm 2 Review Nov 4, 2013 Midterm Exam 2: Thu Nov 7, in Recitation class 5:00 6:20pm, Wells A-201. Topics 1. Methods of proof (can be combined) (a) Direct proof (b) Proof by cases (c) Proof of the contrapositive (d) Proof by contradiction (e) Proof by induction (also complete induction) 2. Axioms of a Group (G, ) (All variables below mean elements of G.) (a) Closure: a b G. (b) Associativity: (a b) c = a (b c) (c) Identity: There is e with e a = a and a e = a for all a. (d) Inverses: For each a, there is some b with a b = e and b a = e. Extra axioms (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. 3. Divisibility of integers (All variables below mean integers.) (a) Divisibility: a b means b = ac for some c (b) Properties of divisibility: a b, c = a mb+nc for all m, n a b and b c = a c. a b and b a = a = ±b. (c) Prime and composite Test: a is composite = a has prime factor p a. (d) Greatest common divisor gcd(a, b); relatively prime means gcd(a, b) = 1. (e) Division Lemma: a = qb + r with 0 r < b. (f) Euclidean Algorithm computes remainders a > b > r 1 > > r k > 0. Computes gcd(a, b) = r k. Finds m, n with gcd(a, b) = ma + nb. (g) Consequences of gcd(a, b) = ma + nb Find integer solutions (x, y) to equation ax + by = c. If e a and e b, then e gcd(a, b). Euclid s Lemma: If c ab and gcd(c, a) = 1, then c b. Prime Lemma: If p is prime with p ab, then p a or p b. (h) Fundamental Theorem of Arithmetic n > 1 is a product of primes in a unique way, except for rearranging factors. There is a unique list of powers s 1, s 2, s 3,... 0 with: n = 2 s 1 3 s 2 5 s 3 7 s 4 11 s5.

Methods of Proof: Examples Direct: A B. Start with hypothesis A, deduce conclusion B. Use: Whenever you can. This is the default method. Proposition: For integers a, b, c > 0, if a b and a c, then a (b+c). Proof: Let a b and a c, so b = an and c = am. Then b + c = an + am = a(n+m), so a (b+c). Cases: (A and C) B and (A and not C) B. Assume hypothesis A and take the case where C is true; deduce conclusion B. Also, assume A and take the case where C is false; deduce B. Use: When you need more information (C or not C) to get from A to B. Proposition: For any integer n, we have n 2 n even. Proof: There is no hypothesis other than n Z. In case n is even, we have n = 2m and n 2 n = 4m 2 2m = 2(2m 2 m), which is even. In case n is not even (odd), we have n = 2m + 1 and n 2 n = 4m 2 + 4m + 1 2m 1 = 2(2m 2 + m), which is also even. Contrapositive: not(b) not(a). Assume B is false, deduce A is false. Use: When not(b) is a simpler or more powerful asumption than A. Proposition: For a Z, if a 2 is divisible by 3, then a is divisible by 3. Proof: Assume the contrapositive hypothesis that n is not divisible by 3, that is n = 3k+r with r = 1 or 2.Then n 2 = 9k 2 + 6kr + r 2 = 3(3k 2 +2kr) + r 2, where r 2 = 1 or r 2 = 4 = 3 + 1. In either case, n 2 is not divisible by 3, which is the contrapositive conclusion. Note: We could directly use the Prime Lemma: if p ab, then p a or p b. Take p = 3, b = a. Contradiction: (A and not B) (C and not C). Assume A B is false, meaning A is true and B is false. Deduce a contradiction, the impossible statement that C is both true and false. Use: As last resort. You can t see why it s true, so you prove it can t be false. Proposition: 3 is irrational. Proof: There is no hypothesis A, so we assume only not(b): 3 is rational, meaning 3 = a b, a fraction in lowest terms. Then 3 = a2 b and a 2 = 3b 2. Thus a 2 is divisible by 3, and the Prime 2 Lemma implies a is dvisible by 3, so that a = 3m. Hence 9m 2 = a 2 = 3b 2, and 3m 2 = b 2, so b 2 is divisible by 3, which implies b is divisible by 3. However, since a b is in lowest terms and a is divisible by 3, we must have b not divisible by 3 (otherwise the fraction could be reduced). That is, b is both divisible by 3 and not divisible by 3. This contradiction shows that our beginning assumption was false, and the Proposition is true. To summarize: if you give me a fraction with a b = 3, then I can produce an integer b which is both divisible and not divisible by 3. Mathematical Induction: To prove A(n) for all integers n b: Anchor (Base Case) A(b); and Chain Step: for each n b, A(n) A(n+1). Use: When the statement A(n) depends on an integer n, and A(n) is part of A(n+1). Proposition: For all integers n 1, we have 1 + 2 + 2 2 + + 2 n 1 = 2 n 1. Proof: Anchor A(1) says: 1 = 2 1 1, which is true. Chain: For some n 1, assume the inductive hypothesis A(n): 1+2+2 2 + +2 n 1 = 2 n 1. Then 1 + 2 + 2 2 + + 2 n 1 + 2 n = (2 n 1) + 2 n by the indctive hypothesis, which equals: 2(2 n ) 1 = 2 n+1 1. That is, we have A(n+1): 1 + 2 + 2 2 + + 2 n = 2 n+1 1, which is the inductive conclusion. Final conclusion: A(n) is true for all n 1.

Problems 1. Relatively prime integers (a) Prove: For a, b Z, gcd(a, b) = 1 na + mb = 1 for some n, m Z. (b) Prove: For a, b, c Z, if gcd(a, b) = 1 and gcd(a, c) = 1, then gcd(a, bc) = 1. 2. Suppose a positive integer n has the property: n ab n a or n b. Then n is prime. 3. Recall the Fibonacci numbers F 1 = F 2 = 1, and F n+1 = F n 1 + F n for n 2. Prove that for all n N, we have F 1 + F 2 + + F n = F n+2 1. 4. For positive integers a, b, c, d, if ab cd, then a c or b d. 5. Let x be an irrational real number. Prove that either x 2 or x 3 is irrational. 6. prop: For any n N, at least one of the numbers n, n+1, n+2, n+3 is divisible by 4. (a) Use induction to prove the Proposition. (b) Use the Division Lemma to prove the Proposition. 7. Prove: Let a 1 = 1 and a n+1 = 1 2 a n + 1 for n 1. Then a n < 2 for all n. 8. Prove: Let p, q be distinct primes. Then log p (q) is irrational. 9. We get a commutative group from the real numbers R with the addition operation, and also from the non-zero reals R \ {0} with the multiplication operation. Also, multiplication distributes over addition. Give a fully detailed proof of the formula (a+b) 2 = a 2 +2ab+b 2 for a, b R, referring to the necessary axiom at each step. 10. Prove that 101 is prime. 11. Find all integer solutions (x, y) to the equation 5x + 13y = 1.

Solutions 1a. prop: For a, b Z, we have gcd(a, b) = 1 if and only if na + mb = 1 for some n, m Z. Proof: (= ) Direct proof. If gcd(a, b) = 1, the we know that the Euclidean Algorithm allows us to write na + mb = gcd(a, b) = 1 for m, n Z. ( =) Direct proof. Assume na + mb = gcd(a, b) = 1 for m, n Z. For any positive common divisor c a, b, we have c na+mb = 1, so c = 1. Thus, the greatest common divisor gcd(a, b) = 1. 1b. prop: For a, b, c Z, if gcd(a, b) = 1 and gcd(a, c) = 1, then gcd(a, bc) = 1. First Proof: Direct proof from previous results. Assume gcd(a, b) = gcd(a, c) = 1. By the Euclidean Algorithm, we can write ma + nb = 1 and qa + rc = 1, so that: (1)(1) = (ma + nb)(qa + rc) = (ma)(qa) + (nb)(qa) + (ma)(rc) + (nb)(rc) = (maq + nbq + mrc)a + (nr)(bc). That is, ka + l(bc) = 1 for k, l Z, so Proposition 1(a) above gives gcd(a, bc) = 1. Second Proof. Contrapositive. Assume the contrapositive hypothesis: d = gcd(a, bc) > 1. Then d has a prime factor p d, with p a and p bc. By the Prime Lemma, this means p b, so that gcd(a, b) p > 1; or p c, so that gcd(a, c) p > 1. In either case, gcd(a, b) > 1 or gcd(a, c) > 1, which is the contrapositive conclusion. 2. prop: Let n be a positive integer such that n ab n a or n b. Then n is prime. Proof: The conclusion that n is prime is basically negative: n does not have a factorization. Thus, the contrapositive will be simpler to work with. The contrapositive hypothesis is that n is composite: n = ab with 1 < a, b < n. This gives some a, b with n ab, but n a and n b. This is precisely the contrapositive conclusion, the negation of a, b : n ab n a or n b. 3. prop: The Fibonacci numbers F n satisfy: F 1 + F 2 + + F n = F n+2 1. Proof. Induction. Let A(n) be the formula for a given n 1. Base: F 1 = 1 = 2 1 = F 3 1, so A(1) is true. Chain. Assume A(n): F 1 + F 2 + + F n = F n+2 1 for some n 1. Then: F 1 + F 2 + + F n + F n+1 = (F n+2 1) + F n+1 by inductive hypothesis = F n+2 + F n+1 1 = F n+3 1 by recurrence for F n+3 which gives the inductive conclusion A(n+1). 4. prop: For positive integers a, b, c, d, if ab cd, then a c or b d. Proof. Contrapositive. Assume the contrapositive hypothesis a c and b d. Then c = na and d = mb, so that cd = nmab. This gives the contrapositive conclusion ab cd. 5. Let x be an irrational real number. Prove that either x 2 or x 3 is irrational. Proof. Contrapositive. Assume the contrapositive hypothesis: x 2 and x 3 are rational. If x = 0, then x is rational. Otherwise, x 0, and the quotient of two rational numbers is rational, so x = x 2 /x 3 is again rational. This is the contrapositive conclusion.

6. prop: For any n N, at least one of the numbers n, n+1, n+2, n+3 is divisible by 4. a. Proof. Induction with cases. Base: Among 0,1,2,3, we have 0 divisible by 4. Chain Step: Inductively assume 4 divides one of the numbers n, n+1, n+2, n+3. We wish to conclude that 4 divides one of the numbers n+1, n+2, n+3, n+4. Case 1: If 4 divides one of n+1, n+2, n+3, then the conclusion holds. Case 2: If 4 divides n, then n = 4k and n+4 = 4(k+1) is divisible by 4, and the conclusion again holds. b. Proof. Cases. Write n = 4q + r for some 0 r < 4. Case 1: In case r = 0, then n = 4q, and n+4 = 4(q+1) is divisible by 4. In case r > 0, let k = 4 r {1, 2, 3}. Then n+k = 4q + 4 = 4(q+1) is divisible by 4, and n + k is one of n+1, n+2, n+3. In either case, one of n, n+1, n+2, n+3 is divisible by 4. 7. prop: Let a 1 = 1 and a n+1 = 1 2 a n + 1 for n 1. Then a n < 2 for all n. a. Proof. Induction. Base: a 1 = 1 < 2. Chain: Assume a n < 2 for some n. Then a n+1 = 1 2 a n + 1 < 1 2 (2) + 1 = 2. That is, a n+1 < 2. 8. prop: Let p, q be distinct primes. Then log p (q) is irrational. Proof. Contradiction. Assume that log p (q) is rational, meaning log p (q) = a/b for integers a, b. We may assume a, b > 0 since the prime q > 1, so log p (q) > 0. Then p log p (q) = p a/b, so q = p a/b, and q b = p a. By the Fundamental Theorem of Arithmetic, any integer has a unique factorization into primes, so it is not possible for q a to be factored as p b for a different prime p (remember a, b > 0). This contradiction proves our original assumption was false, meaning log p (q) is irrational. 9. prop: For any a, b R, we have (a + b) 2 = a 2 + 2ab + b 2 Proof. Direct proof. Note that x 2 means x x and 2 means 1+1. (a + b) (a + b) = (a + b) a + (a + b) b by distributivity = a a + b a + a b + b b by distributivity = a a + a b + a b + b b by multiplicative commutativity = a a + 1 a b + 1 a b + b b by multiplicative identity = a a + (1+1) a b + b b by distributivity = a 2 + 2 a b + b 2 by definition. Also, we have used additive associativity throughout, which allows us to write expressions like w + x + y + z without specifying which addition is done first, as in ((x + y) + z) + w or (w + (x + y)) + z. 10. prop: 101 is a prime number. Proof. We know that if n is composite, then n has a prime factor p n. Contrapositively, if n has no prime factor p n, then n is prime. Now, n = 101 is not divisible by p = 2, 3, 5, or 7, since 101 2 = 50 1 2, 101 3 = 33 2 3, 101 5 = 20 1 5, 101 7 = 14 3 7. These are all the primes p 101 = 10.05, so 101 is prime. 11. To find all integer solutions to 5x + 13y = 1, we first perform the Euclidean Algorithm on a = 13 and b = 5 (top-to-bottom), then perform back-substitution to get a particular solution to 5x + 13y = gcd(5, 13) (bottom-to-top): 13 = 2(5) + 3 1 = 1(5) + 2(13 2(5)) = 2(13) 5(5) 5 = 1(3) + 2 1 = 1(3) 1(5 3) = 1(5) + 2(3) 3 = 1(2) + 1 1 = 3 1(2) = 1(3) 1(2) 2 = 2(1) + 0 1 = gcd(13, 5) Now from the particular solution (2, 5), we get the general solution in terms of d = gcd(5, 13) = 1: namely (x, y) = (2 + 13 d n, 5 5 dm) = (2 + 13n, 5 5m) for all n, m Z.