Misplaced Pages

Primitive polynomial (field theory)

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
Minimal polynomial of a primitive element in a finite field For polynomials such that the greatest common divisor of the coefficients is 1, see Primitive polynomial (ring theory).

This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.
Find sources: "Primitive polynomial" field theory – news · newspapers · books · scholar · JSTOR (May 2010) (Learn how and when to remove this message)

In finite field theory, a branch of mathematics, a primitive polynomial is the minimal polynomial of a primitive element of the finite field GF(p). This means that a polynomial F(X) of degree m with coefficients in GF(p) = Z/pZ is a primitive polynomial if it is monic and has a root α in GF(p) such that { 0 , 1 , α , α 2 , α 3 , α p m 2 } {\displaystyle \{0,1,\alpha ,\alpha ^{2},\alpha ^{3},\ldots \alpha ^{p^{m}-2}\}} is the entire field GF(p). This implies that α is a primitive (p − 1)-root of unity in GF(p).

Properties

  • Because all minimal polynomials are irreducible, all primitive polynomials are also irreducible.
  • A primitive polynomial must have a non-zero constant term, for otherwise it will be divisible by x. Over GF(2), x + 1 is a primitive polynomial and all other primitive polynomials have an odd number of terms, since any polynomial mod 2 with an even number of terms is divisible by x + 1 (it has 1 as a root).
  • An irreducible polynomial F(x) of degree m over GF(p), where p is prime, is a primitive polynomial if the smallest positive integer n such that F(x) divides x − 1 is n = p − 1.
  • A primitive polynomial of degree m has m different roots in GF(p), which all have order p − 1, meaning that any of them generates the multiplicative group of the field.
  • Over GF(p) there are exactly φ(p − 1) primitive elements and φ(p − 1) / m primitive polynomials, each of degree m, where φ is Euler's totient function.
  • The algebraic conjugates of a primitive element α in GF(p) are α, α, α, …, α and so the primitive polynomial F(x) has explicit form F(x) = (xα) (xα) (xα) … (xα). That the coefficients of a polynomial of this form, for any α in GF(p), not necessarily primitive, lie in GF(p) follows from the property that the polynomial is invariant under application of the Frobenius automorphism to its coefficients (using α = α) and from the fact that the fixed field of the Frobenius automorphism is GF(p).

Examples

Over GF(3) the polynomial x + 1 is irreducible but not primitive because it divides x − 1: its roots generate a cyclic group of order 4, while the multiplicative group of GF(3) is a cyclic group of order 8. The polynomial x + 2x + 2, on the other hand, is primitive. Denote one of its roots by α. Then, because the natural numbers less than and relatively prime to 3 − 1 = 8 are 1, 3, 5, and 7, the four primitive roots in GF(3) are α, α = 2α + 1, α = 2α, and α = α + 2. The primitive roots α and α are algebraically conjugate. Indeed x + 2x + 2 = (xα) (x − (2α + 1)). The remaining primitive roots α and α = (α) are also algebraically conjugate and produce the second primitive polynomial: x + x + 2 = (x − 2α) (x − (α + 2)).

For degree 3, GF(3) has φ(3 − 1) = φ(26) = 12 primitive elements. As each primitive polynomial of degree 3 has three roots, all necessarily primitive, there are 12 / 3 = 4 primitive polynomials of degree 3. One primitive polynomial is x + 2x + 1. Denoting one of its roots by γ, the algebraically conjugate elements are γ and γ. The other primitive polynomials are associated with algebraically conjugate sets built on other primitive elements γ with r relatively prime to 26:

