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

Similar documents
Part II. Number Theory. Year

Summary Slides for MATH 342 June 25, 2018

Elementary Number Theory Review. Franz Luef

Theory of Numbers Problems

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

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

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

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

Math 314 Course Notes: Brief description

198 VOLUME 46/47, NUMBER 3

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

PMA225 Practice Exam questions and solutions Victor P. Snaith

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.

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

CHAPTER 6. Prime Numbers. Definition and Fundamental Results

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

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

Basic elements of number theory

Basic elements of number theory

CPSC 467: Cryptography and Computer Security

Elementary Number Theory MARUCO. Summer, 2018

LECTURE 4: CHINESE REMAINDER THEOREM AND MULTIPLICATIVE FUNCTIONS

Number Theory and Algebra: A Brief Introduction

Lecture 4: Number theory

M381 Number Theory 2004 Page 1

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

Math 324, Fall 2011 Assignment 6 Solutions

MTH 346: The Chinese Remainder Theorem

CPSC 467b: Cryptography and Computer Security

Number Theory Proof Portfolio

YALE UNIVERSITY DEPARTMENT OF COMPUTER SCIENCE

3 The fundamentals: Algorithms, the integers, and matrices

Part IA. Numbers and Sets. Year

Math/Mthe 418/818. Review Questions

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

MATH 145 Algebra, Solutions to Assignment 4

Number Theory. Modular Arithmetic

PROBLEMS ON CONGRUENCES AND DIVISIBILITY

Mathematics for Cryptography

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

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

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

4 Number Theory and Cryptography

[Part 2] Asymmetric-Key Encipherment. Chapter 9. Mathematics of Cryptography. Objectives. Contents. Objectives

Number Theory. CSS322: Security and Cryptography. Sirindhorn International Institute of Technology Thammasat University CSS322. Number Theory.

Number Theory Solutions Packet

Homework 7 solutions M328K by Mark Lindberg/Marie-Amelie Lawn

Introduction to Public-Key Cryptosystems:

Elementary Properties of Cyclotomic Polynomials

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

ASSIGNMENT Use mathematical induction to show that the sum of the cubes of three consecutive non-negative integers is divisible by 9.

CPSC 467b: Cryptography and Computer Security

A SURVEY OF PRIMALITY TESTS

Name: There are 8 questions on 13 pages, including this cover.

Lecture 11 - Basic Number Theory.

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

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,

A Few Primality Testing Algorithms

Smol Results on the Möbius Function

LECTURE NOTES IN CRYPTOGRAPHY

4 Powers of an Element; Cyclic Groups

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

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

2 More on Congruences

Applied Cryptography and Computer Security CSE 664 Spring 2018

CMPUT 403: Number Theory

Number Theory. Zachary Friggstad. Programming Club Meeting

Chuck Garner, Ph.D. May 25, 2009 / Georgia ARML Practice

MATH 537 Class Notes

Introduction to Number Theory 1. c Eli Biham - December 13, Introduction to Number Theory 1

Congruences and Residue Class Rings

f(n) = f(p e 1 1 )...f(p e k k ).

CHAPTER 3. Congruences. Congruence: definitions and properties

Lecture Notes, Week 6

ICS141: Discrete Mathematics for Computer Science I

Introduction to Number Theory

CPSC 467b: Cryptography and Computer Security

Integers and Division

SOLUTIONS Math 345 Homework 6 10/11/2017. Exercise 23. (a) Solve the following congruences: (i) x (mod 12) Answer. We have

The Chinese Remainder Theorem

A Concise Course in Number Theory Alan Baker, Cambridge University Press, 1983

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

Chinese Remainder Theorem explained with rotations

Math 4400 First Midterm Examination September 21, 2012 ANSWER KEY. Please indicate your reasoning and show all work on this exam paper.

1 Overview and revision

A Guide to Arithmetic

MATH 4400 SOLUTIONS TO SOME EXERCISES. 1. Chapter 1

Number Theory and Group Theoryfor Public-Key Cryptography

NUMBER THEORY. Anwitaman DATTA SCSE, NTU Singapore CX4024. CRYPTOGRAPHY & NETWORK SECURITY 2018, Anwitaman DATTA

Some Own Problems In Number Theory

CSE 521: Design and Analysis of Algorithms I

Notes on Primitive Roots Dan Klain

Chapter 4 Finite Fields

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

MATH 25 CLASS 21 NOTES, NOV Contents. 2. Subgroups 2 3. Isomorphisms 4

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

Number Theory in Problem Solving. Konrad Pilch

Public-key Cryptography: Theory and Practice

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

7. Prime Numbers Part VI of PJE

Transcription:

Mathematics 4: Number Theory Problem Sheet 3 Workshop 26 Oct 2012 The aim of this workshop is to show that Carmichael numbers are squarefree and have at least 3 distinct prime factors (1) (Warm-up question) Show that n > 1 is prime iff a n 1 1 (mod n) for 1 a n 1 Recall that a positive integer is said to be squarefree if it is not divisible by the square of any prime number Recall too that a Carmichael number is a composite number n with the property that for every integer a coprime to n we have a n 1 1 (mod n) (2) Proving that Carmichael numbers are squarefree (a) Show that a given nonsquarefree number n can be written in the form n = p l N for some prime p and integers N and l with l 2 and gcd(p, N) = 1 (b) Show that (1 + pn) n 1 1 (mod p 2 ) (c) Deduce that Carmichael numbers are squarefree (3) Proving that Carmichael numbers have at least 3 distinct prime factors (a) Let p and q be distinct primes Prove that if gcd(a, pq) = 1 then a lcm(p 1,q 1) 1 (mod pq) (b) Now let g be a primitive root (mod p) and h be a primitive root (mod q) Using g and h, apply the Chinese Remainder Theorem to specify an integer a whose order (mod pq) is (exactly) lcm(p 1, q 1) (c) Now suppose that p is the larger of the primes p and q Calculate pq 1 (mod p 1) {0, 1,, p 2} Deduce that p 1 pq 1 (d) Use the above to show that there is an a with gcd(a, pq) = 1 and a pq 1 1 (mod pq) (e) Deduce from the above that a Carmichael number must have at least 3 distinct prime factors (4) (Cool-down question) Suppose that a, k, l, m, n N with a k 1 (mod m) and a l 1 (mod n) Prove that (a) a lcm(k,l) 1 (mod lcm(m, n)); (b) a gcd(k,l) 1 (mod gcd(m, n)) 1

2 Handin: due Friday, week 7, 2 Nov, before 1210 lecture Please hand it in at the lecture The squarefree part of n You are expected to write clearly and legibly, giving thought to the presentation of your answer as a document written in mathematical English (5) (a) Show that every positive integer n can be written uniquely in the form n = n 1 n 2 2, where n 1 is squarefree Let us denote n 1 by g(n), the squarefree part of n (b) Prove that g(n) is a multiplicative function (c) Find the Euler product for D g (s) (d) Prove that D g (s) = ζ(2s)ζ(s 1)/ζ(2s 2) Problems on congruences (6) Let m 1,,m n be pairwise relatively prime Show that as x runs through the integers x = 1, 2, 3,, m 1 m 2 m n, the n-tuples (x mod m 1, x mod m 2,,x mod m n ) run through all n-tuples in n i=1 {0, 1,, m i 1} (7) Show that the equation x y 2 (mod 19) has a solution in integers {x, y} iff x is congruent to a primitive root mod 19 Deduce that then y is uniquely specified mod 18 (8) Wilson s Theorem This states that, for a prime p, we have (p 1)! 1 (mod p) Prove Wilson s Theorem in (at least!) two different ways [Suggestions: (i) Factorize x p 1 1 over F p (ii) Try to pair up a {1,,p 1} with its multiplicative inverse] (9) (a) Find a primitive root for the prime 23 (b) How many such primitive roots are there? (c) Find them all (d) Find all the quadratic residues and all the quadratic non-residues mod 23 (10) Solve the equation x 6 = 7 in F 19, ie the equation x 6 7 (mod 19) for x {0, 1,, 18} (11) (a) Let an integer n > 1 be given, and let p be its smallest prime factor Show that there can be at most p 1 consecutive positive integers coprime to n (b) Show further that the number p 1 in (a) cannot be decreased, by exhibiting p 1 consecutive positive integers coprime n (c) What is gcd(p 1, n)? (d) Show that 2 n 1 (mod n)

