An Approach to Hensel s Lemma

Similar documents
be any ring homomorphism and let s S be any element of S. Then there is a unique ring homomorphism

Abstract Algebra, Second Edition, by John A. Beachy and William D. Blair. Corrections and clarifications

Rings in Coding Theory

School of Mathematics and Statistics. MT5836 Galois Theory. Handout 0: Course Information

Chapter 4. Remember: F will always stand for a field.

1. Algebra 1.5. Polynomial Rings

MATH 431 PART 2: POLYNOMIAL RINGS AND FACTORIZATION

Math 547, Exam 2 Information.

Factorization in Polynomial Rings

Polynomials. Chapter 4

18. Cyclotomic polynomials II

17 Galois Fields Introduction Primitive Elements Roots of Polynomials... 8

2. THE EUCLIDEAN ALGORITHM More ring essentials

g(x) = 1 1 x = 1 + x + x2 + x 3 + is not a polynomial, since it doesn t have finite degree. g(x) is an example of a power series.

p-adic fields Chapter 7

Homework 8 Solutions to Selected Problems

Finite Fields: An introduction through exercises Jonathan Buss Spring 2014

THE GROUP OF UNITS OF SOME FINITE LOCAL RINGS I

Section VI.33. Finite Fields

A connection between number theory and linear algebra

Parity of the Number of Irreducible Factors for Composite Polynomials

Finite Fields. Mike Reiter

where c R and the content of f is one. 1

(January 14, 2009) q n 1 q d 1. D = q n = q + d

SEVERAL PROOFS OF THE IRREDUCIBILITY OF THE CYCLOTOMIC POLYNOMIALS

MA257: INTRODUCTION TO NUMBER THEORY LECTURE NOTES

Algebraic function fields

Rings. Chapter 1. Definition 1.2. A commutative ring R is a ring in which multiplication is commutative. That is, ab = ba for all a, b R.

MATH 115, SUMMER 2012 LECTURE 12

FACTORIZATION OF POLYNOMIALS OVER FINITE FIELDS

Algebra Homework, Edition 2 9 September 2010

R S. with the property that for every s S, φ(s) is a unit in R S, which is universal amongst all such rings. That is given any morphism

UNDERSTANDING RULER AND COMPASS CONSTRUCTIONS WITH FIELD THEORY

A WEAK VERSION OF ROLLE S THEOREM

An Infinite Family of Non-Abelian Monogenic Number Fields

Quasi-reducible Polynomials

MATH 101A: ALGEBRA I, PART D: GALOIS THEORY 11

Polynomial Rings. i=0. i=0. n+m. i=0. k=0

Public-key Cryptography: Theory and Practice

Finite Fields and Error-Correcting Codes

February 1, 2005 INTRODUCTION TO p-adic NUMBERS. 1. p-adic Expansions

1/30: Polynomials over Z/n.

Chapter 4 Finite Fields

A Note on Powers in Finite Fields

CYCLOTOMIC POLYNOMIALS

55 Separable Extensions

RINGS: SUMMARY OF MATERIAL

Factorization in Integral Domains II

Computing with polynomials: Hensel constructions

Math 429/581 (Advanced) Group Theory. Summary of Definitions, Examples, and Theorems by Stefan Gille

Galois groups of polynomials and the construction of finite fields

1 Rings 1 RINGS 1. Theorem 1.1 (Substitution Principle). Let ϕ : R R be a ring homomorphism

Polynomial Rings. (Last Updated: December 8, 2017)

Factoring univariate polynomials over the rationals

MTH310 EXAM 2 REVIEW

Computations/Applications

On the Primitivity of some Trinomials over Finite Fields

MINIMAL GENERATING SETS OF GROUPS, RINGS, AND FIELDS

Algebraic Number Theory Notes: Local Fields

Classification of Finite Fields

Elliptic Curves Spring 2013 Lecture #3 02/12/2013

Chapter 8. P-adic numbers. 8.1 Absolute values

KUMMER S LEMMA KEITH CONRAD

Information Theory. Lecture 7

CYCLOTOMIC POLYNOMIALS

Solutions for Field Theory Problem Set 1

Theorem 5.3. Let E/F, E = F (u), be a simple field extension. Then u is algebraic if and only if E/F is finite. In this case, [E : F ] = deg f u.

COUNTING SEPARABLE POLYNOMIALS IN Z/n[x]

MODEL ANSWERS TO HWK #10

but no smaller power is equal to one. polynomial is defined to be

JUST THE MATHS UNIT NUMBER 1.9. ALGEBRA 9 (The theory of partial fractions) A.J.Hobson

FILTERED RINGS AND MODULES. GRADINGS AND COMPLETIONS.

Algebra Review 2. 1 Fields. A field is an extension of the concept of a group.

SIMPLE RADICAL EXTENSIONS

Determining the Galois group of a rational polynomial

Local Fields. Chapter Absolute Values and Discrete Valuations Definitions and Comments

Section IV.23. Factorizations of Polynomials over a Field

Finite Fields. Sophie Huczynska. Semester 2, Academic Year

Course MA2C02, Hilary Term 2013 Section 9: Introduction to Number Theory and Cryptography

Fields and Galois Theory. Below are some results dealing with fields, up to and including the fundamental theorem of Galois theory.

Irreducible Polynomials over Finite Fields

Towards High Performance Multivariate Factorization. Michael Monagan. This is joint work with Baris Tuncer.

Finite Fields. Saravanan Vijayakumaran Department of Electrical Engineering Indian Institute of Technology Bombay

NOTES ON FINITE FIELDS

Lecture Notes Math 371: Algebra (Fall 2006) by Nathanael Leedom Ackerman

Gauss s Theorem. Theorem: Suppose R is a U.F.D.. Then R[x] is a U.F.D. To show this we need to constuct some discrete valuations of R.

Section X.55. Cyclotomic Extensions

Notes 6: Polynomials in One Variable

Elliptic Curves Spring 2015 Lecture #7 02/26/2015

Introduction to finite fields

Basic Algorithms in Number Theory

MATH 361: NUMBER THEORY FOURTH LECTURE

Efficient random number generation on FPGA-s

Rigid Divisibility Sequences Generated by Polynomial Iteration

Math 201C Homework. Edward Burkard. g 1 (u) v + f 2(u) g 2 (u) v2 + + f n(u) a 2,k u k v a 1,k u k v + k=0. k=0 d

P -adic root separation for quadratic and cubic polynomials

A CONSTRUCTION FOR ABSOLUTE VALUES IN POLYNOMIAL RINGS. than define a second approximation V 0

Mathematics for Cryptography

Repeated-Root Self-Dual Negacyclic Codes over Finite Fields

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

Transcription:

