Math 109 HW 9 Solutions

Similar documents
3.2 Solving linear congruences. v3

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

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

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

Homework #2 solutions Due: June 15, 2012

Solutions to Assignment 1

Chapter 3 Basic Number Theory

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 = ,

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

CSE 20 DISCRETE MATH. Winter

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

Math 110 HW 3 solutions

MATH 310: Homework 7

CHAPTER 3. Congruences. Congruence: definitions and properties

Solutions to Practice Final

Solutions to Problem Set 4 - Fall 2008 Due Tuesday, Oct. 7 at 1:00

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

Wilson s Theorem and Fermat s Little Theorem

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

Mathematics 228(Q1), Assignment 3 Solutions

A field F is a set of numbers that includes the two numbers 0 and 1 and satisfies the properties:

MATH 361: NUMBER THEORY FOURTH LECTURE

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

Part V. Chapter 19. Congruence of integers

Notes on Systems of Linear Congruences

Number Theory Math 420 Silverman Exam #1 February 27, 2018

Lecture Notes. Advanced Discrete Structures COT S

Lecture 2. The Euclidean Algorithm and Numbers in Other Bases

Elementary Properties of the Integers

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

CSE 20 DISCRETE MATH. Fall

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

MATH10040: Numbers and Functions Homework 1: Solutions

Ch 4.2 Divisibility Properties

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

Number Theory. Final Exam from Spring Solutions

MATH 145 Algebra, Solutions to Assignment 4

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

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,

MATH 271 Summer 2016 Practice problem solutions Week 1

Solutions Quiz 9 Nov. 8, Prove: If a, b, m are integers such that 2a + 3b 12m + 1, then a 3m + 1 or b 2m + 1.

NOTES ON SIMPLE NUMBER THEORY

ax b mod m. has a solution if and only if d b. In this case, there is one solution, call it x 0, to the equation and there are d solutions x m d

Chapter 5. Number Theory. 5.1 Base b representations

MATH 4400 SOLUTIONS TO SOME EXERCISES. 1. Chapter 1

Fall 2017 Test II review problems

D-MATH Algebra I HS18 Prof. Rahul Pandharipande. Solution 1. Arithmetic, Zorn s Lemma.

Discrete Mathematics and Probability Theory Fall 2018 Alistair Sinclair and Yun Song Note 6

44.(ii) In this case we have that (12, 38) = 2 which does not divide 5 and so there are no solutions.

Math Theory of Number Homework 1

Number Theory Solutions Packet

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

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?

Elementary Number Theory. Franz Luef

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

7.2 Applications of Euler s and Fermat s Theorem.

Proof by Contradiction

Number Theory Homework.

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

A Readable Introduction to Real Mathematics

Congruence of Integers

There are seven questions, of varying point-value. Each question is worth the indicated number of points.

MATH 2200 Final Review

CHAPTER 6. Prime Numbers. Definition and Fundamental Results

Some Review Problems for Exam 1: Solutions

2301 Assignment 1 Due Friday 19th March, 2 pm

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?

Integers and Division

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

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

Solutions to Section 2.1 Homework Problems S. F. Ellermeyer

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

M381 Number Theory 2004 Page 1

Objective Type Questions

Math 430 Midterm II Review Packet Spring 2018 SOLUTIONS TO PRACTICE PROBLEMS

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

Tomáš Madaras Congruence classes

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.

Solution Set 2. Problem 1. [a] + [b] = [a + b] = [b + a] = [b] + [a] ([a] + [b]) + [c] = [a + b] + [c] = [a + b + c] = [a] + [b + c] = [a] + ([b + c])

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

1. multiplication is commutative and associative;

Beautiful Mathematics

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

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

Definitions. Notations. Injective, Surjective and Bijective. Divides. Cartesian Product. Relations. Equivalence Relations

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

Exercise Sheet 3 - Solutions

3 The fundamentals: Algorithms, the integers, and matrices

Math 312/ AMS 351 (Fall 17) Sample Questions for Final

4 Powers of an Element; Cyclic Groups

HOMEWORK 4 SOLUTIONS TO SELECTED PROBLEMS

4.4 Solving Congruences using Inverses

