← LibraryGauss Sums and Jacobi SumsEngineering · MathematicsLesson 361/385← PrevNext →
ArticlePublished 7 Aug 20262 min readBy Kevin JoginGauss sumJacobi sumcharactercyclotomic

Modern Primality Tests

Gauss Sums and Jacobi Sums

Characters, Gauss sums and Jacobi sums, and the properties that make them useful for primality testing.

Engineering / MathematicsModern Primality Tests2 min readKV-MATH-0658

Gauss and Jacobi sums are character sums with precise absolute values and predictable transformation behaviour. Those properties are what the Jacobi sum primality test exploits.

Characters

Multiplicative character
A homomorphism from the unit group modulo a prime to the roots of unity.
Order of a character
The order of its image group. Characters of order two are the Legendre symbol.
Additive character
A homomorphism from the additive group to the roots of unity.

Characters modulo a prime are constructed from a primitive root: sending the primitive root to a chosen root of unity determines the character completely — see primitive roots.

Gauss sums

g(chi) = sum over x of chi(x) * zeta^xA sum over the residues, combining a multiplicative and an additive character.

Jacobi sums

J(chi, psi) = sum over x of chi(x) * psi(1-x)A product of two multiplicative characters; no additive character appears.
Gauss sums versus Jacobi sums
PropertyGauss sumJacobi sum
Lives inA cyclotomic field including p-th roots of unityA smaller cyclotomic field
Absolute valueSquare root of the modulusSquare root of the modulus, typically
Size of the fieldDegree grows with the modulusDegree depends only on the character orders

The relation

J(chi, psi) = g(chi) g(psi) / g(chi psi)When the product character is non-trivial.

This identity is how Jacobi sums inherit their absolute value from Gauss sums while living in the smaller field.

Computation

Use in primality testing

The test checks whether the candidate satisfies the congruences that a prime must satisfy with respect to these sums. See the test structure.

Source. Henri Cohen, A Course in Computational Algebraic Number Theory, Springer GTM 138 — 9.1.2. Structural reference unverified: the source file was not available during authoring; chapter and section numbers are taken from the published edition and have not been checked against a physical copy.

Continue learning

The Modern Primality Testing LandscapeArticle · MathematicsNEXT LESSON →Structure of the Jacobi Sum Primality TestArticle · MathematicsShanks's Square Forms Factorisation (SQUFOF)Article · MathematicsChecking the Condition C_pArticle · Mathematics