Irish Math. Soc. Bulletin 47 (2001), 15 21 15 An Approach to Hensel s Lemma gary mcguire Abstract. Hensel s Lemma is an important tool in many ways. One application is in factoring polynomials over Z. The computation in applying Hensel s Lemma proceeds by using the Euclidean algorithm. In this short article we present another approach to Hensel s Lemma, and we show that the lift of a polynomial can be calculated in another way. In some cases this is computationally faster. The proof is a connection between Hensel s Lemma and the polynomial whose roots are the p-th powers of the roots of a given polynomial. 1. Introduction Let h(x) be a polynomial with integer coefficients. In this article we will assume that all polynomials are monic. Hensel s Lemma begins with a factorisation h(x) = f 1 (x)g 1 (x) over Z p, where p is a prime and gcd(f 1, g 1 ) = 1, and inductively constructs a factorisation h(x) = f (x)g (x) over Z p with the property that f (x) f 1 (x) (mod p) and g (x) g 1 (x) (mod p). This Hensel lift from Z p to Z p is accomplished by repeated use of the Euclidean algorithm. For more details, and applications, see [2], [3] or [4]. Here is an example where p = 2. Z p [x] f (x) g (x) = h(x) 1 Z 2 [x] (x 3 + x + 1) (x 4 + x 2 + x + 1) = x 7 1 2 Z 4 [x] (x 3 + 2x 2 + x + 3) (x 4 + 2x 3 + 3x 2 + x + 1) = x 7 1 3 Z 8 [x] (x 3 + 6x 2 + 5x + 7) (x 4 + 2x 3 + 7x 2 + 5x + 1) = x 7 1 4 Z 16 [x] (x 3 + 6x 2 + 5x + 15) (x 4 + 10x 3 + 15x 2 + 5x + 1) = x 7 1 5 Z 32 [x] (x 3 + 6x 2 + 5x + 31) (x 4 + 26x 3 + 31x 2 + 5x + 1) = x 7 1 6 Z 64 [x] (x 3 + 38x 2 + 37x + 63) (x 4 + 26x 3 + 63x 2 + 37x + 1) = x 7 1 In Section 2 we will give another method for accomplishing the lifting of a factorisation. Our method will lift either a single polynomial in the factorisation, or both factors, using only polynomial

16 gary mcguire multiplication. The procedure in the previous paragraph lifts both factors f 1 (x) and g 1 (x) simultaneously. The lifting of one factor is sometimes all that is required; for example, this occurs in the lifting of generator polynomials of cyclic codes over Z 2 to Z 4, or more generally from Z p to Z p. Coding theorists have been using the method of this article, and although we have not seen anything in print, this article contains nothing new. In Section 3 we compare the computational complexities of both methods. Section 4 will provide full details of one of the proofs. The Hensel lift of a factorisation is defined above. We will now define the Hensel lift of a single polynomial. First we define the Hensel lift of irreducible divisors of x n 1, and then proceed to define the Hensel lift for an arbitrary divisor of x n 1. Sometimes we will refer to the Hensel lift simply as the lift. If f(x) Z p [x] is a monic irreducible divisor of x n 1, the Hensel lift to Z p of f(x) is defined to be the unique monic irreducible polynomial f (x) Z p [x] such that f (x) f(x) (mod p) and f (x) divides x n 1 in Z p [x]. For a proof of the existence and uniqueness of f (x), see Theorem 1 below. With g(x) = (x n 1)/f(x), this is the same result as would be found if we lifted the factorisation h(x) = x n 1 = f(x)g(x) in Z p [x] to x n 1 = f (x)g (x) in Z p [x], by uniqueness. The Hensel lift of any monic f(x) Z p [x] which divides x n 1 is obtained by factoring f(x) into irreducible factors in Z p [x], then lifting each irreducible factor to Z p [x] and multiplying the lifts together. We could even define the Hensel lift of any monic f(x) Z p [x], by defining the lift to be the product of the lifts of the irreducible factors of f(x), but we will not discuss this further. 2. The Results Our method is based on finding the polynomial whose roots are the p-th powers of the roots of a given polynomial a(x). Corollary C below can be seen as a generalisation of the familiar method of calculating a polynomial whose roots are the squares of a given a(x), which is to replace x 2 by x in the polynomial a(x)a( x). Theorem A. Let a(x) be a polynomial with rational coefficients. Let ω 1 be a complex n-th root of unity, for any integer n > 1.