NORTHWESTERN UNIVERSITY Thrusday, Oct 6th, 2011 ANSWERS FALL 2011 NU PUTNAM SELECTION TEST

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?

Intermediate Math Circles February 29, 2012 Linear Diophantine Equations I

Chapter 2. Divisibility. 2.1 Common Divisors

(3,1) Methods of Proof

LARGE PRIME NUMBERS (32, 42; 4) (32, 24; 2) (32, 20; 1) ( 105, 20; 0).

Name: Mathematics 1C03

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

Transcription:

Math 109 HW 9 Solutions Problems IV 18. Solve the linear diophantine equation 6m + 10n + 15p = 1 Solution: Let y = 10n + 15p. Since (10, 15) is 5, we must have that y = 5x for some integer x, and (as we shall see) we can find a solution in n and p for any x. Thus, we start by solving 6m + 5x = 1 by our usual technique. In this case we can use the readily apparent particular solution m 0 = 1, x = 1, and since 6 and 5 are already coprime we conclude that the general solution will be m = 1 5q 1, x = 1 + 6q 1 for q 1 Z. Next, we must solve the equation which is the same as solving 10n + 15p = 5x 2n + 3p = x Again, we can find a solution without much effort: n 0 = x, p 0 = x will do. We already have divided by the gcd, so it is no surprise that 2 and 3 are coprime, and the general solution is n = x + 3q 2, p = x 2q 2 (with q 2 Z, of course). Substituting our solution for x from the previous paragraph, we get that the desired solutions to the original equation have the general form m = 1 5q 1, n = 1 6q 1 + 3q 2, p = 1 + 6q 1 2q 2 19. Prove that if there are no non-zero integer solutions to the equation x n +y n = z n then there are no non-zero rational solutions. [Prove the contrapositive: show how a rational solution lead to an integer solutions] 1

Solution: Following the hint, it s enough the prove the contrapositive. So suppose x, y, and z are a nonzero rational solution to x n +y n = z n. Since they are rational numbers, we can let x = x 1 x 2, y = y 1 y 2, and z = z 1 z 2, where the x i, y i, and z i are integers with x 2, y 2, z 2 0. This means that and clearing denominators, we get that ( x 1 x 2 ) 2 + ( y 1 y 2 ) 2 = ( z 1 z 2 ) 2 In other words, x 2 1y 2 2z 2 2 + y 2 1x 2 2z 2 2 = z 2 1x 2 2y 2 2 (x 1 y 2 z 2 ) 2 + (y 1 x 2 z 2 ) 2 = (z 1 x 2 y 2 ) 2 so we have a nonzero (since we are multiplying the numerators one of which is nonzero by the nonzero denominators) integer solution. Problems V 1. Prove, for positive integers n, that 7 divides 6 n + 1 if and only if n is odd. Solution: 6 is congruent to -1 modulo 7, so 6 n + 1 ( 1) n + 1 (mod 7) which is 1+1 = 2 if n is even and 1+1 = 0 if n is odd. By the definition of congruence, this proves our result. 2. Prove that, for all integers a and b, a 2 + b 2 0, 1, 2, 4 or 5 modulo 8. Deduce that there do not exist integers a and b such that a 2 + b 2 = 12345790. Solution: We can check that the squares modulo 8 are 0, 1, and 4. Thus (since 4+4 0 as well) the possiblities are a 2 + b 2 0 + 0 = 0 0 + 1 = 1 1 + 1 = 2 0 + 4 = 4 1 + 4 = 5 12345790 is 6 mod 8, so it cannot have this form. 4. Suppose that a positive integer is written in decimal notation as n = a k a k 1 a 2 a 1 a 0 where 0 a i 9. Prove that n is divisible by 11 if and only if the alternating sum of its digits a 0 a 1 + + ( 1) k a k is divisible by 11. Page 2

