MTH 3527 Number Theory Quiz 10 (Some problems that might be on the quiz and some solutions.) 1. Euler φ-function. Desribe all integers n such that:

Similar documents
Solutions to Exam 1. Problem 1. a) State Fermat s Little Theorem and Euler s Theorem. b) Let m, n be relatively prime positive integers.

Exam 1 7 = = 49 2 ( ) = = 7 ( ) =

MATH 324 Elementary Number Theory Solutions to Practice Problems for Final Examination Monday August 8, 2005

Is 1 a Square Modulo p? Is 2?

Quadratic Residues. Legendre symbols provide a computational tool for determining whether a quadratic congruence has a solution. = a (p 1)/2 (mod p).

Foundations of Cryptography

Math 124 Homework 5 Solutions

b) Find all positive integers smaller than 200 which leave remainder 1, 3, 4 upon division by 3, 5, 7 respectively.

To be able to determine the quadratic character of an arbitrary number mod p (p an odd prime), we. The first (and most delicate) case concerns 2

Introduction to Number Theory 2. c Eli Biham - November 5, Introduction to Number Theory 2 (12)

UNIVERSITY OF MANITOBA DATE: December 7, FINAL EXAMINATION TITLE PAGE TIME: 3 hours EXAMINER: M. Davidson

SOLUTIONS TO PROBLEM SET 5. Section 9.1

MT 430 Intro to Number Theory MIDTERM 2 PRACTICE

6. Find an inverse of a modulo m for each of these pairs of relatively prime integers using the method

Collection of rules, techniques and theorems for solving polynomial congruences 11 April 2012 at 22:02

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

Discrete Square Root. Çetin Kaya Koç Winter / 11

Applications of Fermat s Little Theorem and Congruences

Solutions for the Practice Final

x 8 (mod 15) x 8 3 (mod 5) eli 2 2y 6 (mod 10) y 3 (mod 5) 6x 9 (mod 11) y 3 (mod 11) So y = 3z + 3u + 3w (mod 990) z = (990/9) (990/9) 1

The Chinese Remainder Theorem

The Chinese Remainder Theorem

LECTURE 9: QUADRATIC RESIDUES AND THE LAW OF QUADRATIC RECIPROCITY

On the Fibonacci Sequence. By: Syrous Marivani LSUA. Mathematics Department. Alexandria, LA 71302

MATH 118 PROBLEM SET 6

Assignment 2. Due: Monday Oct. 15, :59pm

Math 127: Equivalence Relations

NUMBER THEORY AMIN WITNO

Degree project NUMBER OF PERIODIC POINTS OF CONGRUENTIAL MONOMIAL DYNAMICAL SYSTEMS

University of British Columbia. Math 312, Midterm, 6th of June 2017

Primitive Roots. Chapter Orders and Primitive Roots

Carmen s Core Concepts (Math 135)

MA/CSSE 473 Day 9. The algorithm (modified) N 1

ON THE EQUATION a x x (mod b) Jam Germain

Number Theory. Konkreetne Matemaatika

MAT Modular arithmetic and number theory. Modular arithmetic

Calculators will not be permitted on the exam. The numbers on the exam will be suitable for calculating by hand.

Number Theory/Cryptography (part 1 of CSC 282)

SOLUTIONS FOR PROBLEM SET 4

p 1 MAX(a,b) + MIN(a,b) = a+b n m means that m is a an integer multiple of n. Greatest Common Divisor: We say that n divides m.

Math 412: Number Theory Lecture 6: congruence system and

SIZE OF THE SET OF RESIDUES OF INTEGER POWERS OF FIXED EXPONENT

Cryptography CS 555. Topic 20: Other Public Key Encryption Schemes. CS555 Topic 20 1

THE NUMBER OF PERMUTATIONS WHICH FORM ARITHMETIC PROGRESSIONS MODULO m

LECTURE 3: CONGRUENCES. 1. Basic properties of congruences We begin by introducing some definitions and elementary properties.

Data security (Cryptography) exercise book

DUBLIN CITY UNIVERSITY