Problems on arithmetic functions 3 (12) (a) Let a divisor d of n be given Among the integers k = 1, 2,, n show that ϕ(n/d) of them have gcd(k, n) = d (b) Deduce that d n ϕ(d) = n (c) Deduce that ϕ(n) = d n dµ(n/d) (13) (a) Prove that d n µ(d) = (n), the 1-detecting function (b) Let g be any function R 0 R, and put G(x) = n x g(x/n), the sum being taken over all positive integers n x Prove that if x 1 then g(x) = n x µ(n)g(x/n) (14) (a) For which integers n is τ(n) odd? Here τ(n) is the number of (positive) divisors of n (b) Prove that k n τ(k)3 = ( k n τ(k) ) 2 [Note that both sides of the equation are multiplicative functions of n] (15) (a) An arithmetic function f(n) is said to be strongly multiplicative if f(nm) = f(n)f(m) for all n, m N Show that a strongly multiplicative function is completely determined by its values at primes (b) Show that if f(n) is a strongly multiplicative function then the Euler product of its Dirichlet function D f (s) is of the form ( ) 1 p 1 f(p) p s (16) Strengthening Euler s Theorem Suppose that n factorizes as n = p f 1 1 p f k k Show that then, for gcd(a, n) = 1, a N = 1 (mod n), where N = lcm(p f 1 1 p f 1 1 1, p f 2 2 p f 2 1 2,,p f k k pf k 1 k ) For which n is this result no stronger than Euler s theorem a ϕ(n) = 1 (mod n)? (17) For two arithmetic functions A(n) and B(n) show that A(d)B(n/d) = A(n/d)B(d) d n d n (18) (a) Find the Euler product for D µ (s) = µ(n) n=1 n s (b) Prove that D µ (s) = ζ(s)/ζ(2s) (19) Let ω(n) denote the number of prime factors of n Show that the function e ω(n) is a multiplicative function (20) Let f be any arithmetic function (a) Show that n x k n f(k) = n x f(n) x n

4 (b) Now put F(x) = n x f(n) Deduce that n x f(n) x n = n x F ( x n) (21) (a) Prove that for x 1 we have n x µ(n) x n = 1 (b) (Harder) Deduce that for all x 1 we have n x µ(n) n 1 (22) The Dirichlet series D f (s) of a certain arithmetic function f(n) has Euler product ( p 1 1 + ) 1 p s p 2s (a) Show that f(n) 0 iff n is cube-free, and give a precise definition of this term (b) Find an explicit description of f(n) (c) Find the Euler product for D f (s) = n=1 (d) Prove that D f (2s) = D f (s)d f (s) f(n) n s Problems around primality testing (23) Fast exponentiation: Computing a r by the SX method Let a Z, r N Write r in binary as r = b k b k 1 b 1 b 0, with all b i {0, 1} From the binary string b k b k 1 b 1 b 0 produce a string of S s and X s by replacing each 0 by S and each 1 by SX Now, starting with A = 1 and working from left to right, interpret S as A A 2 (ie replace A by A 2 ), and X as A Aa (multiply A by a) Prove that the result of this algorithm is indeed a r [This algorithm is particularly useful for exponentiation (mod n), but it works for any associative multiplication on any set Note that the leading S does nothing, so can be omitted] (24) Compute 2 90 (mod 91) by the SX method What does this tell you about 91? [Maple: convert(n,binary);] (25) (a) Show that if n is not a pseudoprime to base bb where gcd(b, b ) = 1 then it is not a pseudoprime either to base b or to base b (b) Show that if n is not a pseudoprime to base b k where k > 1 then it is not a pseudoprime to base b [Thus it s always enough to use the pseudoprime test with prime bases] (c) Repeat (a) and (b) with pseudoprime replaced by strong pseudoprime

(26) Show that the Carmichael number 561 is not a strong pseudoprime to base 2, but that 2047 is Show, however, that 2047 is not a strong pseudoprime to base 3 [Useful Maple: with(numtheory);?phi,?mod] (27) (a) Prove that if 6k + 1, 12k + 1 and 18k + 1 are all prime, then their product is a Carmichael number [Use Q 16] (b) Show that the first few values of k for which (a) gives Carmichael numbers are k = 1, 6, 35, 45, What is the next such value of k? [This is the integer sequence A046025 via integer sequences, found eg, by Google] [Maple?isprime] 5 /home/chris/nth/wkp3 12tex