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

Similar documents
Math 109 HW 9 Solutions

Masters Tuition Center

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

CHAPTER 1 REAL NUMBERS KEY POINTS

Notes on Systems of Linear Congruences

MATH 310: Homework 7

Homework #2 solutions Due: June 15, 2012

Solution Sheet (i) q = 5, r = 15 (ii) q = 58, r = 15 (iii) q = 3, r = 7 (iv) q = 6, r = (i) gcd (97, 157) = 1 = ,

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

Proof by Contradiction

MATH10040: Numbers and Functions Homework 1: Solutions

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.

Solutions to Assignment 1

Cool Results on Primes


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


Know the Well-ordering principle: Any set of positive integers which has at least one element contains a smallest element.

CHAPTER 3. Congruences. Congruence: definitions and properties

PROBLEMS ON CONGRUENCES AND DIVISIBILITY

3.2 Solving linear congruences. v3

1 Overview and revision

Winter Camp 2009 Number Theory Tips and Tricks

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

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.

Numbers and their divisors

3 The fundamentals: Algorithms, the integers, and matrices

Definition 6.1 (p.277) A positive integer n is prime when n > 1 and the only positive divisors are 1 and n. Alternatively

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

Solutions to Practice Final

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

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

1. Prove that the number cannot be represented as a 2 +3b 2 for any integers a and b. (Hint: Consider the remainder mod 3).

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

Math 319 Problem Set #2 Solution 14 February 2002

Wilson s Theorem and Fermat s Little Theorem

7.2 Applications of Euler s and Fermat s Theorem.

EDULABZ INTERNATIONAL NUMBER SYSTEM

4 Number Theory and Cryptography

CHAPTER 6. Prime Numbers. Definition and Fundamental Results

A group of figures, representing a number, is called a numeral. Numbers are divided into the following types.

10 Problem 1. The following assertions may be true or false, depending on the choice of the integers a, b 0. a "

MATH CSE20 Homework 5 Due Monday November 4

MATH 4400 SOLUTIONS TO SOME EXERCISES. 1. Chapter 1

MTH 346: The Chinese Remainder Theorem

CS 5319 Advanced Discrete Structure. Lecture 9: Introduction to Number Theory II

= 1 2x. x 2 a ) 0 (mod p n ), (x 2 + 2a + a2. x a ) 2

NAME DATE PERIOD. A negative exponent is the result of repeated division. Extending the pattern below shows that 4 1 = 1 4 or 1. Example: 6 4 = 1 6 4

Recitation 7: Existence Proofs and Mathematical Induction

Q 2.0.2: If it s 5:30pm now, what time will it be in 4753 hours? Q 2.0.3: Today is Wednesday. What day of the week will it be in one year from today?

An integer p is prime if p > 1 and p has exactly two positive divisors, 1 and p.

MATH 3030, Abstract Algebra FALL 2012 Toby Kenney Midyear Examination Friday 7th December: 7:00-10:00 PM

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

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

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

M381 Number Theory 2004 Page 1

Math 110 HW 3 solutions

MATH 361: NUMBER THEORY FOURTH LECTURE

MATH 3240Q Introduction to Number Theory Homework 4

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

CSE 20 DISCRETE MATH. Winter

REVIEW Chapter 1 The Real Number System

Chapter 3 Basic Number Theory

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

Class IX Chapter 1 Number Sustems Maths

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

k, then n = p2α 1 1 pα k

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.

SOLUTIONS TO PROBLEM SET 1. Section = 2 3, 1. n n + 1. k(k + 1) k=1 k(k + 1) + 1 (n + 1)(n + 2) n + 2,

MATHEMATICS X l Let x = p q be a rational number, such l If p, q, r are any three positive integers, then, l that the prime factorisation of q is of t

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

Some Review Problems for Exam 1: Solutions

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?

Chapter 1 : The language of mathematics.

EXAMPLES OF MORDELL S EQUATION

Math 4400/6400 Homework #8 solutions. 1. Let P be an odd integer (not necessarily prime). Show that modulo 2,

1. multiplication is commutative and associative;

TECHNIQUES IN FACTORISATION

MATHEMATICS IN EVERYDAY LIFE 8

Homework 3, solutions

Course MA2C02, Hilary Term 2013 Section 9: Introduction to Number Theory and Cryptography

Integers and Division

(3,1) Methods of Proof

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

Intermediate Math Circles March 6, 2013 Number Theory I

MATH 271 Summer 2016 Practice problem solutions Week 1

This exam contains 5 pages (including this cover page) and 4 questions. The total number of points is 100. Grade Table

A SURVEY OF PRIMALITY TESTS

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

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

Definition For a set F, a polynomial over F with variable x is of the form

All variables a, b, n, etc are integers unless otherwise stated. Each part of a problem is worth 5 points.

Ma/CS 6a Class 2: Congruences

Senior Math Circles Cryptography and Number Theory Week 2

MATH 2200 Final LC Review

Course 2BA1: Trinity 2006 Section 9: Introduction to Number Theory and Cryptography