an approach to hensel s lemma 17 If r 1 is relatively prime to n then the coefficient of x r in the polynomial n b(x) = a(ω j x) j=1 is zero. All the coefficients of b(x) are rational, and if a(x) has integer coefficients, then so does b(x). Proof: It is clear that b(x) has rational coefficients since it is fixed by the Galois group of the extension Q(ω)/Q. If a(x) has integer coefficients, then the coefficients of b(x) are algebraic integers, and therefore rational integers. If a(x) = a i x i then the coefficient of x r in b(x) is ai0 a i1 a i ωi1+2i 2+3i 3 + +()i where the sum is over all n-tuples (i 0, i 1, i 2,..., i ) such that each i j 0 and i 0 + i 1 + i 2 + + i = r. In this sum, consider the n terms arising from any particular n-tuple and its n cyclic shifts. If r is relatively prime to n, we will show that the sum of these n terms is zero. This will complete the proof. Since the coefficients a i0 a i1 a i in the n terms are all equal, to show that the sum of these n terms is zero it will suffice to show that the n powers of ω are all distinct, and then use the fact that 1 + ω + ω 2 + + ω = 0. Suppose to the contrary that two of the powers are equal. By relabelling the i j if necessary, we may assume that ω i 1+2i 2 +3i 3 + +()i = ω i +1+2i +2 +3i +3 + +()i + (reading subscripts modulo n) for some satisfying 0 < < n. If we consider the exponents, this implies m=0 mi m m=0 mi +m (mod n). But this righthand side is congruent modulo n to s=0 (s )i s, and so m=0 mi m (s )i s s=0 s=0 si s s=0 i s (mod n)

18 gary mcguire giving s=0 i s 0 (mod n). Now we use that fact that i 0 + i 1 + i 2 + + i = r to conclude r 0 (mod n), which is impossible if r and n are relatively prime. Corollary B. Let a(x) be a polynomial with integer coefficients. Let ω = 1 be a p-th root of unity, for any prime p. Then the integral polynomial p b(x) = a(ω j x) is a polynomial in x p. j=1 Corollary C. Let a(x) be a monic polynomial with integer coefficients, and let p be a prime. Let b(x) be as in Corollary B. Then the monic integral polynomial c(x) whose roots are the p-th powers of the roots of a(x) is c(x) = b(x 1/p ). Now that we have shown how to calculate the polynomial whose roots are the p-th powers of a given polynomial, we shall show that this polynomial is the lift that is produced by Hensel s Lemma. This will be shown in the course of the proof of Theorem 1, which is why we include the proof although the result is not new (see [1] for example we will give their proof). Usually Theorem 1 is given as a corollary of Hensel s Lemma. Theorem 1. Let f (x) be a monic irreducible divisor of x n 1 in Z p [x] for any 1. Assume n and p are relatively prime. Then there exists a unique monic irreducible polynomial f +1 (x) which divides x n 1 in Z p +1[x] and such that f +1 (x) f (x) (mod p ). Proof: (Setch for full details see Section 4.) Let S be the set of n-th roots of unity in an extension ring of Z p. If α S is a root of f (x), then in Z p +1[S +1 ] we have α n = 1 + p δ for some δ S +1. It follows that α np = 1. We conclude that the polynomial in Z p +1[x] whose roots are the p-th powers of the roots of f (x) is a lift of f (x). For uniqueness see section 4. If f +1 (x) were reducible, then reduction modulo p would imply that f (x) is reducible.

an approach to hensel s lemma 19 Corollary 2. Given f (x), f +1 (x) can be calculated as follows: 1. Regard f (x) as having integer coefficents. 2. Compute the polynomial c(x) in Corollary C (with f (x) in place of a(x)). 3. Reduce c(x) modulo p +1. We can now summarise our approach. INPUT: A monic polynomial f(x) Z p [x] dividing x n 1. WANTED: The Hensel lift of f(x) to Z p [x]. PROCEDURE: Factor f(x) into irreducible factors. For each irreducible factor iterate Corollary 2 1 times, i.e., lift from Z p m to Z p m+1 for m = 1, 2,..., 1. Then multiply the lifts of each factor together. We remar that by iterating Corollary 2 indefinitely, we would get the p-adic lift of f(x). 3. Computational Complexity Here we (rather crudely) compare the complexity of using Corollary 2 to calculate the lift versus the usual method. The worst feature of the Corollary 2 method is that the given polynomial f(x) to be lifted has to be factored into irreducible factors in Z p [x]. Assume for the moment that f(x) is a monic irreducible polynomial in Z p [x], of degree r, say. In this case there is no factoring required. To calculate the lift of f(x) to Z p 2, we must multiply p polynomials of degree r together. According to [2], multiplication of two degree r polynomials using the Fast Fourier Transform taes O(r log r) operations, so the multiplication of our p polynomials of degree r taes O(pr log pr) operations. However, this may not be strictly accurate in our case since the coefficients are not integers, and the simplification of these coefficients is not taen into account. The Euclidean algorithm calculation in Hensel s Lemma taes O(m(log m) 2 log log m) operations where m is the largest of the degrees of the two polynomials, see [2]. If f(x) has degree r then m = n r where n is the smallest n such that f(x) divides x n 1. In the case that f(x) is a primitive irreducible polynomial, we have n = p r 1 and m = p r 1 r, so in this crude comparison we see that using Corollary 2 is faster for large r and fixed p. This was

