Gauss and Jacobi character sum calculator modulo a prime

Your numbers

Use an integer within the calculator’s stated finite bounds.
Its powers must generate every nonzero residue; the calculator verifies this rather than assuming it.
Exponent a defines χ(g^j)=exp(2πiaj/(p−1)); zero denotes the trivial character on nonzero residues.
Uses the same primitive root and positive-root convention as the first character.

Calculated on your device. Your inputs aren’t sent to us.

Your result

Ready when you are

Enter your inputs and select Calculate.

QuickCalculators · Full calculator and methodology ↗