Least quadratic non-residue is below 2 (ln p)^2

Unlocked AI-classified Analytic number theory

Not yet human-checked. Classified by an AI system from its reading of the literature. No human expert has checked this entry yet. Treat the status as a draft, not as settled.

Statement

For every odd prime p, the smallest positive integer that is not a square modulo p is less than 2 (ln p)^2. More generally, every proper subgroup of the multiplicative group modulo m omits some positive integer below 2 (ln m)^2.

np<2(ln⁡p)2,np=min⁡{ n≥1:n is not a square modulo p }n_p < 2(\ln p)^2, \qquad n_p = \min\{\, n \ge 1 : n \text{ is not a square modulo } p \,\}

What it needs

  • GRH-Dirichlet GRH for Dirichlet L-functions Covered by the claim

    Every non-trivial zero of every Dirichlet L-function has real part 1/2. Dirichlet L-functions are built from characters of the integers modulo q and control how primes are distributed among residue classes.

Status and why

Unlocked

Every hypothesis this result needs is covered by the announced proof. It follows from that proof, and stands or falls with it.

Every hypothesis listed above (GRH-Dirichlet) is covered by the announced proof.

Note. Ankeny proved O((log p)^2). Bach gave the constant 2. Lamzouri, Li and Soundararajan later improved it to (log q)^2 for prime q at least 5.

Sources

  1. Conditional proof N. C. Ankeny (1952). The least quadratic non residue. Ann. of Math. 55, 65-72. doi:10.2307/1969420
    Where the hypothesis is invoked: not yet recorded.
  2. Refinement E. Bach (1990). Explicit bounds for primality testing and related problems. Math. Comp. 55, 355-380. doi:10.1090/S0025-5718-1990-1023756-8
    Hypothesis used at: Theorem 2
  3. Refinement Y. Lamzouri, X. Li, K. Soundararajan (2015). Conditional bounds for the least quadratic non-residue and related problems. Math. Comp. 84, 2391-2412. doi:10.1090/S0025-5718-2015-02925-1
    Hypothesis used at: Corollary 1.1

Review

Review state
AI-classified Classified by an AI system from its reading of the literature. No human expert has checked this entry yet. Treat the status as a draft, not as settled.
Confidence
high
Lean
Not formalized yet.
Added
21 November 2026

Open questions

  • Bach's Theorem 2 and Corollary 1.1 of Lamzouri, Li and Soundararajan were read. Ankeny's 1952 paper was not.

Suggest a correction I checked this entry

Used by

These entries use this result as an ingredient.

Related entries

quadratic-residues explicit-bounds