proofquadratic-reciprocity

Main Law

For distinct odd primes and ,

Proof

Try to count

Theorem (Stronger)

For , is independent of and in fact is .

Proof

Observe that . So using this,

Why is it ?

Let , So Note that all have same value. Thus

Note: , so if then .

  • So if () then the only solution to is . Then .
  • If , write . Then . Therefore, , so .
Remark

Knowing , on LHS, most solutions come in packets of size 8: which are distinct unless , , or . By counting we can derive formula for see Thm 3.1 .