20 gary mcguire borne out by Mathematica experiments. For example, if p = 3 and r = 30 then pr = 120, but m = p r 1 r = 3 30 31 is much larger than pr. For small r we tested some examples on Mathematica and the Euclidean algorithm method was faster, as one might expect. 4. Technical Details In this section we give a more complete proof of Theorem 1. The complications arise from the fact that we are dealing with polynomials which have coefficients in a ring (with zero-divisors), and not a field. We would lie to now that extension rings always exist containing the roots of these polynomials, as happens with a field. Since we are always woring with monic polynomials within the roots of unity, this is true. The proper framewor is really the field of p-adic numbers Q p. If S is the set of n-th roots of unity in an extension field of Q p, then we consider the ring Z p [S] where Z p is the ring of p-adic integers. For each there is the reduction modulo p homomorphism φ : Z p Z p and this can be extended to Z p [S]. Let S = φ (S). For example, S 1 is the set of n-th roots of unity in an extension field of Z/pZ. There are also homomorphisms ψ : Z p +1 Z p which are reduction modulo p. For example, ψ 1 (1) = {1 + p δ : δ S}. This set has n elements, but note that all n elements have the same p-th power, namely 1. To prove Theorem 1, let T S be the set of roots of f (x). Tae the p-th powers of the elements of ψ 1 (T ). If α T then a pre-image of α in ψ 1 (T ) loos lie α +1 = α + p δ so that α p +1 = αp. This gives us deg(f ) elements of Z p +1[S +1 ] each of whose n-th power is 1. Clearly their reduction modulo p gives the roots of f (x), i.e., ψ (ψ 1 (T )p ) = T. These two properties mean that we can tae the p-th powers of the elements of ψ 1 (T ), and form the polynomial with these as roots, and this polynomial will be f +1 (x). To prove uniqueness, suppose there are two polynomials g(x) and g (x) in Z p +1[x] which divide x n 1 and reduce modulo p to f (x).

an approach to hensel s lemma 21 Let β and β be roots of g(x) and g (x) respectively, both of which reduce modulo p to α. Then β n = 1 = β n of course, so (β/β ) n = 1. But also β p = β p so (β/β ) p = 1. Since n and p are relatively prime we get β = β and therefore g(x) = g (x). References [1] A. R. Calderban and N. J. A. Sloane, Modular and p-adic cyclic codes, Designs Codes and Cryptography 6 (1995), 21 35. [2] J. von zur Gathen and J. Gerhard, Modern Computer Algebra, Cambridge University Press, 1999. [3] K. O. Geddes, S. R. Czapor, G. Labahn, Algorithms for Computer Algebra, Kluwer Academic Publishers, 1992. [4] B. L. van der Waerden, Algebra Volume II, Springer-Verlag, 1991. Gary McGuire, Department of Mathematics, National University of Ireland, Maynooth, Co. Kildare, Ireland gmg@maths.may.ie Received 2 November 2000 and in revised form on 23 November 2001.