For odd , let be a nonsingular cubic Weierstrass equation of an elliptic curve over . Its Trace of Frobenius is , where is the Legendre symbol extended by . By the Euler criterion, reduce this sum to . The sum of a positive power over is zero unless divides , when it is . Since the polynomial has degree , only its coefficient contributes.
For , the displayed integral equation has nonzero elliptic-curve discriminant modulo , so it has good reduction. Let be the Legendre symbol, with . Counting the two, one, or zero possible ordinates over each gives
If , then and the terms for and cancel. The term at zero vanishes. Thus the count is .
For the converse, suppose , and put . The Euler criterion and the sum of powers over a finite field show that the Trace of Frobenius satisfies
Indeed, among the positive exponents in this polynomial, of degree , only has a nonzero sum over , and that sum is . Since , the coefficient formula for trace of Frobenius modulo p yields
Neither nor the binomial coefficient vanishes modulo . Hence , proving the point-count criterion for y squared equals x cubed plus k x:
We use the following formal logarithm fact, also useful for the next part. For a formal group law over , its logarithm has coefficients with , obtained by integrating its integral invariant differential. If is odd and , every term of degree has valuation strictly greater than , since . Thus the logarithm converges and is nonzero at . Its homomorphism into the additive characteristic-zero group proves torsion-freeness of the formal group over Qp for odd p. Consequently reduction injects the entire rational torsion subgroup at any odd prime of good reduction, including its -primary torsion. In particular the torsion subgroup is finite, and its order divides at every good .
By the Dirichlet theorem on primes in arithmetic progressions, choose a good prime . Then , bounding the two-primary part by four. For any odd prime dividing the torsion order, the Chinese remainder theorem and the Dirichlet theorem on primes in arithmetic progressions give a good prime with and , avoiding the finitely many primes dividing . But then , a contradiction. Therefore
The order four does occur. For , the elliptic-curve addition formula gives , so has order four. More precisely, the only nonzero rational 2-torsion point when is , so order four means a cyclic group with a rational half of this point. The duplication formula is
Such a half must have . Writing , positivity of forces . Then , so is a rational square, equivalently for an integer . Conversely is a half of when . The rational torsion on y squared equals x cubed plus positive k x is therefore cyclic of order four exactly for these , and otherwise cyclic of order two.
For an odd prime , the Legendre symbol is
Euler criterion states that
The Gauss lemma says that, for , if of the least positive residues of
lie in , then
To prove it, replace every residue above by its negative. The resulting absolute residues are distinct up to sign and therefore form a permutation of
Multiplying the congruences gives
Cancel the nonzero factorial and apply Euler's criterion.
For , the residues are . The number above is
whose parity gives the second supplementary law for quadratic reciprocity
Consequently, for odd primes,
The congruence is also soluble for .
For an odd prime , the Legendre symbol is
Euler criterion states that
If , both sides vanish. Otherwise choose a primitive root and write . Since ,
The power is a square exactly when is even, proving the criterion. Taking gives the first supplementary law for quadratic reciprocity
Because and commute, the matrix binomial theorem gives
For prime , every intermediate coefficient is divisible by , proving the prime-power binomial congruence for a matrix
For
one has and . If , then
so . If , then and
so .
By Euler criterion, . In either case the preceding congruence gives . Since has the same parity as for , this is the second supplementary law for quadratic reciprocity
By Euler criterion,
Choose a primitive root . For any integer not divisible by ,
For , the exponent satisfies . Therefore
Together with part (i), this is the weighted complete Legendre-symbol sum.