Jacobi symbol

The Jacobi symbol (a/n) is a multiplicative function of an integer numerator and an odd positive denominator, defined by multiplying Legendre symbols according to the prime factors of the denominator. It generalizes the Legendre symbol, but a value of 1 does not always mean the numerator is a quadratic residue modulo the denominator.

Connect