Lattice-point count for quadratic reciprocity

ID: lattice-point-count-for-quadratic-reciprocity

A short proof outline connects Gauss's lemma to counting points with integer coordinates. For distinct odd primes , define the two floor function sums
The parity form of Gauss's lemma gives and . In the open rectangle , , the line separates points below it from points above it. None lies on the line, because and coprimality would force . The total is therefore . Combining that count with the parity identities gives quadratic reciprocity.[ref]
Figure 1.
A line partitions the integer coordinate points behind the quadratic reciprocity exponent
. For , the counts are ; for , they are . Dashed edges mark the excluded boundary of the rectangle. This illustrates the counting step; the separate parity step from Gauss's lemma is essential to relate the count to Legendre symbols. Details.

New to topics? Read the docs here!