Ch 4.2 Divisibility Properties

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.

Theory of Numbers Problems

Properties of the Integers

Transcription:

MATH 11/CSCI 11, Discrete Structures I Winter 007 Toby Kenney Homework Sheet 5 Hints & Model Solutions Sheet 4 5 Define the repeat of a positive integer as the number obtained by writing it twice in a row (in decimal). For example, the repeat of 364 is 364364. Find a positive integer n such that the repeat of n is eual to m for some integer m. [Hint: the repeat of n is always a multiple of n. You may find the following divisibility test useful: a number is divisible by 11 if and only if the sum of its odd digits minus the sum of its even digits is divisible by 11. For example, 154 is divisible by 11 since the sum of its odd digits is 1+5=6 and the sum of its even digits is +4=6, so their difference is 0, which is divisible by 11. You won t find the answer by trial and error.] The repeat of a number n with k digits is (10 k + 1)n. If this is a suare, then every prime factor of 10 k + 1 must divide it, and must therefore also divide its suare root. Thus, the suare of every prime factor of 10 k + 1 must divide (10 k + 1)n, so either its suare will divide 10 k + 1, or it must divide n. Since n < 10 k + 1, if 10 k + 1 is not divisible by the suare of any prime number, then (10 k + 1)n cannot be a suare. Therefore, we have to look for a positive integer k such that 10 k + 1 is divisible by the suare of some prime. To save time in our search, we can note that if k is even, then 10 k + 1 = 11 90... 9091. Therefore, if one of the numbers of the form 90... 9091 is divisible by 11, then 11 will divide the corresponding 10 k + 1. There is a useful test for divisibility by 11: add up the odd digits and subtract the even ones; if the answer is divisible by 11, then the original number was. Using this test, we see that if there are 5 9 s in the number, then it will be divisible by 11. Indeed, 10 11 +1 = 11 8644681, so the number 8644681008644681 is a perfect suare. However, this is not the repeat of a number, because it has a leading 0 8644681 has too few digits. To remedy this problem, we multiply 8644681 by a suare number to increase the number of digits by. The suare numbers which do this are 16, 5, 36, 49, 64, 81 and 100. These give us 133140496133140496 = 36363636364 (1) 066115705066115705 = 45454545455 () 975066116975066116 = 54545454546 (3) 4049586776940495867769 = 63636363637 (4) 1

589561984589561984 = 777778 (5) 6694148761694148761 = 81818181819 (6) 864468100864468100 = 90909090910 (7) These are the only solutions less than 10 0. 8 Consider the integers whose last digit (in decimal) is 1. The product of any two such integers is another such integer. Any such integer can therefore be factored as a product of integers of this type that cannot be written as non-trivial products of other integers of this type. For example, 7, 11 = 11 1 31, and 11, 1, and 31 cannot be expressed as products of integers whose last digit is 1. Can every integer of this type be written in a uniue way as such a product? Give a proof or a counterexample. This factorisation is not uniue consider 4641 = 1 1 = 51 91. The easy way to find this counterexample is to note that by uniue prime factorisation for positive integers, the numbers must be composed from the same primes multiplied together in two different ways. For example, we could form the product of the 4 primes p 1, p, p 3, and p 4 as either (p 1 p )(p 3 p 4 ) or (p 1 p 4 )(p 3 p ). We want all the bracketed products to be congruent to 1 modulo 10. Therefore, p p (p 1 p 4 ) = (p p 1 )p 4 p 4 (mod 10), and similarly p 1 p 3 (mod 10). This will work if p 1 p 3 3 (mod 10) and p p 4 7 (mod 10); the smallest collection of primes of this form is 3,7,13,17. Alternatively, we could have p 1 p p 3 p 4 9 (mod 10), for example 19 9 59 79 = 551 4661 = 111 581 = 1501 1711. Sheet 5 1 Use Euclid s algorithm to find the greatest common divisor of the following pairs of numbers. Write down all the steps involved. (a) 13,456 and 654,31 65431 = 5 13456 + 37041 13456 = 3 37041 + 1333 37041 = 3 1333 + 4 1333 = 93 4 + 7 4 = 1 7 + 15

7 = 1 15 + 1 15 = 1 1 + 3 1 = 4 3 So the greatest common divisor of 13,456 and 654,31 is 3. (b) 1,111,111 and 1,11,1 1111 = 10 1111111 + 101010 1111111 = 1 101010 + 101009 101010 = 10 101009 + 1 101009 = 8417 1 + 5 1 = 5 + 5 = + 1 = 1 So the greatest common divisor of 1,111,111 and 1,11,1 is 1. Find integers a and b such that 13579a + 468b = 1. 13579 = 5 468 + 139 468 = 1 139 + 19 139 = 19 + 10 19 = 1 10 + 9 10 = 1 9 + 1 So working backwards: 1 = 10 9 = 10 (19 1 10) = 13 10 19 = 13 (139 19) 19 = 13 139 14 19 = 13 139 14 (468 139) = 47 139 14 468 = 47 (13579 5 468) 14 468 = 47 13579 1359 468 So a = 47, b = 1359 works. 3

3 (a) Show that any number congruent to 3 modulo 4 is divisible by a prime number congruent to 3 modulo 4.[You may assume that the product of any collection of integers that are all congruent to 1 modulo 4 is also congruent to 1 modulo 4.] Proof. Suppose for contradiction that the result is not true. Let n be congruent to 3 modulo 4, but not divisible by any prime number congruent to 3 modulo 4. n is odd, so it is not divisible by. Therefore, all its prime factors are odd, so they must be congruent to 1 modulo 4. Their product is therefore also congruent to 1 modulo 4. This contradicts the fact that n was congruent to 3 modulo 4. Therefore, by contradiction, n must have a prime factor congruent to 3 modulo 4. (b) Prove that there are infinitely many prime numbers congruent to 3 modulo 4. Hint: This is similar to the proof that there are infinitely many primes. We start by supposing that there are only finitely many prime numbers congruent to 3 modulo 4, and let them be p 1, p,..., p k. Now we take their product: N = p 1 p p k. Now divide into two cases: N 1 (mod 4) and N 3 (mod 4). In either case, we can add something to N to get a number congruent to 3 modulo 4 that isn t divisible by any of the primes that are congruent to 3 modulo 4. This will contradict (a). 4 Are the following numbers rational or irrational? Give proofs: (a) 6 This is irrational. Proof. Suppose 6 is rational. Let p, Z such that p = 6, with 0. Now let p = p (p,) and = (p,), so that (p, ) = 1 and p = 6. Thus p = 6, so p is even. Therefore, p is even. Thus p = k for some integer k. Therefore, 4k = (k) = 6, so k = 3. Therefore, is even, so is even, and thus p and have common factor. This contradicts (p, ) = 1, so our initial assumption that 6 is rational must be false. Therefore, 6 is irrational. (b) + 3 [Hint: What is ( + 3 )?] This is irrational: 4

Proof. Suppose that + 3 is rational. Then ( + 3) = + 3 + 3 = 5 + 6 must also be rational. Now 5 + 6 5 = 6 is the difference of two rational numbers, and therefore rational, but it is not by (a), so by contradiction, + 3 must be irrational. 5 Show that the difference between a rational number and an irrational number is irrational. Proof. Let a be a rational number and let b be an irrational numbers. Let c = a b. We want to show that c is irrational. Suppose that c is rational. Then a c is the difference between two rational numbers, and therefore, rational. However, a c = b which is irrational. This is a contradiction, so our assumption that c is rational must be impossible. Therefore, c must be irrational. ( ) 6 Observe that = ( ) = =. Prove that there are two irrational numbers α and β such that α β is rational. Hint: This is a division into cases proof: Either is rational or it is irrational. From either of these cases, we can find α and β. This is an example of a non-constructive proof of an existential result. 7 (Bonus Question) Prove that if a positive integer n is not a suare, then n is irrational. Proof. Let the uniue prime factorisation of n be n = p e1 1 pe pe k k. Now if e 1, e,..., e k are all even, then n would be a suare. (If e i = f i for i = 1,..., k, then n is the suare of p f1 1 pf pf k k.) Thus, at least one of e 1, e,..., e k must be odd. Let e i be odd. Now suppose n is rational. Let n = p for p, Z with 0. Let p = p (p,) and = (p,). Then p = n, so p = n, so p i p. Therefore by uniue prime factorisation, p i p (see Sheet 4 Question 3). Therefore, since (p, ) = 1, p i does not divide. Now p ei i p, so we must have p ei+1 i p, since if the highest power of p i dividing p were less than p e i +1 i then it would be at most p ei 1 i, so the highest power of p i dividing p would be at most p ei 1 i, and we know that p ei i p. Therefore, p ei+1 i p, and so p ei+1 i p. Let p = p ei+1 i k, then we have p i k =, so p i, and thus, p i This contradicts the fact that (p, ) = 1, so our assumption that n was rational must be false. Therefore, if n is not a suare, then n is irrational. 8 Find 0 n < 310 satisfying: 5

n 7 (mod 11) (8) n 10 (mod 14) (9) n 11 (mod 15) (10) The easy way to do this is to notice that n = 4 satisfies these congruences, so the uniue solution with 0 n < 310 (11,14, and 15 are pairwise coprime) must be congruent to -4 modulo 310, so it must be 310 4 = 306. A more generally applicable way is the way used in the proof of the Chinese Remainder Theorem: Observe that 14 3 (mod 11) and 3 4 1 (mod 11), so 10 3 (4 14) 10 3 7 (mod 11), so n 4 (mod 11 14) is the uniue solution to the first two congruences. Now 4 150 (mod 154), so we need to solve the congruences n 150 (mod 154) (11) n 11 (mod 15) (1) Now 154 4 (mod 15), and 4 4 1 (mod 15), so 150 + 11 (4 154) 11 (mod 15), Also, 11 4 = 44 14 (mod 15), so n 150 + 14 154 = 306 (mod 310) is the uniue solution. 6