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. ThusThis 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 thatwhere 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 givesIf 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 isThus 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 giveThe first two greatest common divisors are . At the next step the Euclidean algorithm givesHenceHere 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 .
Articles by others on the same topic
There are currently no matching articles.