1.6 Congruence Modulo m

CHAPTER 2. Modular Arithmetic

Conjectures and Results on Super Congruences

A REMARK ON A PAPER OF LUCA AND WALSH 1. Zhao-Jun Li Department of Mathematics, Anhui Normal University, Wuhu, China. Min Tang 2.

PT. Primarity Tests Given an natural number n, we want to determine if n is a prime number.

Practice Midterm 2 Solutions

L29&30 - RSA Cryptography

Modular Arithmetic. claserken. July 2016

Two congruences involving 4-cores

Wilson s Theorem and Fermat s Theorem

LECTURE 7: POLYNOMIAL CONGRUENCES TO PRIME POWER MODULI

Math 319 Problem Set #7 Solution 18 April 2002

Discrete Math Class 4 ( )

Mathematics Explorers Club Fall 2012 Number Theory and Cryptography

Outline Introduction Big Problems that Brun s Sieve Attacks Conclusions. Brun s Sieve. Joe Fields. November 8, 2007

Diffie-Hellman key-exchange protocol

Problem Set 6 Solutions Math 158, Fall 2016

6.2 Modular Arithmetic

Solutions for the Practice Questions

#A3 INTEGERS 17 (2017) A NEW CONSTRAINT ON PERFECT CUBOIDS. Thomas A. Plick

The congruence relation has many similarities to equality. The following theorem says that congruence, like equality, is an equivalence relation.

30 HWASIN PARK, JOONGSOO PARK AND DAEYEOUL KIM Lemma 1.1. Let =2 k q +1, k 2 Z +. Then the set of rimitive roots modulo is the set of quadratic non-re

Implementation / Programming: Random Number Generation

Introduction to Modular Arithmetic

Q(173)Q(177)Q(188)Q(193)Q(203)

Number Theory - Divisibility Number Theory - Congruences. Number Theory. June 23, Number Theory

EE 418: Network Security and Cryptography

Introduction. and Z r1 Z rn. This lecture aims to provide techniques. CRT during the decription process in RSA is explained.

Fermat s little theorem. RSA.

CMPSCI 250: Introduction to Computation. Lecture #14: The Chinese Remainder Theorem David Mix Barrington 4 October 2013

PRIMES IN SHIFTED SUMS OF LUCAS SEQUENCES. Lenny Jones Department of Mathematics, Shippensburg University, Shippensburg, Pennsylvania

MODULAR ARITHMETIC II: CONGRUENCES AND DIVISION

Congruence properties of the binary partition function

Public-Key Cryptosystem Based on Composite Degree Residuosity Classes. Paillier Cryptosystem. Harmeet Singh

Zhanjiang , People s Republic of China

Rational Points On Elliptic Curves - Solutions. (i) Throughout, we ve been looking at elliptic curves in the general form. y 2 = x 3 + Ax + B

Example: Modulo 11: Since Z p is cyclic, there is a generator. Let g be a generator of Z p.

Goldbach conjecture (1742, june, the 7 th )

Public Key Encryption

ON SPLITTING UP PILES OF STONES

Computational Complexity of Generalized Push Fight

Algorithmic Number Theory and Cryptography (CS 303)

ELEMENTS OF NUMBER THEORY & CONGRUENCES. Lagrange, Legendre and Gauss. Mth Mathematicst

Massachusetts Institute of Technology 6.042J/18.062J, Spring 04: Mathematics for Computer Science April 16 Prof. Albert R. Meyer and Dr.

Caltech Harvey Mudd Mathematics Competition February 20, 2010

An elementary study of Goldbach Conjecture

A4M33PAL, ZS , FEL ČVUT

Public-key Cryptography: Theory and Practice

An interesting class of problems of a computational nature ask for the standard residue of a power of a number, e.g.,

Ramanujan-type Congruences for Overpartitions Modulo 5. Nankai University, Tianjin , P. R. China

Math 255 Spring 2017 Solving x 2 a (mod n)

and problem sheet 7

Goldbach Conjecture (7 th june 1742)

Transcription:

