MATH 310: Homework 7

Similar documents
MATH 4400 SOLUTIONS TO SOME EXERCISES. 1. Chapter 1

Math 109 HW 9 Solutions

Homework 10 M 373K by Mark Lindberg (mal4549)

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

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

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

MATH 3240Q Introduction to Number Theory Homework 7

7.2 Applications of Euler s and Fermat s Theorem.

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

Solutions to Practice Final

CHAPTER 6. Prime Numbers. Definition and Fundamental Results

Number Theory Proof Portfolio

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

Part II. Number Theory. Year

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

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

Math 319 Problem Set #2 Solution 14 February 2002

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

Homework #2 solutions Due: June 15, 2012

CHAPTER 3. Congruences. Congruence: definitions and properties

Number Theory Homework.

Theory of Numbers Problems

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 CSE20 Homework 5 Due Monday November 4

Euler s, Fermat s and Wilson s Theorems

Practice Final Solutions

Winter Camp 2009 Number Theory Tips and Tricks

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

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

PMA225 Practice Exam questions and solutions Victor P. Snaith

M381 Number Theory 2004 Page 1

Elementary Number Theory Review. Franz Luef

A Guide to Arithmetic

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?

3.2 Solving linear congruences. v3

Basic elements of number theory

Basic elements of number theory

CSE 20 DISCRETE MATH. Winter

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

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

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?

Fermat s Little Theorem. Fermat s little theorem is a statement about primes that nearly characterizes them.

YALE UNIVERSITY DEPARTMENT OF COMPUTER SCIENCE

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

Chapter 5. Modular arithmetic. 5.1 The modular ring

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

IRREDUCIBILITY TESTS IN F p [T ]

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

10.1 Radical Expressions and Functions Math 51 Professor Busken

Discrete Mathematics with Applications MATH236

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

MATH 145 Algebra, Solutions to Assignment 4

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

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

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

7. Prime Numbers Part VI of PJE

Number Theory. Final Exam from Spring Solutions

Math 314 Course Notes: Brief description

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

Practice Final Solutions

CS 6260 Some number theory

MATH 3240Q Introduction to Number Theory Homework 4

Mathematics for Cryptography

Working with Square Roots. Return to Table of Contents

Applied Cryptography and Computer Security CSE 664 Spring 2018

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,

Solving the general quadratic congruence. y 2 Δ (mod p),

Selected Chapters from Number Theory and Algebra

Quasi-reducible Polynomials

Introduction to Number Theory

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

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 361: NUMBER THEORY FOURTH LECTURE

A Readable Introduction to Real Mathematics

HOMEWORK 11 MATH 4753

Math 3320 Problem Set 10 Solutions 1

ECE596C: Handout #11

Exam 2 Solutions. In class questions

that if a b (mod m) and c d (mod m), then ac bd (mod m) soyou aren't allowed to use this fact!) A5. (a) Show that a perfect square must leave a remain

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

Notes on Systems of Linear Congruences

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

Chapter 5. Number Theory. 5.1 Base b representations

How To Test If a Polynomial Is Identically Zero?

LEGENDRE S THEOREM, LEGRANGE S DESCENT

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

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

CSE 20 DISCRETE MATH. Fall

On the number of semi-primitive roots modulo n

1. multiplication is commutative and associative;

Mathematics 228(Q1), Assignment 3 Solutions

2301 Assignment 1 Due Friday 19th March, 2 pm

8 Primes and Modular Arithmetic

Math 223, Spring 2009 Final Exam Solutions

Number Theory and Algebra: A Brief Introduction

MATH 3240Q Introduction to Number Theory Homework 5

CS280, Spring 2004: Prelim Solutions

The Chinese Remainder Theorem

4 PRIMITIVE ROOTS Order and Primitive Roots The Index Existence of primitive roots for prime modulus...

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.

Transcription:

1 MATH 310: Homework 7 Due Thursday, 12/1 in class Reading: Davenport III.1, III.2, III.3, III.4, III.5 1. Show that x is a root of unity modulo m if and only if (x, m 1. (Hint: Use Euler s theorem and #4 of HW5 To say that x is a root of unity means x n 1 for some n > 0. Hence, x n 1 + km for some k, which implies (x n, m 1. Using #4 of HW5, we conclude (x, m 1. Conversely, if (x, m 1 then by Euler s Theorem x φ(m 1 (mod m so that x is a root of unity. 2. Find all primitive roots mod 11. Using #1 and #2 of HW8 with p 11: 2 5 1 implies 2 is primitive; 3 5 (3 2 (3 3 ( 2( 6 1 implies 3 is not; 4 5 (2 5 2 1 implies 4 is not; 5 5 (5 2 (5 3 (3(4 1 implies 5 is not; 6 5 (2 5 (3 5 1 implies 6 is primitive; 7 5 ( 4 5 1 implies 7 is primitive; 8 5 ( 3 5 1 implies 8 is primitive; 9 5 ( 2 5 1 implies 9 is not; 10 2 1 implies 10 is not. Total # should be φ(φ(11 4: 2,6,7,8 3. Find all primitive roots mod 27. There are φ(φ(27 φ(18 6 of these. Using the results from the section More Bonus Stuff of HW8 solutions, we only need to check that g 9 1 and g 3 1. Using this, we see that 2 is a primitive root since 2 3 8 and 2 9 1. We can skip checking any g such that 3 g, since g 3 0 (mod 27. We also know that 4 cannot be primitive, since it is a square. We see that 5 is a primitive since 5 3 10 and 5 9 1. Next, 7 3 8 and 7 9 1 shows that 7 is not primitive. However, this calculation shows that 7 20 must therefore be primitive. Note also we can see from this calculation that ±8 8, 19 cannot be primitive (because they are cubes. Similarly, ±10 10, 17 cannot be primitive.

2 Similarly, we find 11 is primitive because 11 3 8 and 11 9 1, while 13 is not because 13 3 10 and 13 9 1, but that means 13 14 is primitive. Only one possibility remains, namely 23 4, which is now easily seen to be primitive. Hence, the 6 primitive roots to the modulus 27 are: 2, 5, 11, 14, 20, 23. 4. Find a primitive root to the modulus 73. (Hint: 10 and 2 are solutions to x 8 1 and x 9 1 (mod 73, respectively. Note that φ(73 72 8 9. Recall that the order of the product of two numbers to any modulus is the product of their orders provided they are relatively prime. (This was used in the proof of the multiplicative property of the Euler φ-function. Hence, it is enough to show that 10 has order 8 and 2 has order 9. To show that 10 has order 8, it is enough to verify that 10 4 1 (mod 73. Indeed, 10 2 100 27 so that 10 4 729 1 1. Similarly, to see that 2 has order 9, we check that 2 3 1 (mod 73, which is clear. 5. Show that if g is a primitive root to the modulus p 2, then it is also a primitive root to the modulus p. Is the converse true? Let g be a primitive root to the modulus p 2. This is equivalent to saying g r 1 (mod p 2 for any 0 < r < φ(p 2 p(p 1. Proceeding by contradiction, suppose g is not a primitive root to the modulo p. That means there exists 0 < h < p 1 such that g h 1 (mod p. Hence, g h 1 + kp for some integer k. Raising both sides to the power p, we obtain g ph (1 + kp p 1 + p 2 (k +... 1 (mod p 2. But this is a contradiction, since 0 < ph < φ(p 2. The converse holds for p 3 because 2 is the only primitive root to the modulus 3 and it happens to be primitive to modulus 9 since it has φ(9 6 distinct powers: 2, 4, 8, 7, 5, 1 The converse also holds for p 5 because the two primitive roots to the modulus 5 are ±2 which happen to be primitive to modulus 25 since each has φ(25 20 distinct powers: ±2, 4, ±8, 9, ±7, 11, ±3, 6, ±12, 1, 2, 4, 8, 9,..., 1.

Alternatively, we can use More Bonus Stuff in HW8 solutions and simply check that (±2 5 (±7 so that (±2 10 (±7 2 1, which implies both are primitive to the modulus 25. When p 7, we get a counterexample to the converse using either primitive root g 3 or 5 to the modulus 7, neither of which is primitive to modulus 49 since 3 3 22, 3 4 17, 3 7 18 so that 3 21 396 4 1 (mod 49 and 5 3 27, 5 4 12, 5 7 (54( 6 30 19 so that 5 ( 21 (9(8 1 (mod 49. 6. Find all sets of two decimal digits which can occur as the last two digits of a perfect square. Let n be a square. The problem asks for the possible values of n (mod 100. In other words, we are asked to find all squares to the modulus 100. Since n is a square to the modulus 100, it is also a square to the modulus 4. Hence, n (mod 4 0, 1. Similarly, n (mod 5 0, 1, 4. From this, it follows according to the 3 possibilities that n (mod 25 0 or 1, 6, 11, 16, 21 or 4, 9, 14, 19, 24. By Chinese Remainder Theorem, n (mod 100 0, 25 or o6, e1 or e4, e9 (where e and o stand for any even or odd digit, respectively giving a total of 22 squares to the modulus 100. ( ( ( 26 19 33 7. Calculate the Legendre symbols, and. ( 26 73 ( ( 33 3 73 73 73 73 73 ( ( ( ( ( 1 2 13 73 8 73 73 73 13 13 ( ( ( ( 2 19 73 16 4 1 73 19 19 19 ( ( ( ( 11 73 7 11 73 11 11 7 ( 2 13 1 3 ( 4 1 7 8. Determine which of the following congruences are soluble: (a x 2 125 (mod 1016 Since 1016 2 3 127, the congruence has a solution if and only if it has a solution to the modulus 8 as well as to the modulus 127. Since ( ( ( ( 125 2 1 2 ( 1(+1 1 127 127 127 127

4 it follows that 125 is not a square to the modulus 127 (in other words, not a quadratic residue. Hence, (a is insoluble. (b x 2 129 (mod 1016 Since 129 1 (mod 8, 129 is a square to the modulus 8. That is, there exists a residue a to the modulus 8 such that a 2 129. (It s obvious that a ±1, but the purpose ( of introducing ( the a will become clear 129 2 shortly. Similarly, since 1, 129 is also a square 127 127 to the modulus 127. Let b be a residue to the modulus 127 such that b 2 129 (mod 127. (Here, it is not as obvious how to determine b, but doing that is not the point. By the Chinese Remainder Theorem, there is a residue c to the modulus 1016 such that c a (mod 8 and c b (mod 127. (The fact that c is uniquely determined is irrelevant for this problem. Moreover, c 2 129 (mod m holds for m 8 and m 127. Since (8, 127 1, it follows that (b is soluble. (c x 2 41 (mod This is insoluble since ( ( ( 41 3 41 41 ( ( 1 3 41 41 ( 41 3 ( 2 1 3 (d 41x 2 43 (mod Method 1. First, observe that the quadratic character of a residue, i.e. whether or not it is a square, is the same as that of its multiplicative inverse. In other words, if xy 1 (mod p then x is a square to the modulus p if and only if y is a square to the modulus p. The quickest way to see this is to use the fact ( xy p ( x p ( y p to conclude that the RHS of this identity is one. Alternatively, one can argue that the sum of the indices of x and y (relative to any primitive root of unity vanishes so that one is even if and only if the other is. 1 Second, determine the quadratic character of 43 by the calculation ( ( ( ( ( ( 43 1 7 43 1 1 43 43 43 7 7 1 The latter approach uses the existence of primitive roots of unity, which we also used to establish the homomorphism property of the Legendre symbol.

5 or more quickly via ( 43 ( 36 ( 1 1. Now, let k be the solution to 41k 1 (mod. (In other words, let k be the inverse of 41 in the group (Z/Z. Note that the fact that k is exists (and is uniquely determined is a consequence of the fact that gcd(41, 1. Then (d is soluble if and only if x 2 43k (mod is soluble, which it is because by the previous calculation and the fact that (c is insoluble, we have ( 43k so that (d is soluble. ( 43 ( k ( 1( 1 1 Method 2. First, multiply (d by 2 to get an equivalent congruence 3x 2 7 (mod, then multiply by -26 to get x 2 182 (mod, then calculate ( ( ( ( ( ( 182 55 5 11 4 2 1. 5 11 (e 43x 2 47 (mod Follow Method 1 and compute ( ( 47 32 to conclude that (e is soluble. ( 1 ( 2 ( 1(+1 1 Or, follow Method 2 and first multiply by 2 to get 7x 2 15 (mod, then multiply by 11 to get 2x 2 7 (mod, then multiply by 39 to get x 2 273 (mod, then compute ( 273 ( 36 1 (f x 2 151 (mod 840 Since 8 divides 840 and x 2 1 (mod 8 is insoluble, (f is insoluble.

6 9. (BONUS Show that a primitive root of unity modulo a prime p cannot be a quadratic residue modulo p. Let g be a primitive root of unity modulo p. For any x 0 (mod p, x is a quadratic residue modulo p if and only if its index relative to g is even. Since g has index one relative to itself, it is not a quadratic residue.