LECTURE 7: POLYNOMIAL CONGRUENCES TO PRIME POWER MODULI

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

SOLUTIONS TO PROBLEM SET 5. Section 9.1

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

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

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

SOLUTIONS FOR PROBLEM SET 4

Primitive Roots. Chapter Orders and Primitive Roots

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

1.6 Congruence Modulo m

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

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

Solutions for the Practice Questions

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

Fermat s little theorem. RSA.

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

CMPSCI 250: Introduction to Computation. Lecture #14: The Chinese Remainder Theorem David Mix Barrington 24 February 2012

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

Applications of Fermat s Little Theorem and Congruences

Math 127: Equivalence Relations

Practice Midterm 2 Solutions

Wilson s Theorem and Fermat s Theorem

The Chinese Remainder Theorem

Modular Arithmetic. Kieran Cooney - February 18, 2016

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

The Sign of a Permutation Matt Baker

MAT 243 Final Exam SOLUTIONS, FORM A

Distribution of Primes

The Chinese Remainder Theorem

Solutions for the 2nd Practice Midterm

Foundations of Cryptography

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

ON MODULI FOR WHICH THE FIBONACCI SEQUENCE CONTAINS A COMPLETE SYSTEM OF RESIDUES S. A. BURR Belt Telephone Laboratories, Inc., Whippany, New Jersey

Number Theory. Konkreetne Matemaatika

MT 430 Intro to Number Theory MIDTERM 2 PRACTICE

MATH 135 Algebra, Solutions to Assignment 7

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

Constructions of Coverings of the Integers: Exploring an Erdős Problem

NUMBER THEORY AMIN WITNO

Math 412: Number Theory Lecture 6: congruence system and

CMath 55 PROFESSOR KENNETH A. RIBET. Final Examination May 11, :30AM 2:30PM, 100 Lewis Hall

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

Permutation Groups. Every permutation can be written as a product of disjoint cycles. This factorization is unique up to the order of the factors.

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

Chapter 4 Cyclotomic Cosets, the Mattson Solomon Polynomial, Idempotents and Cyclic Codes

Two congruences involving 4-cores

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

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

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

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

Goldbach Conjecture (7 th june 1742)

Minimal tilings of a unit square

LUCAS-SIERPIŃSKI AND LUCAS-RIESEL NUMBERS

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

Twenty-fourth Annual UNC Math Contest Final Round Solutions Jan 2016 [(3!)!] 4

Is 1 a Square Modulo p? Is 2?

The Chinese Remainder Theorem

Math 319 Problem Set #7 Solution 18 April 2002

