Put . The odd integer is an Euler pseudoprime to the coprime base when
where is the Jacobi symbol.
Let be the unit group of residue classes modulo , and partition it into the set of bases satisfying the displayed congruence and the set of Euler witnesses that do not. If , multiplication by maps injectively into : indeed, if and also lay in , then the multiplicativity of the Jacobi symbol would give
Cancelling the invertible congruence for would say that , a contradiction. Hence , so at least half of the coprime bases are witnesses.
It remains to construct one witness for every odd composite number . If is not squarefree, choose an odd prime number with . The Chinese remainder theorem gives a unit such that for the full power and modulo every other prime-power factor. The binomial theorem gives
Since , this is neither nor modulo , whereas the Jacobi symbol is always or . Thus is a witness.
If is squarefree and composite, choose distinct primes . By the Chinese remainder theorem, choose to be a quadratic nonresidue modulo and to satisfy modulo every other prime divisor of . Then , while , so the Euler congruence again fails. This proves the existence of an Euler witness for every odd composite integer.
If , both Jacobi symbols vanish, so the formula holds. Otherwise write and , retaining repeated factors. Multiplicativity of the Jacobi symbol and quadratic reciprocity give
The exponent is
by the parity identity from part (i). The product of the reversed Legendre symbols is . Thus the Jacobi reciprocity law is
This also covers or by empty products.
Choose a nonzero quadratic nonresidue . There is one because the squaring map on is two-to-one, so exactly half its elements are squares. The moduli are pairwise coprime, so the Chinese remainder theorem gives a positive integer satisfying
When , the last condition is vacuous. In particular is odd and coprime to . Since , Jacobi reciprocity gives
As is odd, multiplicativity of the Jacobi symbol now yields
Here is odd and nonzero. Choose . This is a positive odd integer, , and . By multiplicativity of the Jacobi symbol,
The coprimality condition ensures that the squared Jacobi symbol is rather than .
Write , , counting repetitions. Since are coprime, every pair consists of distinct odd prime numbers. Quadratic reciprocity for the Legendre symbol gives
Multiplying over all and using multiplicativity of the Jacobi symbol yields the sign exponent
by the odd-product parity identity proved in (b)(i). Thus the Jacobi reciprocity law is
If either integer is , its factorization is empty and both sides equal .