Solution: By assumption, we can write n = k a i 10 i. Being divisible by 11 is the same as being 0 mod 11, so we reduce this equation mod 10. But 10 1 (mod 11), which yields k n a i ( 1) i (mod 11) i=0 This shows that the left hand side is 0 mod 11 if and only if the right hand side is, which is what we want. 6. Prove that the diophantine equation 3x 2 + 4y 2 = 5z 2 has no non-trivial (ie, (x, y, z) (0, 0, 0)) solutions. [Give a proof by contradiction. Obtain a contradiction by proving that if there is a non-trivial solution then there is a solution (x 1, y 1, z 1 ) with x 1 0 mod 5 or y 1 0 mod 5.] Deduce that the equation 3x 2 + 4y 2 = 5 has no rational solutions. Solution: If (x, y, z) is a nontrivial solution, we claim that one of x or y must be nonzero, as if they both are, then z = 0 as well. Now if 5 divides both x and y, we subsitute x = 5k, y = 5l (k, l Z) to get Dividing by 5, we have i=0 3 25k 2 + 4 25l 2 = 5z 2 3 5k 2 + 4 5l 2 = z 2 The terms on the left hand side are both divisible by 5, so z 2, and hence z by an earlier homework problem, must be as well. This means that we can replace (x, y, z) with ( x, y, z ) and still have a solution to the original equation. Repeating the process enough 5 5 5 times to get rid of all the powers of 5 (which is possible, since one of them is nonzero) we can assume that one of x or y is not divisible by 5. So assume without loss of generality that x 0 (mod 5). If we reduce the original equation mod 5, we see that or 3x 2 y 2 0 (mod 5) 3x 2 y 2 (mod 5) If x 0 (mod 5), then x and 5 must be coprime (since 5 is a prime number), which means that there exists a, b Z such that ax+5b = 1. This means that ax 1 (mod 5); ie, x has an inverse mod 5. Multiplying both sides of the congruence by a 2 then yields 3 (ay) 2 (mod 5) so 3 is a square mod 5. If instead y 0 (mod 5), then we can use the same trick (multiplying the equation by 3 s inverse mod 5, 2) to get that 2 is a square mod 5. Both cases provide a contradiction, so there can be no nontrivial solution to 3x 2 + 4y 2 = 5z 2. Page 3

Now if 3x 2 + 4y 2 = 5 has a rational solution, then clearing denominators as in problem 19 shows that 3x 2 + 4y 2 = 5z 2 has a nontrivial integer solution, which we have just shown to be impossible. Therefore there are no solutions to this equation. 7. What is the last digit of 2 1000? Solution: The last digit of 2 1000 is the same as the remainder of 2 1000 mod 10. First of all, 2 1000 (2 4 ) 250 16 250 6 250 (mod 10) But 6 6 6 (mod 10) as well, and therefore (by induction, if you like) so is any positive power of 6. Thus the last digit is 6. 9. Solve the following linear congruences: (ii) 3x 16 mod 18 Solution: (3, 18) = 3 does not divide 16, so there are no solutions. 10. Solve the following linear congruences: (i) 23x 16 mod 107 Solution: Luckily, we can see easily that 23 5 8 (mod 107), so x 10 is certainly a solution. But 23 and 107 are coprime, so this must be the unique solution mod 5 (for example, because if x is any other solution, we can multiply 23x 23 10 by an inverse of 23 mod 107 to get that x 10 mod 107). (ii) 234x 20 mod 366 Solution: All of these numbers at least share a common factor of two, so it is equivalent to solve 117x 10 (mod 183). But 117 and 183 are both divisible by 3, so there are no solutions as 10 is not divisible by 3. (iii) 234x 6 mod 366 Solution: Using the calculations in the previous problem, we can see that it s equivalent to solve 39x 1 (mod 61). As usual, we can do this with the Euclidean algorithm, which tells us 61 = 39 + 22 39 = 22 + 17 22 = 17 + 5 17 = 3 5 + 2 5 = 2 2 + 1 Page 4

Working backwards from this, we find that 16 61 25 39 = 1, so x 25 (mod 61), or x 36 (mod 61). To find the solutions mod 366, we just add every possible multiple of 61 to 36 up to 5 61 (since adding 366 = 6 61 does not change the value mod 366). These are then x 36, 97, 158, 219, 280, or 341 (mod 366). (iv) 234x 36 mod 366 Solution: One solution mod 61 can be found from the previous problem, which says we can take x 36 6 33 (mod 61). Since 61 and 39 are coprime, this is the only solution mod 61. As before, this means that x 33, 94, 155, 216, 277, or 338 (mod 366). Page 5