12. Let Rm = {0,1,2,..., m 1} be a complete residue system modulo ra. Let a be an integer. When is a Rm = {0,1 a, 2 a,...

CHAPTER 2. Modular Arithmetic

Congruence properties of the binary partition function

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.

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

Congruence. Solving linear congruences. A linear congruence is an expression in the form. ax b (modm)

An elementary study of Goldbach Conjecture

MAT Modular arithmetic and number theory. Modular arithmetic

Number Theory/Cryptography (part 1 of CSC 282)

6.2 Modular Arithmetic

Arithmetic Properties of Combinatorial Quantities

Stanford University CS261: Optimization Handout 9 Luca Trevisan February 1, 2011

Solutions for the Practice Final

SESAME Modular Arithmetic. MurphyKate Montee. March 2018 IN,Z, We think numbers should satisfy certain rules, which we call axioms:

Modular Arithmetic. claserken. July 2016

ICTCM 28th International Conference on Technology in Collegiate Mathematics

On repdigits as product of consecutive Fibonacci numbers 1

SYMMETRIES OF FIBONACCI POINTS, MOD m

Discrete Math Class 4 ( )

and problem sheet 7

CS100: DISCRETE STRUCTURES. Lecture 8 Counting - CH6

Degree project NUMBER OF PERIODIC POINTS OF CONGRUENTIAL MONOMIAL DYNAMICAL SYSTEMS

Combinatorics in the group of parity alternating permutations

Game Theory and Algorithms Lecture 19: Nim & Impartial Combinatorial Games

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

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

Linear Congruences. The solutions to a linear congruence ax b (mod m) are all integers x that satisfy the congruence.

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

Permutation Tableaux and the Dashed Permutation Pattern 32 1

Modular arithmetic Math 2320

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

On the Periodicity of Graph Games

MATH 433 Applied Algebra Lecture 12: Sign of a permutation (continued). Abstract groups.

ON SPLITTING UP PILES OF STONES

Restricted Permutations Related to Fibonacci Numbers and k-generalized Fibonacci Numbers

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

EE 418 Network Security and Cryptography Lecture #3

NON-OVERLAPPING PERMUTATION PATTERNS. To Doron Zeilberger, for his Sixtieth Birthday

STRATEGY AND COMPLEXITY OF THE GAME OF SQUARES

Greedy Flipping of Pancakes and Burnt Pancakes

SMT 2014 Advanced Topics Test Solutions February 15, 2014

Principle of Inclusion-Exclusion Notes

Transcription:

LECTURE 7: POLYNOMIAL CONGRUENCES TO PRIME POWER MODULI 1. Hensel Lemma for nonsingular solutions Although there is no analogue of Lagrange s Theorem for prime power moduli, there is an algorithm for determining when a solution modulo p generates solutions to higher power moduli. The motivation comes from Newton s method for approximating roots over the real numbers. Suppose that x = a is a solution of the polynomial congruence f(x) 0 (mod p j ), and we want to use it to get a solution modulo p j+1. Th idea is to search for solutions of the form x = a + tp j. The Taylor expansion gives f(a + tp j ) = f(a) + tp j f (a) + t 2 p 2j f (a)/2! + + t n p nj f (n) (a)/n!, where n is the degree of f. Despite the presence of reciprocals of factorials, the coefficients in the above Taylor expansion are necessarily integral. Indeed, if f(x) = x m then f (k) (a)/k! = ( ) m k a m k Z, and it follows for general f by linearity. Hence, f(a + tp j ) = f(a) + tp j f (a) (mod p j+1 ). Since p j f(a), the congruence f(a + tp j ) 0 (mod p j+1 ) is equivalent to tf (a) f(a) p j (mod p). This congruences have either zero, one, or p solutions. In the case when f (a) 0 (mod p), it has exactly one solution. We conclude: Theorem 1.1 (Hensel Lemma). Let f Z[x]. Suppose that f(a) 0 (mod p j ) and f (a) 0 (mod p). Then there exists a unique t (mod p) such that f(a + tp j ) 0 (mod p j+1 ). Hensel s lemma implies that every a solution x j of f(x) 0 (mod p j ) satisfying f (x j ) 0 (mod p) lifts to a unique solution x j+1 of f(x) 0 (mod p j+1 ) such that x j+1 x j (mod p j ). This solution could be computed using the recursive formula: x j+1 = x j f(x j )f (x j ) 1 (mod p j+1 ), where f (x j ) 1 denotes the multiplicative inverse of f (x j ) modulo p. Example 1.2. Solve the congruence x 3 + x + 4 0 (mod 7 3 ). 1

2 LECTURE 7 (I) We first solve the corresponding congruence modulo 7, since any solution x modulo 7 3 must also satisfy x 3 + x + 4 0 (mod 7). By an exhaustive search (try x = 0, ±1, ±2, ±3), we find that the only solution is x 2 (mod 7). (II) Next, we try to solve the corresponding congruence modulo 7 2, since any solution x modulo 7 3 must also satisfy x 3 +x+4 0 (mod 7 2 ). But such solutions must also satisfy the corresponding solution modulo 7, so x 2 (mod 7). Then we put x = 2 + 7y and substitute. We need to solve (2 + 7y) 3 + (2 + 7y) + 4 0 (mod 7 2 ). Notice that when we use the Binomial Theorem to expand the cube, any terms involving 7 2 or 7 3 can be ignored. Thus we need to solve (2 3 + 3 2 2 7y) + (2 + 7y) + 4 = 14 + 13 7y 0 (mod 7 2 ), or equivalently, 13y + 2 y + 2 0 (mod 7). Then we put y = 2 and find that x = 2 + 7y = 16 satisfies the congruence x 3 + x + 4 0 (mod 7 2 ). (III) We can now repeat the previous strategy (and in fact, we can repeat this as many times as necessary). So we substitute x = 16 + 7 2 z and solve for z to obtain a solution modulo 7 3. Thus we need to solve (16 + 7 2 z) 3 + (16 + 7 2 z) + 4 (16 3 + 3 16 2 7 2 z) + (16 + 7 2 z) + 4 0 (mod 7 3 ). But 16 3 + 16 + 4 is divisible by 7 2 (why do we know this?), and in fact is equal to 84 7 2. Then we need to solve which is equivalent to 84 7 2 + (3 16 2 + 1) 7 2 z 0 (mod 7 3 ), (3 16 2 + 1)z + 84 0 (mod 7), or 13z 0 (mod 7). So we put z = 0, and find that x 16 (mod 7 3 ) solves x 3 + x + 4 0 (mod 7 3 ). Example 1.3. Let f(x) = x 2 + 1. f(x) 0 (mod 5 4 ). Find the solutions of the congruence Observe that the congruence x 2 + 1 0 (mod 5) has the solutions x ±2 (mod 5) (note that there are at most 2 solutions modulo 5, by Lagrange s theorem). Consider first the solution x 1 = 2 of the latter congruence. One finds that f (x 1 ) = 2x 1 1 (mod 5). It follows that 5 f (x 1 ), and since f(x 1 ) = 5 0 (mod 5), we may apply Hensel s iteration to find integers x n (n 1) with f(x n ) 0 (mod 5 n ). We obtain x 2 x 1 f(x 1) f (x 1 ) 2 5 1 7 (mod 52 ), x 3 7 50 14 7 50 1 57 (mod 53 ) x 4 57 3250 114 57 3250 1 3307 182 (mod 54 ).

LECTURE 7 3 Thus x = 182 provides a solution of the congruence x 2 + 1 0 (mod 5 4 ). Proceeding similarly, one may lift the alternate solution x = 2 to the congruence x 2 + 1 0 (mod 5) to obtain the solution x 182 (mod 5 4 ). Note that in each instance, the lifting process provided by Hensel s lemma led to a unique residue modulo 5 4 corresponding to each starting solution modulo 5. 2. Hensel Lemma in general Now we consider the problem of lifting solutions when f (a) 0 (mod p). Example 2.1. Let f(x) = x 2 4x + 13. congruence f(x) 0 (mod 3 4 ). Find all of the solutions of the Notice that x 2 4x + 13 x 2 + 2x + 1 (x + 1) 2 (mod 3), and hence x 1 (mod 3) is the only solution of the congruence f(x) 0 (mod 3). Next, since f (x) = 2x 4, we find that 3 f ( 1), We proceed systematically: (i) Observe first that all solutions satisfy x 2 (mod 3), and so any solution x must satisfy x 2, 5 or 8 modulo 9. One may verify that all three residue classes satisfy f(x) 0 (mod 9). (ii) Next we consider all residues modulo 27 satisfying x 2, 5 or 8 modulo 9, and find that none of these (there are 9 such residues) provide solutions of f(x) 0 (mod 27). So there are no solutions to the congruence x 2 4x + 13 0 (mod 3 3 ). This example shows that solutions modulo p in general may not lift to solutions modulo some higher powers of p, but not necessarily to solutions modulo arbitrarily high powers of p. Moreover, lifts of the solutions are not unique. Theorem 2.2. Let f Z[x]. Suppose that f(a) 0 (mod p j ) and p τ f (a). 1 Then if j 2τ + 1, whenever b a (mod p j τ ), one has f(b) f(a) (mod p j ) and p τ f (b). Proof. Writing b = a + hp j τ and applying Taylor s expansion, we obtain f(b) = f(a + hp j τ ) = f(a) + hp j τ f (a) + 1 2! f (a)(hp j τ ) 2 +... The quadratic and higher terms in the above expansion are all divisible by p 2(j τ). But j 2τ + 1, whence 2(j τ) = j + (j 2τ) j + 1, and so f(b) f(a) + hp j τ f (a) (mod p j ). Since p τ f (a), the latter shows that f(b) f(a) (mod p j ). 1 Recall that p i A means that p i A and p i+1 A.

4 LECTURE 7 Applying Taylor s theorem in like manner to f one finds that f (b) = f (a + hp j τ ) f (a) (mod p j τ ) f (a) (mod p τ+1 ), since j τ τ + 1. Then since p τ f (a), one obtains p τ f (b). A good news is that a solution f(x) 0 (mod p j ) gives rise to a solution f(x) 0 (mod p j+1 ) provided that j is sufficiently large. Theorem 2.3 (Hensel Lemma). Let f Z[x]. Suppose that f(a) 0 (mod p j ) and p τ f (a). Then if j 2τ + 1, there is a unique residue t (mod p) such that f(a + tp j τ ) 0 (mod p j+1 ). Proof. Since p τ f (a), we may write f (a) = gp τ for a suitable integer g with (g, p) = 1. Let g be any integer with gg 1 (mod p), and write a = a gf(a)p τ. Then an application of Taylor s theorem on this occasion supplies the congruence f(a ) = f(a gf(a)p τ ) f(a) p τ f(a)gf (a) (mod p 2(j τ) ), since j > τ and p τ gf(a) 0 (mod p j τ ). But 2(j τ) = j + (j 2τ) j + 1, and thus f(a ) f(a) (p τ f(a)g)(gp τ ) = f(a)(1 gg) 0 (mod p j+1 ). So there exists an integer t with f(a + tp j τ ) 0 (mod p j+1 ), and indeed one may take t p j f(a)(p τ f (a)) 1 (mod p). In order to establish the uniqueness of the integer t, suppose, if possible, that two such integers t 1 and t 2 exist. Then one has f(a + t 1 p j τ ) 0 f(a + t 2 p j τ ) (mod p j+1 ), whence by Taylor s theorem, as above, one obtains f(a) + t 1 p j τ f (a) f(a) + t 2 p j τ f (a) (mod p j+1 ). Thus t 1 f (a) t 2 f (a) (mod p τ+1 ). Since p τ f (a), we obtain t 1 t 2 (mod p). This establishes the uniqueness of t modulo p, completing our proof. Example 2.4. Consider the polynomial f(x) = x 2 +x+223. We observe that f(4) = 3 5 and f (4) = 3 2. So f(4) 0 (mod 3 5 ). Searching for solutions of f(x) 0 (mod 3 6 ) of the form 4 + 27t, we find that f(4 + 27t) 3 5 + 3 5 t (mod 3 6 ), and unique t = 2 gives such a solution f(58) 0 (mod 3 6 ). Moreover, for any t = 0, 1,... 8, f(58 + 81t) 0 (mod 3 6 ).

Some concluding observations may be of assistance: LECTURE 7 5 (i) Hensel s lemma allows one to lift repeatedly. Thus, whenever f(a) 0 (mod p j ) and p τ f (a) with j 2τ + 1 then there exists a unique residue t modulo p such that, with a = a + tp j τ, f(a ) 0 (mod p j+1 ) and p τ f (a ) with j + 1 2τ + 1, and then we are set up to repeat this process. (ii) Notice that in Hensel s lemma, the residue t modulo p is unique, and given by t (p j f(a))(p τ f (a)) 1 (mod p), so one only needs to compute (p τ f (a)) 1 modulo p. Moreover, p τ f (a ) p τ f (a) (mod p), so our initial inverse computation remains valid for subsequent lifting processes. (iii) If f(a) 0 (mod p j ) and p τ f (a) and j 2τ + 1, then f(a + hp j τ ) f(a) 0 (mod p j ). So there are p τ solutions of f(x) 0 (mod p j ) corresponding to the single solution x a (mod p j ), namely a + hp j τ with 0 h p τ.