Error term n^(5/2+epsilon) for counting lattice pairs with given gcd in a square grid

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 integers n, q >= 1 let f_q(n) be the sum of (n - |i|)(n - |j|) over integers i, j with |i|, |j| < n and gcd(i, j) = q. Then f_q(n) = 6 n^4 / (pi^2 q^2) + O(n^(5/2 + epsilon)) for every epsilon > 0. Since f_q(n)/2 is the number of line segments whose endpoints and exactly q - 1 interior points lie in the n by n square grid, that number is 3 n^4 / (pi^2 q^2) + O(n^(5/2 + epsilon)).

fq(n):=∑−n<i,j<ngcd⁡(i,j)=q(n−∣i∣)(n−∣j∣)=6n4π2q2+O ⁣(n5/2+ε)f_q(n) := \sum_{\substack{-n < i, j < n \\ \gcd(i,j) = q}} (n - |i|)(n - |j|) = \frac{6 n^4}{\pi^2 q^2} + O\!\left(n^{5/2+\varepsilon}\right)

What it needs

  • RH Riemann Hypothesis Covered by the claim

    Every non-trivial zero of the Riemann zeta function has real part 1/2.

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 (RH) is covered by the announced proof.

Note. Unconditionally the paper gets the error term O(n^3 exp(-A (log n)^(3/5) (log log n)^(-1/5))). RH enters through the bound O(m^(3/2 + epsilon)) for the summed error term in the average order of Euler's totient function. The paper says the cases q = 1 and q = 2 were proved earlier by Ernvall-Hytonen, Matomaki, Haukkanen and Merikoski.

Sources

  1. Conditional proof P. Haukkanen, J. K. Merikoski (2011). Asymptotics for numbers of line segments and lines in a square grid. Preprint.
    Hypothesis used at: Theorem 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
medium
Lean
Not formalized yet.
Added
22 November 2026

Open questions

  • The paper does not say whether the implied constant is uniform in q.

Suggest a correction I checked this entry

lattice-points euler-totient error-terms