Why Is the Legendre Symbol (3/p) Determined by p Modulo 12?
At a glance
- 1. Assume p is prime
For a prime p greater than 3, its residue modulo 12 is 1, 5, 7, or 11.
- 2. Apply reciprocity
Quadratic reciprocity expresses (3/p) using (p/3) and a sign determined by p modulo 4.
- 3. Evaluate the cases
Combine the residues modulo 3 and modulo 4 to get the sign for each of the four classes.
- 4. Check with examples
For instance, 13 gives symbol 1, while 17 gives symbol −1.
Assume throughout that is a prime. The notation is the Legendre symbol: it is if 3 is a nonzero square modulo , and if 3 is not a square modulo . The claim follows directly from the quadratic reciprocity law, together with the possible prime residues modulo 12.
Why only four residue classes occur
Every prime greater than 3 is odd and is not divisible by 3. Its residue modulo 12 must therefore be relatively prime to 12. The possibilities are
It remains to evaluate the Legendre symbol in these four cases.
Apply quadratic reciprocity
For distinct odd primes and , quadratic reciprocity states
Take and . Since , this becomes
The symbol is easy to determine: the nonzero squares modulo 3 consist only of 1. Consequently,
The other factor depends on whether is 1 or 3 modulo 4:
So the answer is the product of two signs: one determined by modulo 3 and one determined by modulo 4.
Evaluate the four cases
| modulo 12 | modulo 4 | modulo 3 | |||
|---|---|---|---|---|---|
| 1 | 1 | 1 | 1 | 1 | 1 |
| 5 | 1 | 2 | 1 | ||
| 7 | 3 | 1 | 1 | ||
| 11 | 3 | 2 | 1 |
For example, if , then and . The reciprocity sign is , while , so . If , both factors are , and their product is .
This proves the stated result:
Equivalently, among primes greater than 3, the congruence is a square modulo exactly when .
Worked checks
Take . Since , the formula predicts . Indeed, , so 3 is a square modulo 13.
Take . Since , the formula predicts . The reciprocity calculation gives the same result: , so the sign factor is 1, and , so . Their product is .
Common mistakes
- Forgetting that must be prime. The Legendre symbol is defined here for an odd prime denominator. The statement is not a claim about every integer .
- Using only the residue modulo 3. Quadratic reciprocity also contributes the sign , which depends on modulo 4. Ignoring it gives the wrong answer for classes such as .
- Including . Reciprocity in this form uses distinct primes, and the Legendre symbol is 0, not 1 or . The condition excludes this case.
- Confusing a Legendre symbol with a congruence. A value of 1 means that some integer satisfies ; it does not mean that 3 itself is congruent to a square as an ordinary integer.
References
- Kenneth Ireland and Michael Rosen, A Classical Introduction to Modern Number Theory
- Ivan Niven, Herbert S. Zuckerman, and Hugh L. Montgomery, An Introduction to the Theory of Numbers
Spotted an error? Send a correction. Read how we write and check articles in our editorial policy.