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

Similar documents
Fall 2017 Test II review problems

5: The Integers (An introduction to Number Theory)

Homework #2 solutions Due: June 15, 2012

Math 109 HW 9 Solutions

Math 3450 Homework Solutions

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

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.

The Euclidean Algorithm and Multiplicative Inverses

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

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

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

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

Homework 3, solutions

Intermediate Math Circles February 29, 2012 Linear Diophantine Equations I

4 Powers of an Element; Cyclic Groups

Lecture 7: Polynomial rings

Solutions to Practice Final 3

Chapter 5.1: Induction

Direct Proof Divisibility

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

A Division Algorithm Approach to p-adic Sylvester Expansions

Direct Proof Divisibility

Math 110 HW 3 solutions

Partial Fraction Decomposition Honors Precalculus Mr. Velazquez Rm. 254

The Euclidean Algorithm

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

Upper Bounds for Stern s Diatomic Sequence and Related Sequences

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

Intermediate Math Circles February 26, 2014 Diophantine Equations I

NOTES ON SIMPLE NUMBER THEORY

CS280, Spring 2004: Prelim Solutions

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

Number Theory Proof Portfolio

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

Chapter 5: The Integers

Cool Results on Primes

Ch 4.2 Divisibility Properties

Simplifying Rational Expressions and Functions

g(x) = 1 1 x = 1 + x + x2 + x 3 + is not a polynomial, since it doesn t have finite degree. g(x) is an example of a power series.

MCS 115 Exam 2 Solutions Apr 26, 2018

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

The first property listed above is an incredibly useful tool in divisibility problems. We ll prove that it holds below.

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

Math 192r, Problem Set #3: Solutions

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

Exploring Lucas s Theorem. Abstract: Lucas s Theorem is used to express the remainder of the binomial coefficient of any two

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

Questionnaire for CSET Mathematics subset 1

LINEAR CONGRUENCES AND LINEAR DIOPHANTINE EQUATIONS

Elementary Algebra Chinese Remainder Theorem Euclidean Algorithm

2301 Assignment 1 Due Friday 19th March, 2 pm

Egyptian Fractions: Part II

Exam 2 Review Chapters 4-5

Lecture Notes. Advanced Discrete Structures COT S

MATH10040 Chapter 1: Integers and divisibility

Egyptian Fractions: Part II

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

MATH FINAL EXAM REVIEW HINTS

Divisibility in the Fibonacci Numbers. Stefan Erickson Colorado College January 27, 2006

A Diophantine System and a Problem on Cubic Fields

Lecture Notes Math 371: Algebra (Fall 2006) by Nathanael Leedom Ackerman

Elementary Properties of the Integers

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

Math 430 Exam 1, Fall 2006

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

Hermite normal form: Computation and applications

2. THE EUCLIDEAN ALGORITHM More ring essentials

Vector Spaces. EXAMPLE: Let R n be the set of all n 1 matrices. x 1 x 2. x n

Prime Factorization and GCF. In my own words

Math Theory of Number Homework 1

Identifying an m-ary Partition Identity through an m-ary Tree

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

Writing Assignment 2 Student Sample Questions

MATH10040: Numbers and Functions Homework 1: Solutions

Deepening Mathematics Instruction for Secondary Teachers: Algebraic Structures

#G03 INTEGERS 10 (2010), MIN, A COMBINATORIAL GAME HAVING A CONNECTION WITH PRIME NUMBERS

1Number ONLINE PAGE PROOFS. systems: real and complex. 1.1 Kick off with CAS

SOME GENERAL RESULTS AND OPEN QUESTIONS ON PALINTIPLE NUMBERS

1. Algebra 1.5. Polynomial Rings

Chapter 2. Divisibility. 2.1 Common Divisors

Fibonacci Numbers. Justin Stevens. Lecture 5. Justin Stevens Fibonacci Numbers (Lecture 5) 1 / 10

CS250: Discrete Math for Computer Science

1 Overview and revision

Data Dependences and Parallelization. Stanford University CS243 Winter 2006 Wei Li 1

Polynomial Degree and Finite Differences

Lecture 4 February 5

Lecture 7.4: Divisibility and factorization

Math Circles - Lesson 2 Linear Diophantine Equations cont.

Notes on Systems of Linear Congruences

In Exercises 1 12, list the all of the elements of the given set. 2. The set of all positive integers whose square roots are less than or equal to 3

(a) 14 and 42 (b) 33 and 18 (c) 45 and 108 (d) 24 and 2039, given that 2039 is a prime number

Number theory (Chapter 4)

Lecture 6 January 15, 2014

NOTES ON INTEGERS. 1. Integers

Applied Cryptography and Computer Security CSE 664 Spring 2017

Basic Algorithms in Number Theory

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

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.

McGill University Faculty of Science. Solutions to Practice Final Examination Math 240 Discrete Structures 1. Time: 3 hours Marked out of 60

Chapter 3 Basic Number Theory

Transcription:

Math 7 Spring 06 PROBLEM SET SOLUTIONS. (a) ( pts) Use the Euclidean algorithm to find gcd(87, 0). Solution. The Euclidean algorithm is performed as follows: 87 = 0 + 78, 0 = 78 +, 78 = 6. Hence we have gcd(87, 0) =. () (0 pts) Find all the integer solutions of 87x + 0y = 0. Solution. Since 0 = 8 is divisile y = gcd(87, 0), the equation 87x + 0y = 0 has integer solutions. We can rewrite the first two equations in part (a) as 78 = 87 0 and = 0 78. Sustituiting the former to the latter yields = 0 (87 0 ) = 0 6 87. Then 0 = 8 = (0 6 87 ) 8 = 0 8 87 0, so x = 0, y = 8 is a solution. From 87 solutions y = 99 and 0 x = 0 t, y = 8 + 99t where t Z. =, we can parametrize all the integer

Math 7 Spring 06. (a) ( pts) Give a definition of the greatest common divisor of three integers a,, c. Solution. The greatest common divisor of a,, c is the largest integer d such that d a, d, d c. () ( pts) Prove that gcd(a,, c) = gcd(gcd(a, ), c) for any integers a,, c. Solution. Let g = gcd(a, ), g = gcd(g, c) and g = gcd(a,, c). We want to show g = g. Note that g, as the greatest common divisor of g and c, divides g = gcd(a, ), which divides oth a and. Therefore g also divides oth a and. On the other hand, g divides c as the greatest common divisor of g and c. Hence g is indeed a common divisor of a,, c, and we have g gcd(a,, c) = g. Now we note that g = gcd(a,, c) divides a,, c. Since g = gcd(a, ), there exist integers x, y such that ax + y = g. As g divides oth a and, it must divide ax + y = g. Then g is a common divisor of g and c, implying that g g = gcd(g, c). Thus we have oth g g and g g, therey concluding that g = g as desired. Remark. You can also prove this using prime factorizations of a,, c. (c) ( pts) Use the Euclidean algorithm to find the greatest common divisor of 08, 88, 07. Solution. By part (), we have gcd(08, 88, 07) = gcd(gcd(08, 88), 07). We first find gcd(08, 88) y the Euclidean algorithm as follows: 88 = 08 + 68, 08 = 68 6. Here we find gcd(08, 88) = 68. Then we perform the Euclidean algorithm to find gcd(68, 07): 07 = 68 +, 68 = + 7, = 7. The algorithm gives us gcd(68, 07) = 7. (d) (0 pts) Do there exist integers x, y, z such that 08x + 88y + 07z =? (Hint: You don t have to solve the equation.) Solution. By part (), we know that 7 divides 08, 88 and 07. Therefore 7 must divide 08x + 88y + 07z if x, y, z are integers. However, = 7 7 + is not divisile y 7. Hence there do not exist integers x, y, z satisfying 08x + 88y + 07z =.

Math 7 Spring 06. (0 pts) Find all the integer solutions of 6x + y + 0z = 8. Solution. Since gcd(6, ) =, we can write 6x + y = q where q is an integer. Now the equation ecomes q + 0z = 8. We easily find that ( ) + 0 =, and multiplying oth sides y 8 yields ( ) + 0 8 = 8. Then we can solve the equation q + 0z = 8 in integers y q = 0t, z = 8 + t where t Z. () Next we solve the equation 6x + y = q. Since 6 ( ) + =, multiplying oth sides y q gives 6 6 ( q) + q = q. Since gcd(6, ) = and =, we parametrize all the integer solutions y gcd(6, ) x = q s, y = q + s where s Z. () Now sustituiting () to () yields x = 8 + 0t s, y = 0t + s, z = 8 + t where t, s Z.. ( pts) Determine the numer of positive integer solutions of x + y = 00. Solution. Let us first solve the equation x + y = 00 in integers. From ( ) + = we otain ( 00) + 00 = 00. Since gcd(, ) =, the integer solutions are given y x = 00 t, y = 00 + t where t Z. Now x > 0 if and only if 00 t > 0, or equivalently t < 00. Similarly, y > 0 if and only if 00 + t > 0, or equivalently t > 0. Hence x and y are positive integers if and only if 0 < t < 00. This gives 9 possile values for t, namely 0, 0,, 9. Hence the numer of positive integer solutions is 9.. Recall that the Fionacci sequence (F n ) n is defined y the recurrence relation F n+ = F n+ + F n for n with initial values F =, F =. (a) (0 pts) Find gcd(f n+, F n ). Solution. For n =, we directly compute gcd(f n+, F n ) = gcd(f, F ) =. Let us now assume that n. From the recurrence relation we find F n+ = F n+ + F n = (F n + F n ) + F n = F n + F n.

Math 7 Spring 06 Hence we have gcd(f n+, F n ) = gcd(f n, F n ), where the latter was seen to e in class. Therefore we conclude that gcd(f n+, F n ) = for all n. () (0 pts) Show that gcd(f n+, F n ) = gcd(f n, ) for n. Solution. For n =, direct computation gives gcd(f n+, F n ) = gcd(f, F ) = and gcd(f n, ) = gcd(f, ) =. Now for n, the recurrence relation yields F n+ = F n+ + F n+ = (F n+ + F n ) + F n = F n+ + F n = (F n + F n ) + F n = F n + F n. This implies that gcd(f n+, F n ) = gcd(f n, F n ). We also otain gcd(f n, F n ) = gcd(f n, ) using the fact gcd(f n, F n ) = from lecture. Comining these two identities gives the desired identity gcd(f n+, F n ) = gcd(f n, ). (c) ( pts) Use () to prove that F m is an even numer for m. Solution. We prove y induction on m. For m =, we directly find that F m = F = F + F = is an even numer. For the inductive step, we assume that F m is an even numer. We want to prove that F (m+) is also an even numer. Since F m is an even numer, we have gcd(f m, ) =. Then () yields gcd(f (m+), F m ) = gcd(f m, ) =. Hence we see that F (m+) is divisile y, completing the inductive step. Extra Credit Prolem. The Calkin-Wilf tree is a tree otained y starting with the fraction = and a + elow each fraction a as children. and iteratively adding a a +

Math 7 Spring 06 =. Prove the following properties of the Calkin-Wilf tree: (a) (0 pts) Every fraction in this tree is in reduced form, i.e., its denominator and numerator are relatively prime. Solution. From the identity a + = a + we deduce that gcd(a +, a) = gcd(a, ). Similarly, we deduce that gcd(a +, ) = gcd(a, ) from the identity a + = + a. Hence if a is in reduced a form, its children a + and a + are also in reduced form. Since the tree is generated from a single fraction = in the tree must e in reduced form. which is in reduced form, every fraction () (0 pts) Every positive rational numer appears exactly once in this tree. Solution. Let r e an aritrary positive rational numer. We define a sequence r, r, as follows: () r = r. () If r i < with reduced form p q, we set r i+ = p q p. () If r i > with reduced form p q, we set r i+ = p q. q () If r i =, we terminate the sequence. Note that the sum of denominator and numerator is strictly decreasing in this sequence, implying that the sequence must terminate after finite steps. On the other hand, it is evident from the aove rules that the last term must e. Hence we have a sequence of the form r = r, r,, r k, r k =. Tracing this sequence ackwards gives a genealogy for r in the tree, as each r i is a child of r i+ y the aove rules. This proves that r appears in this tree.

Math 7 Spring 06 Now we suppose for contradiction that r appears more than once in the tree. Then r has two different genealogies corresponding to different locations. However, these genealogies must oey the rules ()-() aove. Since the rules uniquely determine the sequence, these genealogies must e the same, yielding a contradiction. Hence we conclude that r appears exactly once in the tree.