Why Does Imply ?
At a glance
- 1. Check the prime
Assume p is an odd prime. The prime p = 2 is an exception because -1 is congruent to 1 modulo 2.
- 2. Raise to the Eighth Power
The congruence gives x^8 congruent to 1 modulo p, while x^4 is not congruent to 1.
- 3. Find the Order
Therefore x has multiplicative order 8 in the nonzero residues modulo p.
- 4. Use the Group Size
An element’s order divides p − 1, so 8 divides p − 1 and p is congruent to 1 modulo 8.
For an odd prime , the congruence forces . The key is to look at the multiplicative order of modulo . The prime needs separate treatment: modulo 2, , so the claimed implication does not hold.
Why the order of x is 8
Since is odd, and are distinct modulo . In particular, the assumption says is not congruent to modulo . Squaring the given congruence gives
The multiplicative order of modulo is the smallest positive integer for which . It exists here because . The order must divide 8, but it cannot divide 4: if it did, then would be congruent to 1, contrary to the assumption. The divisors of 8 are , and only 8 does not divide 4. Therefore .
This also shows is nonzero modulo , as required to belong to the multiplicative group of nonzero residues.
Why this forces p to be 1 modulo 8
The nonzero residues modulo a prime form a group with elements. By Lagrange’s theorem, the order of any element in a finite group divides the number of elements in that group. Since has order 8,
Thus is a multiple of 8, which is exactly the statement
An equivalent route is to use Fermat’s little theorem: for , . The order of divides every exponent that gives 1, including , so again .
Worked example: p = 17
Take and . Then
so the condition is satisfied. Also is divisible by 8, and , as the result predicts. The powers of 2 confirm that its order is 8: , hence , while no exponent dividing 4 gives 1.
For contrast, there can be no solution modulo 7. If there were, the argument above would imply , which is false.
Is the converse also true?
For odd primes, yes. If , then the nonzero residues modulo form a cyclic group of order . Let be a generator and set . Then
The last congruence follows because a generator raised to half the group’s order is the unique element of order 2, namely modulo an odd prime. Consequently, for odd primes, has a solution exactly when .
Common mistakes
- Forgetting . Modulo 2, , so satisfies the congruence even though . State that the prime is odd.
- Saying only that . This says the order divides 8, not that it equals 8. You also need , which rules out orders 1, 2, and 4.
- Applying Fermat’s theorem without checking . Here cannot be zero modulo an odd prime, since is not congruent to modulo .
If the modulus is an odd composite integer rather than a prime, the same conclusion still follows by reducing the congruence modulo each prime divisor: every prime divisor must be 1 modulo 8, so their product, including prime powers, is also 1 modulo 8. The group-order proof above is the standard direct argument for a prime modulus.
References
- A Classical Introduction to Modern Number Theory — Kenneth Ireland and Michael Rosen
Spotted an error? Send a correction. Read how we write and check articles in our editorial policy.