The binomial theorem isolates the only terms that can survive reduction modulo the prime number :
For , neither nor is divisible by , whereas is. Consequently , and every intermediate term vanishes in modular arithmetic. Thus
This works for arbitrary integers , including those divisible by . It is the additive identity behind the Frobenius endomorphism in characteristic .
For an odd prime number , Euler's criterion states that
where the Legendre symbol is zero if , one if is a nonzero quadratic residue, and minus one otherwise. Including the zero case makes this formulation valid for every integer .
Apply Euler's criterion to , , and . Multiplication in modular arithmetic gives
If divides either factor, both sides are zero. Otherwise both sides belong to ; these two values are distinct modulo the odd prime number . The congruence is therefore an equality of integers, proving multiplicativity of the Legendre symbol:
For distinct odd prime numbers , the law of quadratic reciprocity is
Thus the two Legendre symbols agree unless both prime numbers are congruent to modulo , in which case they have opposite signs.
In Pollard's p-1 algorithm, a large exponent containing many small factors makes divisible by a prime factor whose predecessor divides , by Fermat's little theorem. A greatest common divisor with the number being factored can then separate that prime factor from the others.
Choose base and build factorial exponents using modular exponentiation. The successive exponents , , and give
The first two greatest common divisors are . At the next step the Euclidean algorithm gives
Hence
Here the element order of modulo is , which divides , even though does not divide . The algorithm only needs the element order to divide the chosen exponent; divisibility by the full predecessor is a sufficient condition, not a necessary one.
First simplify the specified residue by modular exponentiation. Modulo the prime number ,
Therefore , so the required equation becomes . Its right side is nonzero, so any solution is a unit modulo .
By Fermat's little theorem, exponents of such units can be reduced modulo . Since
raising to the th power is the inverse of raising to the th power. There is therefore exactly one residue class of solutions:
Now and . Since , we obtain
As a direct check, , , , and , whence .

Articles by others on the same topic (0)

There are currently no matching articles.