Bounded exceptional primes for least quadratic nonresidues Created 2026-10-06 Updated 2026-10-14
If, for every , the smooth numbers up to with all prime factors at most have density at least , then for fixed there are only primes with . Apply the variance form of the large sieve to the indicator function of the -smooth numbers up to . For every exceptional prime, all these numbers are nonzero quadratic residues, so half its nonzero residue classes are empty. Their variance contribution is at least one third of the square of the total count. The large sieve bounds the sum of contributions by a constant times times that count. The density assumption with finishes the argument.
Complete Legendre-symbol sum Created 2026-09-29 Updated 2026-11-05
For an odd prime , the complete sum of the Legendre symbol is
Choose a quadratic nonresidue . Multiplication by permutes the finite field , while multiplicativity of the Legendre symbol gives . The sum is therefore equal to its own negative, and is zero. Equivalently, among the nonzero residue classes, exactly half are quadratic residues and half are quadratic nonresidues; the zero term contributes zero.
Computing Legendre symbols by quadratic reciprocity Created 2026-10-14 Updated 2026-10-31
The practical reward of quadratic reciprocity is a smaller modulus: swap a pair of distinct odd primes, record the required sign, then reduce the numerator by modular arithmetic. Use multiplicativity of the Legendre symbol and the second supplementary law for quadratic reciprocity to handle a factor of two. For example,
Here are both modulo , so the first swap changes sign; gives ; the swap involving five has no sign change. An independent square check is . The method determines existence of a square root without itself finding that root.
A composite numerator is allowed in a Legendre symbol; a composite denominator instead calls for a Jacobi symbol. Its Jacobi reciprocity law supports repeated swaps and remainder reductions, in the spirit of the Euclidean algorithm.[ref]
A final Jacobi symbol of one is not a square-existence certificate for a composite number modulus. For example,
yet is impossible: reducing it modulo three would require a square congruent to two, and squares modulo three are only zero or one. The product has hidden two local failures. By contrast, for a prime denominator, a Legendre symbol of one does certify a quadratic residue.
Cube roots of minus one modulo an odd prime Created 2026-09-24 Updated 2026-11-05
The factorization
shows that always has as a solution. For , it has two further solutions exactly when is a quadratic residue; for , all three factors coalesce at the unique root .
Let be an odd prime and let be integers with . The quadratic congruence
has a solution exactly when its discriminant is zero or a quadratic residue modulo .
Indeed, completing the square gives the equivalent equation
Multiplication by and translation by give a bijection of the residue classes, because is invertible modulo . Each square root of therefore gives exactly one solution .
Consequently the number of distinct solutions is , using the Legendre symbol: one for zero discriminant, two for a nonzero quadratic residue, and none for a quadratic nonresidue. The hypotheses matter: if the equation can become linear, while at division by is unavailable.
Euler's criterion Created 2026-09-24 Updated 2026-10-18
For an odd prime and , Euler's criterion identifies the Legendre symbol by modular exponentiation:
Thus a quadratic residue gives one and a quadratic nonresidue gives minus one, represented by if a nonnegative remainder is used. The formula also holds when , because and both sides are zero modulo .[ref]
For example, modulo seven the exponent is three: confirms that two is a quadratic residue, while confirms that three is a quadratic nonresidue. Modulo eleven the exponent is five, and confirms that two is a quadratic nonresidue. The test answers whether a square root exists; it does not itself return the roots of .
A short proof needs only Fermat's little theorem and the root bound for a polynomial. Put . If in the prime field, then . There are already such quadratic residues. The nonzero polynomial has polynomial degree , so it has no other polynomial roots. Finally, for every nonzero , Fermat's little theorem gives . Factoring in the field shows ; every quadratic nonresidue must take the remaining value . This proves the criterion without first finding a primitive root.
For a larger original example, decide whether seven is a quadratic residue modulo the prime number . Exponentiation by squaring computes the required power without listing fifty squares:
Therefore and has no solution. Each intermediate product is reduced modulo , as in modular exponentiation. The advantage is that exponentiation by squaring uses a number of multiplications proportional to the binary digit length of the exponent rather than testing every potential square root.
The odd prime hypothesis is essential. For the composite modulus nine, , which is neither one nor minus one. Although four is a nonzero square modulo nine, , so even the square-to-one implication fails. The Jacobi symbol and Euler pseudoprime discuss different questions for odd composite moduli; they do not make this a universal square test.
Fibonacci primitive root Created 2026-10-20 Updated 2026-11-05
A Fibonacci primitive root modulo an odd prime is a primitive root modulo n satisfying . Its powers obey , so the same multiplication that generates all nonzero residues also follows a Fibonacci recurrence.
For example, works modulo five: and its powers exhaust the nonzero residues. Solving the quadratic condition alone is insufficient; the multiplicative order must also equal . Away from , the quadratic has roots only when its discriminant five is a quadratic residue modulo .
First supplementary law for quadratic reciprocity Created 2026-09-24 Updated 2026-11-05
For an odd prime , the Legendre symbol satisfies
Consequently, is a quadratic residue modulo exactly when .
By Euler's criterion, the Legendre symbol is congruent modulo to . Both sides are either or , and these are distinct modulo an odd prime, so the congruence gives equality. Finally, is even precisely for . For example, , whereas no square is modulo .
Jacobi reciprocity law Created 2026-10-14 Updated 2026-11-05
For coprime positive odd integers , the Jacobi symbol satisfies . It follows by factoring and into primes and multiplying the quadratic reciprocity for each prime pair; the parity of the sums of prime half-differences agrees with and . A Jacobi symbol equal to one does not imply that its numerator is a quadratic residue for a composite denominator.
Jacobi symbol Created 2026-09-24 Updated 2026-11-05
For an odd positive integer , the Jacobi symbol is the product of Legendre symbols
The fundamental theorem of arithmetic makes this definition unambiguous. Its value is zero exactly when and have a common prime factor; otherwise it is or . For , the empty product convention gives .
If is a quadratic residue modulo and is coprime to , its Jacobi symbol is one. The converse can fail for a composite number: , but two is not a square modulo fifteen because it is not a square modulo three.
Computing the Jacobi symbol does not require first finding the prime factorization. Repeatedly remove factors of two, swap odd numerator and denominator using Jacobi reciprocity, and reduce the numerator modulo the denominator, as in the Euclidean algorithm. This makes it useful in the Solovay-Strassen primality test.
On a dyadic interval , every such exceptional prime makes all -smooth integers quadratic residues. By positive density of power-smooth integers, there are of these integers up to . Apply the variance form of the large sieve or its forbidden-residue consequence with interval length and prime cutoff . Each exceptional prime excludes residue classes and contributes at least a fixed positive amount to the sieve denominator. Hence each dyadic interval contains exceptional primes. Summing the intervals gives the logarithmic bound.
// Target: analytic-number-theory.bigb
Least quadratic nonresidue Created 2026-10-06 Updated 2026-11-05
For an odd prime , the least quadratic nonresidue is the smallest positive integer whose nonzero residue class is a quadratic nonresidue modulo . For example, the nonzero quadratic residues modulo seven are , so .
The least quadratic nonresidue is itself a prime number. Otherwise it has a factorization with . By minimality, both residue classes are quadratic residues, so and would give , a contradiction. This illustrates why multiplicative information can constrain a least exceptional integer.
Legendre symbol Created 2026-09-24 Updated 2026-10-18
For an integer and an odd prime , the Legendre symbol is the integer valued function
Its value depends only on the congruence class of modulo ; the displayed notation is a symbol, not division. The value zero handles separately from quadratic residues and quadratic nonresidues.[ref]
For example, , , , and . The equality illustrates that choosing a different integer representative does not change the answer. An arbitrary odd composite denominator uses the Jacobi symbol, not the Legendre symbol. For instance,
but two is not a square modulo fifteen: any such square root would also give a square root modulo three, where the only nonzero square is one. A Jacobi symbol of one therefore cannot replace the Legendre symbol's square test.
The Legendre symbol also counts square roots compactly. For every congruence class in the prime field ,
The three cases give two, one and zero solutions for a quadratic residue, zero and a quadratic nonresidue, respectively. This is useful when counting solutions of modular congruences involving polynomials: a solvability question becomes a sum of Legendre symbols, as in the complete Legendre-symbol sum and quadratic Legendre-symbol correlation.
For a prime number , let be the sum of the least positive quadratic residues below . Then
For example, at the relevant quadratic residues are , and their sum is .
To prove the identity, put , let be the sum of all least positive nonzero quadratic residues, and let count those above . The second supplementary law for quadratic reciprocity gives , so doubling permutes these residue classes. Reducing each doubled representative modulo subtracts exactly times. Hence , or .
Since , the first supplementary law for quadratic reciprocity says is a quadratic nonresidue. Exactly one of is therefore a quadratic residue for each . The lower-half choices sum to ; the upper-half choices sum to . Consequently
Substituting gives . Both congruence conditions have a role: one makes doubling a permutation, and the other makes each opposite pair contain exactly one quadratic residue.
Modular square root Created 2026-10-20 Updated 2026-11-05
A modular square root of a residue modulo is a residue with . Such a root need not exist or be unique. Modulo seven, has the two roots , while has none.
For an odd prime , each nonzero quadratic residue has exactly two roots, and , because has at most two roots in a field. A composite modulus can have more: has four roots modulo eight. For coprime factors of , the Chinese remainder theorem combines local roots into all roots modulo .
Multiplicativity of the Legendre symbol Created 2026-09-29 Updated 2026-10-18
For an odd prime and any integers , the Legendre symbol obeys
In particular, if , then , where is a modular multiplicative inverse. Multiplication by a nonzero square also leaves the Legendre symbol unchanged: for .[ref]
The subgroup and coset arguments under quadratic residue and quadratic nonresidue prove the sign rule without computing a large power: square times square is square, square times nonsquare is nonsquare, and nonsquare times nonsquare is square. If either factor is zero modulo , both sides of the identity vanish. On , the Legendre symbol is thus a group homomorphism to whose kernel of a group homomorphism is the quadratic residue subgroup. Viewed on all integers, it is a completely multiplicative function and a Dirichlet character modulo .
Figure 1.
Products modulo seven: the Legendre symbol reduces a six-by-six table to sign multiplication
. Rows and columns put quadratic residues before quadratic nonresidues . Every cell displays the product modulo seven and its Legendre symbol. The four blocks have signs , showing the subgroup and its other coset. Details.
For an original calculation, factor the numerator . Modulo seven, , agreeing with . Modulo eleven, the signs are instead , giving , agreeing with . The same factorization can therefore certify different square behavior at different prime numbers.
Alternatively, Euler's criterion gives modulo . For nonzero factors both sides correspond to signs in . Since is odd, these signs are distinct modulo , so the modular congruence proves the asserted equality of integers, not merely an equality of representatives.
Noncongruent primes congruent to three modulo eight Created 2026-10-05 Updated 2026-10-06
For a prime , apply two-isogeny descent to the congruent number elliptic curve and its companion . The first square-class image is exactly , already supplied by 2-torsion. The second has only positive candidates . The quartic covering in a two-isogeny descent equations for and are impossible modulo , because is not a quadratic residue. For the equation is . Coprimality forces odd and ; modulo sixteen this gives , which is impossible. Thus the second image is trivial and the square-class index formula for two-isogeny descent gives rank zero. The same prime-reduction argument bounds its rational torsion by four, and it already has four rational 2-torsion points, so it has no rational point corresponding to a right triangle of area .
For an odd prime , the number of integers such that both and are quadratic residues modulo is
For example, modulo the quadratic residues are . The qualifying pairs are and , giving .
Write for the Legendre symbol. On the specified range neither input is zero, so the indicator of the required event is . Expand and sum. The complete Legendre-symbol sum gives
The quadratic Legendre-symbol correlation gives : extending to the full finite field only adds the zero terms at . Thus the count is . The first supplementary law for quadratic reciprocity identifies and completes the formula.
If a squarefree positive has a prime divisor , a unit of norm in would give for integers . Modulo this makes a quadratic residue, which is impossible. The obstruction is sufficient, not a full criterion for negative-norm units.
Complete the square-class map at the identity by ; at the finite point its value is the class of . For another rational point write
These denominator powers follow because a negative valuation of forces the leading cubic term to dominate, so that valuation is even and the valuation of is three halves of it. The equation gives
If a prime divides , it does not divide the second factor, since . Thus is even. All denominator valuations are even too. Every image class therefore has a representative which is a signed squarefree divisor of , proving that is finite.
Use the standard 2-isogeny with kernel and dual isogeny satisfying , . Away from the exceptional points one may take
Applying the analogous isogeny to gives a curve with coefficients ; scaling its coordinates by gives the dual map back to . The analogous descent map on has kernel and finite image. The sequence
is exact at the last two terms. Its outside groups are finite, identified with the two finite descent images, so is finite.
For , the rational 2-torsion is , of order four. The first descent image is exactly : these classes occur on the 2-torsion, and the divisor-support bound permits no others. The isogenous curve is . Its real points have , so the second image lies in the four positive classes .
Here the kernel of the dual is contained in , since . Thus the displayed map is injective, and exactness gives
The allowed rank formula makes the left side , so
Now consider the quartic relation. Normalize a nontrivial integer solution so that does not divide both , by dividing them by and by whenever necessary. If , reduction modulo gives , with modulo , making a quadratic residue. If , then and ; write , , divide by , and reduce to get modulo . Again is a square. Therefore
If the class occurred in , write the corresponding coordinate as . The curve equation then gives
Here are nonzero coprime integers and is rational. Since is an integer, its reduced denominator must be one, so is an integer too. For this contradicts the quartic obstruction. Hence class is absent. A subgroup of omitting has order at most two, so and .
For , direct substitution verifies the nonintegral point
A rational torsion point would have integral coordinates by the preceding theorem, so this point has infinite order. Thus , and together with the upper bound,