Jacobi symbol

from Wikipedia, the free encyclopedia

The Jacobi symbol , named after Carl Gustav Jacob Jacobi , is a generalization of the Legendre symbol . The Jacobi symbol can in turn be generalized to the Kronecker symbol . The notation is the same as that of the Legendre symbol :

or

To distinguish between the Legendre symbol and the Jacobi symbol, one also writes and .

In contrast to the Legendre symbol, it does not have to be a prime number, but it has to be an odd number greater than 1. For both the Jacobi symbol and the Legendre symbol, all integers are permitted.

n is a prime number

If is a prime number, the Jacobi symbol is by definition equal to the Legendre symbol:

n is not a prime number

If the prime factorization of , then one defines

Example:

Caution: If it is not a prime number, the Jacobi symbol does not indicate whether a quadratic remainder is modulo (as with the Legendre symbol). A necessary condition for a quadratic remainder to be modulo , however, is that the Jacobi symbol is not equal .

general definition

In general, the Jacobi symbol is defined by a character in the group :

It has the following function:

is any half-system modulo , since the value of does not depend on the choice of the half-system. denotes the correction factor of and with respect to :

An alternative definition is provided by Zolotareff's lemma , according to which the Jacobi symbol is equal to the sign of a special permutation .

Closed representation

The following formula is a closed representation of the value of the Jacobi symbol:

However, this formula is not very suitable for effective calculation, as it quickly shows a large number of factors for larger ones.

Efficient calculation of the Jacobi symbol

In most cases in which the calculation of the Jacobi symbol is required, as in the Solovay-Strassen test , there is no prime factorization of the number in , so that the Jacobi symbol cannot be traced back to the Legendre symbol. In addition, the closed representation given above is not efficient enough for larger ones .

However, there are a few calculation rules that can be used to determine efficiently. These rules result, among other things, from the quadratic reciprocity law , which is also valid for the Jacobi symbol.

The most important principle is the following: For all odd whole numbers greater than 1 the following applies:

This rule is the quadratic reciprocity law for the Jacobi symbol. With their help, as well as a few other calculation rules, it can be determined for everyone with relatively little effort, which is comparable to that of the Euclidean algorithm for determining the greatest common divisor. The calculation rules that are additionally required are the following:

The above rule follows from the definition of the Jacobi symbol about the character . The numerator of the Jacobi symbol is only a representative of the group ; therefore it doesn't matter which representative you choose.

  • (Multiplicativity in numerator)
  • (Multiplicativity in the denominator)

The following is to be determined as an example :

Since you can freely choose the representative in the counter, this is the same

Since 2 to 127 is relatively prime , J (2, 127) is certainly not 0 and therefore J (2, 127) 2 = 1. So this factor is omitted and we get:

There is a closed formula for the 2 in the numerator, so you finally get:

Algorithm - calculation of the Jacobi symbol

1 input
2 while do
3 Calculate
4th if then
5
6th if then
7th
8th divide with remainder by where
9
10 else
11
12 output

literature