MTH 7 Number Theory Quiz 10 (Some roblems that might be on the quiz and some solutions.) 1. Euler φ-function. Desribe all integers n such that: (a) φ(n) = Solution: n = 4,, 6 since φ( ) = ( 1) =, φ() = 1 =, φ(6) = φ()φ() = 1 = (b) φ(n) = 4 Solution: n = 8, 1,, 10 since φ( ) = () = 4, φ( ) = = 4, φ() = = 4, φ( ) = 1 ( 1) = 4. (c) φ(n) = 8 Solution: n = 16, 4, 0, 1, 0 (d) φ(n) = 16 Solution: n = 17, 4, 60, 40, 48,, which is the same as: n = 17, 17,,, 4,, (e) φ(n) = (f) φ(n) =. Solution: No such n exists by (m,n,o) arts of this roblem. (g) φ(n) = 9. Solution: No such n exists by (m,n,o) arts of this roblem. (h) φ(n) = 6 Solution: n = 7, 7, 9, 9 (i) φ(n) =. Solution: No such n exists by (m,n,o) arts of this roblem. (j) φ(n) = 10 Solution: n =, (k) φ(n) = 0 Solution: n =,,,, (l) φ(n) = 40 Solution: n = 41, 8,, 0, 1, 88, 7, 10, 100 n = 41, 41,,,,,,, (m) Prove that φ() is even integer for all odd rimes. Solution: If is rime, then φ() = 1. If is odd, then 1 is even. Hence φ() is even. (n) Prove that φ( k ) is even integer for all odd rimes. Solution: If is rime, then φ( k ) = k ( 1). So, if is odd, then 1 is even, hence φ( k ) is even. 1

(o) Prove that φ(n) is even integer for all n >. Solution: If a, b are relatively rime integers we have φ(ab) = φ(a) φ(b). Case 1. There is an odd rime q, such that q k aears in the rime factorization of n. Then (q 1) φ(q k ) φ(n). Hence φ(n) is even. Case. n = k. From the assumtion n >, we have that k. So k = φ( k ) () Prove that the only integers n, such that φ(n) = 0 are n = 1, 6. (q) Prove that there are no integers n such that φ(n) = 0.. Roots of olynomials (mod ): Theorem: Let be a rime. If n is a ositive integer, such that n (), then x n 0 (mod) has exactly n solutions with 0 x <. (a) Show that x 1 0(mod 1) has non-congruent roots. Solution: Since 0, we may aly the above theorem. So there are solutions with 0 x < 0. Since all integers {0, 1,..., 0} are non-congruent modulo 1, these solutions are non-congruent roots modulo 1. (b) Show that x 1 0(mod ) does not have non-congruent roots. It has only one root. Solution: 0 0(mod ), 1 1(mod ), (mod ), (mod ), 4 4(mod ). Therefore x = 1 is the only root for x 1 0(mod ) with 0 x < 4. (c) Show that x + x + 1 has roots (mod 1). Solution: x 1 0(mod 1) has non-congruent roots, since 0. x 1 0(mod 1) has 1 (non-congruent) root since 1 0. x 1 = (x 1)(x + x + 1) 0(mod 1) has non-congruent roots, x 1 has one root, imlies that (x + x + 1) 0(mod 1) has roots. (d) Show that x + x + 1 0(mod ) does not have any roots. Solution: 0 + 0 + 1 1(mod ), 1 + 1 + 1 (mod ), + + 1 (mod ), + + 1 (mod ), 4 + 4 + 1 1(mod ). Therefore no x is a root for x + x + 1 0(mod ). (e) Show that x 1 has non-congruent roots (mod 1). (f) Show that x 1 has non-congruent roots (mod ). (g) Show that x 1 has non-congruent roots (mod 101). (h) Show that x 0 1 has 0 non-congruent roots (mod 101). Solution: Since 0 (101 1), we may aly the above theorem and get 0 non-congruent solutions. (i) Show that x 4 + x + x + x + 1 has 4 roots (mod 1). Solution: x 1 0(mod 1) has non-congruent roots, since 0. x 1 0(mod 1) has 1 (non-congruent) root since 1 0. x 1 = (x 1)(x 4 + x + x + x + 1) 0(mod 1) has non-congruent roots, x 1 has one root, imlies that (x 4 + x + x + x + 1) 0(mod 1) has 4 roots.

