Harman Patil (Editor)

Zech's logarithm

Updated on
Edit
Like
Comment
Share on FacebookTweet on TwitterShare on LinkedInShare on Reddit

Zech logarithms are used to implement addition in finite fields when elements are represented as powers of a generator α .

Contents

Zech logarithms are named after Julius Zech, and are also called Jacobi logarithms, after C. G. J. Jacobi who used them for number theoretic investigations (C. G. J. Jacoby, "Über die Kreistheilung und ihre Anwendung auf die Zahlentheorie", in Gesammelte Werke, Vol.6, pp. 254–274).

Definition

If α is a primitive element of a finite field, then the Zech logarithm relative to the base α is defined by the equation

Z α ( n ) = log α ( 1 + α n ) ,

or equivalently by

α Z α ( n ) = 1 + α n .

The choice of base α is usually dropped from the notation when it's clear from context.

To be more precise, Z α is a function on the integers modulo the multiplicative order of α , and takes values in the same set. In order to describe every element, it is convenient to formally add a new symbol , along with the definitions

α = 0 n + ( ) = Z α ( ) = 0 Z α ( e ) =

where e is an integer satisfying α e = 1 , that is e = 0 for a field of characteristic 2, and e = q 1 2 for a field of odd characteristic with q elements.

Using the Zech logarithm, finite field arithmetic can be done in the exponential representation:

α m + α n = α m ( 1 + α n m ) = α m α Z ( n m ) = α m + Z ( n m ) α n = ( 1 ) α n = α e α n = α e + n α m α n = α m + ( α n ) = α m + Z ( e + n m ) α m α n = α m + n ( α m ) 1 = α m α m / α n = α m ( α n ) 1 = α m n

These formulas remain true with our conventions with the symbol , with the caveat that subtraction of is undefined. In particular, the addition and subtraction formulas need to treat m = as a special case.

This can be extended to arithmetic of the projective line by introducing another symbol + satisfying α + = and other rules as appropriate.

Notice that for fields of characteristic two,

Z α ( n ) = m Z α ( m ) = n .

Uses

For sufficiently small finite fields, a table of Zech logarithms allows an especially efficient implementation of all finite field arithmetic in terms of a small number of integer addition/subtractions and table look-ups.

The utility of this method diminishes for large fields where one cannot efficiently store the table. This method is also inefficient when doing very few operations in the finite field, because one spends more time computing the table than one does in actual calculation.

Examples

Let α ∈ GF(23) be a root of the primitive polynomial x3 + x2 + 1. The traditional representation of elements of this field is as polynomials in α of degree 2 or less.

A table of Zech logarithms for this field are Z(−∞) = 0, Z(0) = −∞, Z(1) = 5, Z(2) = 3, Z(3) = 2, Z(4) = 6, Z(5) = 1, and Z(6) = 4. The multiplicative order of α is 7, so the exponential representation works with integers modulo 7.

Since α is a root of x3 + x2 + 1 then that means α3 + α2 + 1 = 0, or if we recall that since all coefficients are in GF(2), subtraction is the same as addition, we obtain α3 = α2 + 1.

The conversion from exponential to polynomial representations is given by

α 3 = α 2 + 1 (as shown above) α 4 = α 3 α = ( α 2 + 1 ) α = α 3 + α = α 2 + α + 1 α 5 = α 4 α = ( α 2 + α + 1 ) α = α 3 + α 2 + α = α 2 + 1 + α 2 + α = α + 1 α 6 = α 5 α = ( α + 1 ) α = α 2 + α

Using Zech logarithms to compute α6 + α3:

α 6 + α 3 = α 6 + Z ( 3 ) = α 6 + Z ( 4 ) = α 6 + 6 = α 12 = α 5 ,

or, more efficiently,

α 6 + α 3 = α 3 + Z ( 3 ) = α 3 + 2 = α 5 ,

and verifying it in the polynomial representation:

α 6 + α 3 = ( α 2 + α ) + ( α 2 + 1 ) = α + 1 = α 5 .

References

Zech's logarithm Wikipedia