Course: CS1050c (Fall '03) Homework2 Solutions Instructor: Prasad Tetali TAs: Kim, Woo Young: Deeparnab Chakrabarty:

Similar documents
1. (16 points) Circle T if the corresponding statement is True or F if it is False.

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

Homework 3, solutions

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.

2 Elementary number theory

CSC 344 Algorithms and Complexity. Proof by Mathematical Induction

PRACTICE PROBLEMS: SET 1

Discrete Structures Lecture Primes and Greatest Common Divisor

M381 Number Theory 2004 Page 1

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

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

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

Ch 4.2 Divisibility Properties

MATH10040: Numbers and Functions Homework 1: Solutions

Chapter 5.1: Induction

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

Mathematics 228(Q1), Assignment 2 Solutions

Solutions Math 308 Homework 9 11/20/2018. Throughout, let a, b, and c be non-zero integers.

cse547, math547 DISCRETE MATHEMATICS Professor Anita Wasilewska

MATH 55 - HOMEWORK 6 SOLUTIONS. 1. Section = 1 = (n + 1) 3 = 2. + (n + 1) 3. + (n + 1) 3 = n2 (n + 1) 2.

Mathematical Induction Assignments

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

4. Number Theory (Part 2)

Applied Cryptography and Computer Security CSE 664 Spring 2017

CS280, Spring 2004: Prelim Solutions

2301 Assignment 1 Due Friday 19th March, 2 pm

Arithmetic Algorithms, Part 1

Number Theory Basics Z = {..., 2, 1, 0, 1, 2,...} For, b Z, we say that divides b if z = b for some. Notation: b Fact: for all, b, c Z:

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.

Number Theory and Graph Theory. Prime numbers and congruences.

Homework #2 solutions Due: June 15, 2012

Olympiad Number Theory Through Challenging Problems

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

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

MATH 145 Algebra, Solutions to Assignment 4

CISC-102 Fall 2017 Week 6

CHAPTER 1 REAL NUMBERS KEY POINTS

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

CS2800 Questions selected for fall 2017

Fall 2017 Test II review problems

Math 109 HW 9 Solutions

5: The Integers (An introduction to Number Theory)

Discrete Mathematics. Spring 2017

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

Proof by Induction. Andreas Klappenecker

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

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

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

NOTES ON SIMPLE NUMBER THEORY

Induction and Recursion

Introduction to Number Theory

Number Theory Proof Portfolio

Mathematics for Computer Science Exercises for Week 10

12x + 18y = 50. 2x + v = 12. (x, v) = (6 + k, 2k), k Z.

Chapter 5: The Integers

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

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

MODEL ANSWERS TO THE THIRD HOMEWORK. 1. We prove this result by mathematical induction. Let P (n) be the statement that

Ma/CS 6a Class 1. Course Details

Number Theory and Divisibility

Chapter 2. Divisibility. 2.1 Common Divisors

Induction. Induction. Induction. Induction. Induction. Induction 2/22/2018

CSE 20 DISCRETE MATH. Winter

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

Intermediate Math Circles February 26, 2014 Diophantine Equations I

MATH 145 Algebra, Solutions to Assignment 4

Prof. Ila Varma HW 8 Solutions MATH 109. A B, h(i) := g(i n) if i > n. h : Z + f((i + 1)/2) if i is odd, g(i/2) if i is even.

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

Downloaded from

EECS 1028 M: Discrete Mathematics for Engineers

An Introduction to Mathematical Thinking: Algebra and Number Systems. William J. Gilbert and Scott A. Vanstone, Prentice Hall, 2005

Chapter Summary. Mathematical Induction Strong Induction Well-Ordering Recursive Definitions Structural Induction Recursive Algorithms

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

CSE 311: Foundations of Computing. Lecture 12: Two s Complement, Primes, GCD

4 Powers of an Element; Cyclic Groups

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

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

Number Theory Marathon. Mario Ynocente Castro, National University of Engineering, Peru

3. pour from one decanter to the other until either the receiving decanter is full or the poured decanter is empty.

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

Chapter 5. Number Theory. 5.1 Base b representations

Number Theory Marathon. Mario Ynocente Castro, National University of Engineering, Peru

MATH FINAL EXAM REVIEW HINTS

This is a recursive algorithm. The procedure is guaranteed to terminate, since the second argument decreases each time.

MATH 361: NUMBER THEORY FOURTH LECTURE

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

CMSC Discrete Mathematics SOLUTIONS TO SECOND MIDTERM EXAM November, 2005

Induction and recursion. Chapter 5

The Euclidean Algorithm

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.

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

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.

CSE20: Discrete Mathematics

Beautiful Mathematics

Introduction to Sets and Logic (MATH 1190)

NOTES ON INTEGERS. 1. Integers

cse547,mat547 DISCRETE MATHEMATICS Lectures Content For Midterm 2 and Final Infinite Series, Chapter 3 and Chapter 4

CSC B36 Additional Notes sample induction and well-ordering proofs. c Nick Cheng

Carmen s Core Concepts (Math 135)

cse 311: foundations of computing Spring 2015 Lecture 12: Primes, GCD, applications

Transcription:

Course: CS1050c (Fall '03) Homework2 Solutions Instructor: Prasad Tetali TAs: Kim, Woo Young: wooyoung@cc.gatech.edu, Deeparn Chakrarty: deepc@cc.gatech.edu Section 3.7 Problem 10: Prove that 3p 2 is irrational Note that if n 3 is even, then n is even, for otherwise, n would be odd, making n 3, the product of odd integers, odd. Suppose 3p 2 is rational. Thus 3p 2 = a=b, where a and b are integers and b 6= 0. Also assume that they don't have anycommon factors.cubing both sides we get, 2 = a 3 =b 3 or a 3 = 2b 3. Which implies a 3 is even. Thus a is even, and so a 3 is divisible by 8. Thus, b 3 is divisible by 4, making b 3, and thus b even. Which implies p a and b do have a common factor leading to a contradiction. 3 Hence, 2 is irrational. Problem 13: Prove that p 2 is irrational, using the unique prime factorization theorem Suppose p 2 is rational.thus p 2=a=b, where a and b are integers and b 6= 0. Also a 2 =2b 2. Now consider the unique prime factorization of a 2. Since every prime factor of a occurs twice in the upf (unique prime factorization) of a 2, the upf of a 2 must contain an even number of 2's. If 2 a, then this even number is positive, else zero. Similarly, upf of b 2 also has an even number of 2's thus upf of 2b 2 has an odd number of 2 0 s, leading to a contradiction. Hence, p 2 is irrational. Problem 22: Prove that there is a unique prime number of the form n 2 + 2n 3, where n is a positive integer. Its not difficult to see that n 2 +2n 3=(n+ 3)(n 1). Now if this were to be a prime, then one of the two of(n+3)or(n 1) must be 1 and the other must be prime, else they will be the two factors. Since n>0, n +3 >1. Thus only n 1=1is possible, which means n =2is the only case when 1

n 2 +2n 3 will be a prime. Indeed, n = 2 gives us n 2 +2n 3 = 5 which is a prime. For other values of n, n 2 +2n 3 is composite. Hence there is a unique prime of the form n 2 +2n 3. Section 3.8 Problem 14: Using Euclidean method, find the GCD of 3; 510 and 672 3510 = 672 5 + 150 672 = 150 4+72 150 = 72 2+6 72 = 6 12 Thus gcd(3510; 672) = 6. Problem 24a: Find lcm(12; 18) lcm(12,18) = lcm(2 2 3 1,2 1 3 2 ) Thus lcm(12,18) =2 2 3 2 = 36. Problem 24b: Find lcm(12; 18) lcm(2 1 3 2 5, 2 3 3 1 ) Thus lcm(12,18) =2 3 3 2 5 = 360. Problem 24c: Find lcm(3500; 1960) lcm(3500,1960) = lcm(2 2 5 3 7, 2 3 5 7 2 ) Thus lcm(12,18) =2 3 5 3 7 2 = 49,000. Problem 28: Prove that for any two numbers a and b, gcd(a; b) lcm(a; b) = a b Claim: gcd(a; b) lcm(a; b)» a b 2

Proof: Since gcd(a; b)ja, a gcd(a;b) is an integer. Thus b divides. Sim- gcd(a;b) ba ilarly, a divides. Thus a is a common multiple of a and b, gcd(a;b) gcd(a;b) implying lcm(a; b)», or, gcd(a; b) lcm(a; b)» a b a gcd(a;b) Claim: gcd(a; b) lcm(a; b) a b Proof: By definition, ajlcm(a; b). Thus lcm(a; b) = ak, for some integer k. Thus b lcm(a; b) = k which implies b = k, which implies bj lcm(a;b) lcm(a;b) lcm(a;b). Similarly aj. Thus is a common divisor. Hence, lcm(a;b) lcm(a;b)» gcd(a; b) implying gcd(a; b) lcm(a; b) a b By the two claims, gcd(a; b) lcm(a; b) =a b Section 4.2 Problem 2: Using mathematical Induction, show that any postage of denomination greater that 8c can got from stamps of 3c and 5c Base Case: 8c = 1 3c stamp + 1 5c stamp Induction Hypothesis: Any postage of denomination k can be got from stamps of 3c and 5c, when k 8. Claim: A stamp of denomination k + 1 can be got from 3c and 5c stamps. Proof: Suppose there is a 5c stamp used to make the k cents postage. Remove it and put 2 3c stamps, we get a postage of k + 1 stamps. If no 5c stamps were used, then atleast 3 3c stamps must have been used to make the k cent amount as k 8. Thus remove 3 3c stamps and put in 2 5c stamps to get k +1cworth of postage. hence proved Problem 7: Use Mathematical Induction to show that 1+5+9+ + 4n 3 = n(2n 1) Base Case: n=1. LHS = 1 3

RHS = 1(2 1) = 1 Induction Hypothesis: Let 1+5+9+ + 4n 3 = n(2n 1) for all n» k. Claim: 1+5+9+ + 4(k +1) 3 =(k + 1)(2(k + 1) 1) Proof: LHS = 1+5+9+ +4(k+1) 3 = 1+5+9+ +4k 3+4(k+1) 3 = k(2k 1) + (4k +1) By Induction Hypothesis = 2k 2 +3k+1 RHS = (k + 1)(2(k +1) 1) Hence Proved = (k + 1)(2k +1) = 2k 2 +3k+1 Problem 13: Using Mathematical Induction, prove P n+1 i=1 i2i = n2 n+2 +2 for all n 0 Base Case: n=0. LHS = 1:2 1 = 2 RHS = 0+2 = 2 Induction P P n+1 Hypothesis: i=1 i2i = n2 n+2 + 2 for all n» k k+2 Claim: i=1 i2i =(k+ 1)2 k+3 +2 Proof: LHS = = Xk+2 i=1 Xk+1 i=1 i2 i i2 i +(k+ 2)2 k+2 4

= k:2 k+2 +2+(k+ 2)2 k+2 By Induction Hypothesis = 2 k+2 (2k +2)+2 = (k+ 1)2 k+3 +2 = RHS Hence Proved Additional problem Problem : Find the GCD of 34709 and 100313; also express the GCD as an integer combination of the two numbers Using Euclid's algorithm, 100313 = 34709. 2 + 30895 34709 = 30895. 1 + 3814 30895 = 3814. 8 + 383 3814 = 383. 9 + 367 383 = 367. 1+16 367 = 16. 22+ 15 16 = 15. 1+1 Thus gcd(100313, 34709) =1 Backtracking we get the following. 16-15.1 = 1 16 - (367-16. 22). 1=1 16.23-367.1 = 1 (383-367).23-367. 1=1 383. 23-367. 24 = 1 383. 23 - (3814-383. 9).24 = 1 383. 239-3814. 24 = 1 Continuing thus we shall finally get, 100313. 2175 + 34709. (-6286) =1. A few Optional Problems Problem 3.7.15: Prove that log 2 3 is irrational Suppose not. Then log 2 3 = a=b for some integers a and b. Thus 2 a = 3 b. 5

Now the LHS has the prime factors 2 while the RHS has prime factors 3. Since b 6= 0,there is atleast one 3 in the RHS, but none in the LHS. Thus there is a contradiction. Problem 3.7.18: Suppose for any odd prime p, there exists no solutions to the equation x p + y p = z p. Then show that for every integer which is not a power of 2, x n + y n = z n has no solutions Since n is not a power of two, there exists an odd prime factor p of n. Suppose n = pk. Then x n = (X k ) p. Thus if the equation x n + y n = z n had solutions x 0 ;y 0 ;z 0 then x k 0 ;yk 0 ;zk 0 form the solutions to the equation x p + y p = z p, contadicting the premise of the problem. Hence proved Problem 3.8.23.a: Prove: gcd(a; b) = gcd(b; a b) for any two integers a b>0. Suppose dja and djb. Then dj(a b) Thus every common divisor of a and b is a common divisor of b,a b. Suppose djb and dja b, then djb +(a b) that is dja. Thus every common divisor of b and b a is a common divisor of a and b. In other words all common divisors are same, or more specifically the Greatest common divisors are same. Problem 4.2.8: Using Mathematical Induction, prove: 1+2+2 2 + +2 n = 2 n+1 1 for all n 0 Base Case: n=0. LHS = 1 RHS = 2 1 1 = 1 Induction Hypothesis: 1+2+2 2 + +2 n =2 n+1 1 for all n» k Claim: 1+2+2 2 + +2 k+1 =2 k+2 1 Proof LHS = 1+2+2 2 + +2 k+1 6

= 1+2+2 2 + +2 k +2 k+1 = 2 k+1 1+2 k+1 = 2:2 k+1 1 = 2 k+2 1 = RHS Problems 3.7.10, 3.8.14, 4.2.7 and the Additional problem were graded. These solutions were prepared by Deeparn Chakrarty(deepc@cc) Please report bugs to the same 7