(j) Show that x 4 + x + x + x + 1 has 4 roots (mod ). (k) Show that x 4 + x + x + x + 1 has 4 roots (mod 101). (l) Show that x 10 1 has 10 roots (mod ). (m) Show that x + 1 has roots (mod ). Solution: x 10 1 0(mod ) has 10 non-congruent roots, since 10 ( 1). x 1 0(mod ) has (non-congruent) roots since 10. x 10 1 = (x 1)(x + 1) 0(mod ) has 10 non-congruent roots, x 1 has roots, imlies that (x + 1) 0(mod ) has roots. (n) Show that x 8 + x 6 + x 4 + x + 1 has 8 roots (mod ). Solution: Use the following factorization, and arguments similar to the revious roblems. x 10 1 = (x ) 1 = (x 1)((x ) 4 + (x ) + (x ) + x + 1) 0(mod ). Most of you did not state the Rabin-Miller test correctly. So here are some roblems to clarify how the test works (or doesn t). (a) State Rabin-Miller test. (b) Use a = as a Rabin-Miller witness that 1 is comosite. (c) Use a = as a Rabin-Miller witness that 1 is comosite. (d) Use a = 4 as a Rabin-Miller witness that 1 is comosite. (e) Use a = as a Rabin-Miller witness that 7 is comosite. (f) Use a = as a Rabin-Miller witness that 7 is comosite. (g) Use a = as a Rabin-Miller witness that 81 is comosite. (h) Can you use a = as a Rabin-Miller witness that 0 is comosite? Exlain. (i) Can you use a = as a Rabin-Miller witness that 0 is comosite? Exlain. (j) Use a = in Rabin-Miller test to check if 7 is comosite. (k) Use a = in Rabin-Miller test to check if 7 is comosite. (l) What haens if you use a = in Rabin-Miller test to check if 101 is comosite? (m) What haens if you use a = in Rabin-Miller test to check if 101 is comosite? a 4. Legendre symbol:. Find the following: (a) Solution: = since = when the rime (mod 4).

(b) = Solution: = 1 since = 1 when the rime 1(mod 4). 1 1 (c) = Solution: = 1 since = 1 when the rime 1, 7(mod 8). 17 17 (d) = Solution: = since = when the rime, (mod 8) 1 1 (e) 101 (f) = Solution: = = ()() = 1, since the rime (mod 4) and (mod 8) (g) (h) (i) (j) (k) (l) = Solution: 1.. 6 = 1 9 = 10 = 10 00 = 10 1 = since (mod 4) and 1 (mod 4). 1 1 1 = since 1 1(mod ). 1 = 1 since 1 is quadratic residue (mod), which is true since 1 1 (mod). 4

. For each of the following congruences determine if it has a solution: (a) x (mod 987). (987 is rime.) Solution: The congruence x (mod 987) has a solution iff is a square modulo 987 (which is rime) iff is quadratic residue modulo 987 iff = 1 iff 987 987 1(mod4). Since 987 (mod4) it follows that is not a square modulo rime 987 and therefore there is no solution to x (mod 987). (b) x (mod 987). (987 is rime.) (c) x (mod 987). (987 is rime.) (d) x (mod 987). (987 is rime.) (e) x 10(mod 987). (987 is rime.) 6. For each of the following integers determine if it is a quadratic residue modulo, i.e. QR : (a) (mod 887). (887 is rime.) (b) (mod 887). (887 is rime.) (c) (mod 16). (16 is rime.) (d) (mod 167). (167 is rime.) (e) 10(mod 8). (8 is rime.) Solution: 10 is QR 8 iff the Legendre symbol is =1. 10 8 Comute = = () = () = () = 8 8 8 () = ()() = 1. Therefore 10 is QR 8.