Generating key points…
Answers are grounded in this paper and cite their sources.
For an odd prime p, let b(n) = ⌊n²/p⌋ and T(p) = Σ0<n<p (n/p) i^b(n), the Legendre twist of the level-two band sum Σ0<n<p i^b(n). We evaluate T(p) in every residue class. For p ≡ 1 (mod 8) and either quartic character ψ modulo p, T(p) = 4 Re Σn≤(p−1)/4 ψ(n) = −2 Re B1,ψχ₋₄. For p ≡ 5 (mod 8), with ψ(2) = i and B1,ψ = k + it, T(p) = 2i(2k − t). Both rest on two facts: the quartic form T(p) = (1 + i) Σr∈QR ψ(r) i^(−r) over the quadratic residues, and the identity Σn≤(p−1)/2 ψ(n) = (conj ψ(2) − 2) B1,ψ for odd ψ. For p ≡ 3 (mod 4) there is no quartic character. There we prove the first form T(p) = (1 + i) Σs∈QR (−1)^s i^⟨s²⟩ and the congruence T(p) ≡ (2 − (2/p)) h(−p) − i (mod 4), the conjugate of the untwisted sum, through an exact formula for Σn∈QR b(n). Determinant certificates show that neither coordinate of T(p) is an affine combination of 1, p and seventeen class numbers there. All the evaluations, the existence of the quartic character and the value of ψ(−1) are formalized in Lean 4 with Mathlib (TwistLevelTwo), with the class number in the Bernoulli form h_B(p). Dirichlet's formula h_B(p) = h(−p) is quoted.
No takes yet. Share an insight, caveat, or question.
Joseph S. Farland (2026) studied this question.
Synapse has enriched 8 closely related papers on similar clinical questions. Consider them for comparative context: