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

Similar documents
Math 109 HW 9 Solutions

Solutions to Problem Set 3 - Fall 2008 Due Tuesday, Sep. 30 at 1:00

Part II. Number Theory. Year

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,

Congruent Number Problem and Elliptic curves

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

2.3 In modular arithmetic, all arithmetic operations are performed modulo some integer.

Fall 2017 Test II review problems

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

Theory of Numbers Problems

Mathematics 4: Number Theory Problem Sheet 3. Workshop 26 Oct 2012

Elliptic curves: Theory and Applications. Day 3: Counting points.

Summary Slides for MATH 342 June 25, 2018

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

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

Computations/Applications

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

Math 324, Fall 2011 Assignment 7 Solutions. 1 (ab) γ = a γ b γ mod n.

A Few Primality Testing Algorithms

Notes on Systems of Linear Congruences

Lecture notes: Algorithms for integers, polynomials (Thorsten Theobald)

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?

Math 314 Course Notes: Brief description

CHAPTER 6. Prime Numbers. Definition and Fundamental Results

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

Chapter 9 Mathematics of Cryptography Part III: Primes and Related Congruence Equations

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

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

Exam 2 Solutions. In class questions

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

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

Elementary Properties of the Integers

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

Factoring Algorithms Pollard s p 1 Method. This method discovers a prime factor p of an integer n whenever p 1 has only small prime factors.

Number Theory Homework.

MATH 145 Algebra, Solutions to Assignment 4

Lecture 11 - Basic Number Theory.

LECTURE 4: CHINESE REMAINDER THEOREM AND MULTIPLICATIVE FUNCTIONS

3.2 Solving linear congruences. v3

(3,1) Methods of Proof

MATH 361: NUMBER THEORY FOURTH LECTURE

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

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

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

Number Theory Solutions Packet

Grade 11/12 Math Circles Rational Points on an Elliptic Curves Dr. Carmen Bruni November 11, Lest We Forget

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

Basic elements of number theory

Basic elements of number theory

p = This is small enough that its primality is easily verified by trial division. A candidate prime above 1000 p of the form p U + 1 is

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

1. multiplication is commutative and associative;

A Guide to Arithmetic

4 Number Theory and Cryptography

MATH 537 Class Notes

3 The fundamentals: Algorithms, the integers, and matrices

The Euclidean Algorithm and Multiplicative Inverses

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.

Primes in arithmetic progressions

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

ALGEBRA. 1. Some elementary number theory 1.1. Primes and divisibility. We denote the collection of integers

Math 118: Advanced Number Theory. Samit Dasgupta and Gary Kirby

Homework 10 M 373K by Mark Lindberg (mal4549)

Shor s Prime Factorization Algorithm

Chapter 3 Basic Number Theory

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

x 3 2x = (x 2) (x 2 2x + 1) + (x 2) x 2 2x + 1 = (x 4) (x + 2) + 9 (x + 2) = ( 1 9 x ) (9) + 0

Number Theory. Final Exam from Spring 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?

The Chinese Remainder Theorem

Lecture 2. The Euclidean Algorithm and Numbers in Other Bases

The primitive root theorem

D-MATH Algebra II FS18 Prof. Marc Burger. Solution 26. Cyclotomic extensions.

A Readable Introduction to Real Mathematics

Corollary 4.2 (Pepin s Test, 1877). Let F k = 2 2k + 1, the kth Fermat number, where k 1. Then F k is prime iff 3 F k 1

Smol Results on the Möbius Function

Math 110 HW 3 solutions

22. The Quadratic Sieve and Elliptic Curves. 22.a The Quadratic Sieve

Solutions to Assignment 1

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

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.

MTH 310, Section 001 Abstract Algebra I and Number Theory. Sample Midterm 1

ICS141: Discrete Mathematics for Computer Science I

M381 Number Theory 2004 Page 1

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?

1 Overview and revision

198 VOLUME 46/47, NUMBER 3

Lecture 5: Arithmetic Modulo m, Primes and Greatest Common Divisors Lecturer: Lale Özkahya

Number theory (Chapter 4)

Commutative Rings and Fields

MATH 152 Problem set 6 solutions

Number Theory Proof Portfolio

PREPARATION NOTES FOR NUMBER THEORY PRACTICE WED. OCT. 3,2012

Elementary Number Theory MARUCO. Summer, 2018

PMA225 Practice Exam questions and solutions Victor P. Snaith

Homework #2 solutions Due: June 15, 2012

Integer factorization, part 1: the Q sieve. D. J. Bernstein

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.

QUADRATIC RINGS PETE L. CLARK

Chapter 5. Number Theory. 5.1 Base b representations

Transcription:

Solutions to 8.78 Problem Set 4 - Fall 008 Due Tuesday, Oct. 7 at :00. (a Prove that for any arithmetic functions f, f(d = f ( n d. To show the relation, we only have to show this equality of sets: {d N } = { n d N }. So we have the following string of equivalences. x {d N } y N s.t. xy = n y N s.t. y n and n y = x x { n d N }. (b Prove that if g is another arithmetic function, then ( n f(d g = ( n f d d g(d. Here we can manipulate the index in the summation to show that the two sums are equal. Note that this method can also be used above. ( n f(dg = f(dg(e = f(eg(d = ( n f g(d. d d de=n de=n. The Riemann Zeta function is one of the most important functions in number theory (and the subject of a million dollar research prize!. It is defined for complex arguments s as ζ(s := n n s = p prime p s, although the above formulas only converge for R(s >. (a Prove that the sum and product formulas for ζ(s are actually equal. For this problem I will ignore some of the tricky convergence issues to give a more intuitive explanation. We start by rewriting the index of the sum using the fundamental theorem of arithmetic! ζ(s = n n s = n=p r p r p r k k (p r pr pr k k s = r i N {0} r i 0 (p r. i i s i

Note that the requirement that a sequence of nonnegative integers converge to zero is the same as assuming that only finitely many are nonzero. This shows that the last sum is in fact the same as the middle one. So now we do a massive distribution of this sum of products. r i N {0} r i 0 (p r = i i i s (p r = i r 0 i s i r 0 (p s i r. and now we recognize the geometric series and compute it; = i (p s i = p prime p s. (b Prove that the inverse of the zeta function can be written as ζ(s = n µ(n n s. We compute the product of ζ(s with this summation. ζ(s n µ(n n s = n = r mn=r n s n ( m s µ(n n s = r µ(n n s = m n ( r s µ(n. mn=r ( m s µ(n n s Now we notice that the interior sum is just the sum of µ(n over the divisors of r. This is shown in the book to equal zero unless r =, in which case it is one. So we have that ζ(s µ(n n s = s + s 0 + 3 s 0 + =. n So we have shown that the product of the sum with ζ(s is identically one, which means that the sum must be ζ(s. 3. (Niven..7 Show that 6! 63! (mod 7. Note that we have that 70! (mod 7 from Wilson s Theorem. information to the problem at hand, 63!(64(65(66(67(68(69(70 = 70! (mod 7. We calculate this product mod 7: Relating this (64(65(66(67(68(69(70 ( 7( 6( 5( 4( 3( ( 5040. This immediately gives that 63! 70! (mod 7. Now, the same trick can be used to finish the problem. From the work above, we know 6!(6(63 6!( 9( 8 6!(7 6! (mod 7.

4. (Niven..5 Prove that (p! p (mod P, where P = + + + p. Hint: Use the Chinese Remainder Theorem and Wilson s Theorem. We know the proof of the summation formula for P : P = + + + p = (p p = p We can assume p is odd by computing the case for p =, which holds because! =. Next we compute (p! modulo the two factors. Since p (p!, it is clear that (p! 0 (mod p. We also have (p! (mod p by Wilson s Theorem. Now, note p 0 (mod p, p (mod p. Since p prime implies ( p, p =, we may apply Chinese Remainder Theorem to claim that because (p! and p are equivalent modulo the two relatively prime factors of P, they are congruent mod P. 5. The harmonic sums are defined as H n := m n (m,n= and we write H n = An B n as fractions. For example, H p = + + + p for any prime p, and H = + 5 + 7 + = 55 385. It is a fact that if n >, H n is never an integer, and thus B n. (a Prove that p A p for any prime p. Hint: Pair the terms i and p i. We want to show that p A p for prime p. Since we are assuming the fraction representation is in lowest terms, this means that p A p and p B p. So first we note that if we collect all of the terms together by taking the common denominator of (p!, we have that p (p!. Now we see what the hint gives us. For any i p, i + (p i + i p = = p i i(p i i(p i (i (i + (... (p i (p i + (... (p p =. (p! That last fraction is just to show that when we combine all of these pairs together over the common denominator (p!, each term has a factor of p in the numerator. So the entire sum will have a factor of p in the numerator, and since there is no such factor in the denominator, it will not get canceled when reducing the fraction. m, p.

(b Prove that n A n for all n. Here we can use the exact same trick as above. The key difference is our common denominator should be chosen to be C n = m. m n (m,n= Then this denominator has the necessary quality that it is coprime to n, so just as above, we know that the factor of n we get in the numerator will not be canceled when reducing the fraction. (Bonus Prove that p A p for any prime p 5. (Bonus Find and prove a formula for A n mod n for all n. 6. (Niven.4.4 Show that the Carmichael number 56 is composite by showing that it is not a strong probable prime for base. For the strong probable prime test, we write 56 as the product 4 35. So we need to calculate 35 (mod 56. We can calculate this by successive squaring and reduction: n n (mod 56 0 4 6 3 56 4 460 5 03 So 35 = 3 3 03 8 63 (mod 56. Now, if we successively square and reduce this number, we get 70 66 40 67 80 So we have found that 80 (mod 56. Now, that alone not enough to show that 56 is Carmichael, but we not that in the line before we got the, we found that 40 67. So this shows that we have found a square root of (mod 56 that is not or. Thus 56 cannot be prime. 7. Recall that a composite integer n is a Carmichael number if it is a probable prime for all bases, so a n a (mod n for all a. (a Suppose that n is squarefree. Prove that n is a Carmichael number if and only if (p (n for every prime divisor p n. Hint: Use the Chinese Remainder Theorem on the congruence a n a (mod n. We are given that n is squarefree, so we can write its prime factorization: n = p p... p l. Then n is a Carmichael number if and only if a Z, a n a (mod n.

Using CRT, we have that this is true if and only if, for each i l, a Z, a n a (mod p i. Since this equation is trivial for a 0, we can assume we can divide by a, and so it is equivalent to a Z such that p a, a n (mod p i. But we know that every unit mod p has order dividing p, and in fact, there is some element with order p. So choosing a as this number implies that (p i (n for each i. So we have shown the equivalence. (b Prove that every Carmichael number is squarefree. Hint: If n has a square factor, you just need to find one a such that a n a (mod n. So now consider some prime divisor of n with p n. Then for a = n p Z, a = n p = n n p 0 a (mod n. So n is not a Carmichael number. 8. (Niven.4.5 Show that 047 is a strong probable prime for. We use the same method in problem 6: 046 = 03, so now we calculate 03 by successive squaring. Since 04 is the tenth power of two, I ll just find 04 and divide by. n n (mod 047 0 4 6 3 56 4 3 5 04 6 5 7 8 8 8 9 64 0 So 03 = 0 (mod 047, so 047 is a strong probable prime for the base. However, it should be noted that if we didn t take this absolutely algorithmic approach, we could ve seen that 047 =, so. Thus every power of caluclated above could ve been reduced mod, to make the calculations easier. 9. (Niven.4.0 &.4. (a Suppose that n is a pseudoprime for the base a, but is not a strong pseudoprime. Show that there is then some k such that a k m ± (mod n but a k

(mod n. Prove that at least one of (n, m+ and (n, m is a nontrivial divisor of n. When the strong pseudoprime test fails and the pseudoprime test succeeds, we know we are exactly in the case where a n n i (mod n, but a i+ ± (mod n. This means that, letting k = n i+, ak m ± (mod n, but a k. Therefore m for some m ± (mod n. Then we have n (m = n (m + (m, but n (m + and n (m. If (n, m + =, then n (m + (m = n (m, which is a contradiction. If (n, m + = n, then n (m +, also a contradiction. Therefore (n, m + is a nontrivial divisor of n. (b Show that 34 is a pseudoprime for the base, but is not a strong pseudoprime. In particular, 85 m ± (mod 34, but 70 (mod 34. Find a nontrivial divisor of 34. So we have that 340 = 85, so we find 85 (mod 34. n n (mod 34 0 4 6 3 56 4 64 5 4 6 6 Now, 85 = 64 6 4 6 64 6 3 (mod 34. But 70 3 = 04 (mod 34. So we have m = 3. This gives us the possible prime divisors 3, 3,, and a quick division shows 34 = 3. 0. (Niven.4.4abd Use the Pollard rho method to find a proper divisor of (a 83, Starting with 3, and using the polynomial f(x = x +, we get the series: 3, 0, 0, 07, 4005, 5694,... Now, checking the gcd s of the differences of terms s and s, we have: (83,0-3=, (83,07-0=, but (83,5694-0=47. So we get 83 = 47 73. (b 793, Here let s start with using the polynomial f(x = x, just to change things up. We get:, 3, 8, 63, 3968, 6066, 905, 3985, 6746, 85,... Now checking gcd s: (793,3-=, (793,63-3=, (793,6066-8=, (793,3985-63=, but (793,85-3968=4. Thus 793 = 4 93.

(c 609. This one is done exactly as the previous; using f(x = x + and beginning with, we find that (x 0 x 0, 609 = 83.. (Niven.5. Suppose that b a 67 (mod 9, with (a, 9 =. Find k such that b k a (mod 9. If b = 53, what is a mod 9? First, calculate φ(9 = 7. Next, use the Euclidean algorithm to find that 7 7 9 67 =. Reducing mod 7 implies that 9 67equiv43 67 (mod 7, so k = 43. Using successive squaring then gives a 53 43 53 (mod 9. (Bonus Define the composite factorials as (this is nonstandard notation n := m n m. (m,n= So p = (p!, and for example, 5 = 4 7 8 3 5 (mod 5. (a Prove that if n = pq with p, q prime, then n (mod n. (b Determine a general formula for n mod n.