x 3 + 2 x + 1 = ( x γ ) ( x γ 3 ) ( x γ 9 ) x 3 + 2 x 2 + x + 1 = ( x γ 5 ) ( x γ 5 3 ) ( x γ 5 9 ) = ( x γ 5 ) ( x γ 15 ) ( x γ 19 ) x 3 + x 2 + 2 x + 1 = ( x γ 7 ) ( x γ 7 3 ) ( x γ 7 9 ) = ( x γ 7 ) ( x γ 21 ) ( x γ 11 ) x 3 + 2 x 2 + 1 = ( x γ 17 ) ( x γ 17 3 ) ( x γ 17 9 ) = ( x γ 17 ) ( x γ 25 ) ( x γ 23 ) . {\displaystyle {\begin{aligned}x^{3}+2x+1&=(x-\gamma )(x-\gamma ^{3})(x-\gamma ^{9})\\x^{3}+2x^{2}+x+1&=(x-\gamma ^{5})(x-\gamma ^{5\cdot 3})(x-\gamma ^{5\cdot 9})=(x-\gamma ^{5})(x-\gamma ^{15})(x-\gamma ^{19})\\x^{3}+x^{2}+2x+1&=(x-\gamma ^{7})(x-\gamma ^{7\cdot 3})(x-\gamma ^{7\cdot 9})=(x-\gamma ^{7})(x-\gamma ^{21})(x-\gamma ^{11})\\x^{3}+2x^{2}+1&=(x-\gamma ^{17})(x-\gamma ^{17\cdot 3})(x-\gamma ^{17\cdot 9})=(x-\gamma ^{17})(x-\gamma ^{25})(x-\gamma ^{23}).\end{aligned}}}

Applications

Field element representation

Primitive polynomials can be used to represent the elements of a finite field. If α in GF(p) is a root of a primitive polynomial F(x), then the nonzero elements of GF(p) are represented as successive powers of α:

G F ( p m ) = { 0 , 1 = α 0 , α , α 2 , , α p m 2 } . {\displaystyle \mathrm {GF} (p^{m})=\{0,1=\alpha ^{0},\alpha ,\alpha ^{2},\ldots ,\alpha ^{p^{m}-2}\}.}

This allows an economical representation in a computer of the nonzero elements of the finite field, by representing an element by the corresponding exponent of α . {\displaystyle \alpha .} This representation makes multiplication easy, as it corresponds to addition of exponents modulo p m 1. {\displaystyle p^{m}-1.}

Pseudo-random bit generation

Primitive polynomials over GF(2), the field with two elements, can be used for pseudorandom bit generation. In fact, every linear-feedback shift register with maximum cycle length (which is 2 − 1, where n is the length of the linear-feedback shift register) may be built from a primitive polynomial.

In general, for a primitive polynomial of degree m over GF(2), this process will generate 2 − 1 pseudo-random bits before repeating the same sequence.

CRC codes

The cyclic redundancy check (CRC) is an error-detection code that operates by interpreting the message bitstring as the coefficients of a polynomial over GF(2) and dividing it by a fixed generator polynomial also over GF(2); see Mathematics of CRC. Primitive polynomials, or multiples of them, are sometimes a good choice for generator polynomials because they can reliably detect two bit errors that occur far apart in the message bitstring, up to a distance of 2 − 1 for a degree n primitive polynomial.

Primitive trinomials

A useful class of primitive polynomials is the primitive trinomials, those having only three nonzero terms: x + x + 1. Their simplicity makes for particularly small and fast linear-feedback shift registers. A number of results give techniques for locating and testing primitiveness of trinomials.

For polynomials over GF(2), where 2 − 1 is a Mersenne prime, a polynomial of degree r is primitive if and only if it is irreducible. (Given an irreducible polynomial, it is not primitive only if the period of x is a non-trivial factor of 2 − 1. Primes have no non-trivial factors.) Although the Mersenne Twister pseudo-random number generator does not use a trinomial, it does take advantage of this.

Richard Brent has been tabulating primitive trinomials of this form, such as x + x + 1. This can be used to create a pseudo-random number generator of the huge period 2 − 1 ≈ 3×10.

References

  1. Enumerations of primitive polynomials by degree over GF(2), GF(3), GF(5), GF(7), and GF(11) are given by sequences A011260, A027385, A027741, A027743, and A319166 in the Online Encyclopedia of Integer Sequences.
  2. C. Paar, J. Pelzl - Understanding Cryptography: A Textbook for Students and Practitioners
  3. Gentle, James E. (2003). Random number generation and Monte Carlo methods (2 ed.). New York: Springer. p. 39. ISBN 0-387-00178-6. OCLC 51534945.
  4. Zierler, Neal; Brillhart, John (December 1968). "On primitive trinomials (Mod 2)". Information and Control. 13 (6): 541, 548, 553. doi:10.1016/S0019-9958(68)90973-X.
  5. Brent, Richard P. (4 April 2016). "Search for Primitive Trinomials (mod 2)". Retrieved 25 May 2024.
  6. Brent, Richard P.; Zimmermann, Paul (24 May 2016). "Twelve new primitive binary trinomials". arXiv:1605.09213 .

External links

Categories: