The structure of finite rings. The multiplicative residues. Modular exponentiation. and finite exponentiation

Similar documents
Solutions to Math 347 Practice Problems for the final

Trial division, Pollard s p 1, Pollard s ρ, and Fermat s method. Christopher Koch 1. April 8, 2014

Fourier Analysis, Stein and Shakarchi Chapter 8 Dirichlet s Theorem

PERIODS OF FIBONACCI SEQUENCES MODULO m. 1. Preliminaries Definition 1. A generalized Fibonacci sequence is an infinite complex sequence (g n ) n Z

The multiplicative structure of finite field and a construction of LRC

Chapter 0. Review of set theory. 0.1 Sets

Primality Test. Rong-Jaye Chen

11. FINITE FIELDS. Example 1: The following tables define addition and multiplication for a field of order 4.

Basic Sets. Functions. MTH299 - Examples. Example 1. Let S = {1, {2, 3}, 4}. Indicate whether each statement is true or false. (a) S = 4. (e) 2 S.

1 Summary: Binary and Logic

3.2.4 Integer and Number Theoretical Functions

Math 4400/6400 Homework #7 solutions

CSE 1400 Applied Discrete Mathematics Number Theory and Proofs

SOLVED EXAMPLES

3 Gauss map and continued fractions

Modern Algebra. Previous year Questions from 2017 to Ramanasri

Appendix: The Laplace Transform

Math 609/597: Cryptography 1

The Structure of Z p when p is Prime

MATH 304: MIDTERM EXAM SOLUTIONS

Finite-length Discrete Transforms. Chapter 5, Sections

Dirichlet s Theorem on Arithmetic Progressions

In number theory we will generally be working with integers, though occasionally fractions and irrationals will come into play.

The 4-Nicol Numbers Having Five Different Prime Divisors

(A sequence also can be thought of as the list of function values attained for a function f :ℵ X, where f (n) = x n for n 1.) x 1 x N +k x N +4 x 3

62. Power series Definition 16. (Power series) Given a sequence {c n }, the series. c n x n = c 0 + c 1 x + c 2 x 2 + c 3 x 3 +

Numbers. Çetin Kaya Koç Winter / 18

Quantum Computing Lecture 7. Quantum Factoring

Exercises 1 Sets and functions

, then cv V. Differential Equations Elements of Lineaer Algebra Name: Consider the differential equation. and y2 cos( kx)

Beurling Integers: Part 2

An Introduction to Randomized Algorithms

Continued Fractions and Pell s Equation

The Boolean Ring of Intervals

Cardinality Homework Solutions

YALE UNIVERSITY DEPARTMENT OF COMPUTER SCIENCE

6 Integers Modulo n. integer k can be written as k = qn + r, with q,r, 0 r b. So any integer.

Square-Congruence Modulo n

[ 47 ] then T ( m ) is true for all n a. 2. The greatest integer function : [ ] is defined by selling [ x]

It is always the case that unions, intersections, complements, and set differences are preserved by the inverse image of a function.

PROBLEMS ON ABSTRACT ALGEBRA

Chapter 2. Periodic points of toral. automorphisms. 2.1 General introduction

International Baccalaureate LECTURE NOTES MATHEMATICS HL FURTHER MATHEMATICS HL Christos Nikolaidis TOPIC NUMBER THEORY

Math 2784 (or 2794W) University of Connecticut

Enumerative & Asymptotic Combinatorics

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

Chimica Inorganica 3

2D DSP Basics: 2D Systems

Here are some examples of algebras: F α = A(G). Also, if A, B A(G) then A, B F α. F α = A(G). In other words, A(G)

Infinite Sequences and Series

Measure and Measurable Functions

Unit 6: Sequences and Series

i is the prime factorization of n as a product of powers of distinct primes, then: i=1 pm i

Notations. Primary definition. Specific values. Traditional name. Traditional notation. Mathematica StandardForm notation. Specialized values

Frequency Response of FIR Filters

Fermat s Little Theorem. mod 13 = 0, = }{{} mod 13 = 0. = a a a }{{} mod 13 = a 12 mod 13 = 1, mod 13 = a 13 mod 13 = a.

2.4 - Sequences and Series

Math Solutions to homework 6

Some p-adic congruences for p q -Catalan numbers

MATH 205 HOMEWORK #2 OFFICIAL SOLUTION. (f + g)(x) = f(x) + g(x) = f( x) g( x) = (f + g)( x)

(for homogeneous primes P ) defining global complex algebraic geometry. Definition: (a) A subset V CP n is algebraic if there is a homogeneous

and each factor on the right is clearly greater than 1. which is a contradiction, so n must be prime.

PROBLEM SET 5 SOLUTIONS 126 = , 37 = , 15 = , 7 = 7 1.

x x x Using a second Taylor polynomial with remainder, find the best constant C so that for x 0,

Chapter 7: The z-transform. Chih-Wei Liu

Web Appendix O - Derivations of the Properties of the z Transform

PRELIM PROBLEM SOLUTIONS

Math 61CM - Solutions to homework 3

On Involutions which Preserve Natural Filtration

A GENERALIZATION OF THE SYMMETRY BETWEEN COMPLETE AND ELEMENTARY SYMMETRIC FUNCTIONS. Mircea Merca

Read carefully the instructions on the answer book and make sure that the particulars required are entered on each answer book.

4 The Sperner property.

1 lim. f(x) sin(nx)dx = 0. n sin(nx)dx

Relations Among Algebras

Some remarks for codes and lattices over imaginary quadratic

The z-transform. 7.1 Introduction. 7.2 The z-transform Derivation of the z-transform: x[n] = z n LTI system, h[n] z = re j

The Discrete Fourier Transform

Chapter 8. Euler s Gamma function

Once we have a sequence of numbers, the next thing to do is to sum them up. Given a sequence (a n ) n=1

2. The binary number system and the binomial coefficients

Lecture 1. January 8, 2018

SOME TRIBONACCI IDENTITIES

ELEG3503 Introduction to Digital Signal Processing

Basic Sets. MTH299 - Examples. Example 1. Let S = {1, {2, 3}, 4}. Indicate whether each statement is true or false. (a) S = 4

Fundamental Concepts: Surfaces and Curves

Lecture 10: Mathematical Preliminaries

Name of the Student:

Generating Functions. 1 Operations on generating functions

Introduction to Probability. Ariel Yadin. Lecture 2

MATH 1910 Workshop Solution

Apply change-of-basis formula to rewrite x as a linear combination of eigenvectors v j.

COMPARISON OF FPGA IMPLEMENTATION OF THE MOD M REDUCTION

The Gamma function. Marco Bonvini. October 9, dt e t t z 1. (1) Γ(z + 1) = z Γ(z) : (2) = e t t z. + z dt e t t z 1. = z Γ(z).

Chapter 7 z-transform

Random Models. Tusheng Zhang. February 14, 2013

1. ARITHMETIC OPERATIONS IN OBSERVER'S MATHEMATICS

Find a formula for the exponential function whose graph is given , 1 2,16 1, 6

End-of-Year Contest. ERHS Math Club. May 5, 2009

Convergence of random variables. (telegram style notes) P.J.C. Spreij

HOMEWORK #4 - MA 504

Transcription:

The structure of fiite rigs ad fiite expoetiatio The multiplicative residues We have see that the fiite rig Z p is a field, that is, every o-zero elemet of Z p has a multiplicative iverse It is a covetio to write Z p for the o-zero elemets {1, 2, 3,, p-1} Z p is the set of multiplicative residues modulo p Modular expoetiatio Public key cryptography explores the properties of the expoetiatio fuctio i Z p Defied as repeated multiplicatio: g 5 mod p := g g g g g mod p To expoetiate by egative values, expoetiate the iverse: g -3 := g -1 g -1 g -1 mod p 1

Expoet rules Additio/subtractio rules: g k g j = g k +j i Z g k g -j = g k-j i Z Multiplicatio rule: (g k ) j = g kj i Z No-prime modulus If is ot prime, the ot all o-zero elemets are ivertible I this case, we write Z for the ivertible elemets oly Examples: Z 14 = {1, 3, 5, 9, 11, 13} Z 15 = {1, 2, 4, 7, 8, 11, 13, 14} Geerators Cosider the followig: I Z 14 = {1, 3, 5, 9, 11, 13}; 3 2 =9 mod 14; 3 3 =13 mod 14; 3 4 = 11 mod 14; 3 5 = 5 mod 14; 3 6 = 1 mod 14 I Z 14 every elemet is a power of 3 We say that 3 is a geerator Do geerators always exist? 2

Prime modulus If is a prime, or twice a prime, the Z always has a geerator We have already see this for = 14 = 27 Otherwise, geerators do ot exist A importat case is whe = pq, where both p ad q are odd ad prime I this case, there is a elemet that geerates 1/2 of Z Example Z 15 = {1, 2, 4, 7, 8, 11, 13, 14} 2 1 =2 mod 15; 2 2 =4 mod 15; 2 3 =8 mod 15; 2 4 =1 mod 15 4 1 = 4 mod 15; 4 2 = 1 mod 15; 7 1 =7 mod 15; 7 2 =4 mod 15; 7 3 =13 mod 15; 7 4 =1 mod 15; 8 1 =8 mod 15; 8 2 =4 mod 15; 8 3 =2 mod 15; 8 4 =1 mod 15; 11 1 =11 mod 15; 11 2 = 1 mod 15; 13 1 =13 mod 15; 13 2 =4 mod 15; 13 3 =7 mod 15; 13 4 =1 mod 15; 14 1 = 14 mod 15; 14 2 =1 mod 15; No elemet is a geerator, as predicted Order of a elemet Take g i Z The list g 1, g 2,, g k, k = 1, 2, must evetually repeat Otherwise get ifiite sequece of elemets from a fiite set, a cotradictio Let g j = g k, j < k k = j + t g j = g k = g j+t ; g j = g j+t = g j g t ; g t = 1 Cacellatio rule applies because g is ivertible 3

Order (cotiued) We have show that: g is ivertible if ad oly if there is t > 1 such that g t = 1 mod Z Ideed, if g is ivertible we have show that t exists O the other had, if t exists, the g has a iverse, equal to g t-1 g g t-1 = g t = 1 i Z The smallest such t is the order of g Order of Z The order of a elemet ca also be defied as the size of the set geerated by it: t = order(g) = #{g, g 2, g 3,, g t = 1} The order of the group Z is simply its cardiality Z The fuctio ϕ() = Z is called the Euler totiet fuctio Euler totiet We kow that all o-zero residues modulo a prime p are ivertible I other words: ϕ(p) = p - 1, if p is a prime It is easy to see that, if = p q is a product of two primes, the ϕ() = (p - 1)(q - 1) = ϕ(p) ϕ(q) I geeral: ϕ() ϕ(m) = ϕ(m) if, m are relatively prime 4

Relatios betwee orders Fact: If g is a residue i Z, the order(g) divides ϕ() = order(z ) A importat special case is whe p is a prime I that case, order(g) divides p-1 g p-1 = (g t ) k = 1 k = 1 mod p; t = order(g) Fermat s Little Theorem The previous result is called Fermat s Little Theorem (FLT) For every o-zero g i Z p where p is a prime: g p-1 = 1 mod p This ca be geeralized for all g i Z p g p = g mod p Geeralizig FLT For ay fiite rig Z : g ϕ() = 1 mod, g i Z Proof will ot be give The special case = pq is importat Claim: If is a product of two primes: g ϕ()+1 = g mod, g i Z = {0, 1,, -1} 5

The Remaider Theorem I order to appreciate the structure of fiite rigs whe the modulus is composite, the remaider theorem applies: Give = s t, where GCD(s, t) = 1 For each elemet a mod, there correspods a uique pair (b mod s, c mod t) Example (CRT) = 15 = 35 a = 7 mod 15 correspods to (1 mod 3, 2 mod 5) To go from a mod to (b mod s, c mod t): Just compute b = a mod s, c = a mod t How to go backwards? Let σ represet s -1 mod t, τ represets t -1 mod s CRT backwards Give (b mod s, c mod t), compute a = c s σ + b t τ mod I other words a = c s σ + b t τ + k Cosider a mod s (similar for a mod t) a mod s = c s σ + b t τ + k s t mod s = b t τ mod s = b mod s 6

CRT backwards example give b = 1 mod 3, c = 5 mod 7 Compute 3-1 mod 7 = 5, as 35 = 1 mod 7 Compute 7-1 mod 3 = 1, as 7 = 1 mod 3 a =1 7 1 + 5 3 5 = 82 mod 21 = 19 mod 21 Returig to FLT for = pq To prove: g ϕ()+1 = g mod, g i Z = {0, 1,, -1}, whe = pq, ad p, q are primes For ivertible elemets, ie, GCD(g, ) = 1, it is the previous claim For g=0 mod, ie, GCD(g, ) = it is clear Cosider ow the case GCD(g, ) = p FLT (cotiued) By the CRT, g is defied by g is ivertible mod q g = 0 mod p We get that g q = g mod q g q = 0 = g mod p By backwards CRT, we get g q = g mod pq; g ϕ()+1 = g pq - p - q +2 = = g -p+2 (g q ) p-1 = g mod pq 7