The Legendre twist of the level-two band sum: an L-value exactly when a quartic character exists
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 B_{1,ψχ₋₄}. For p ≡ 5 (mod 8), with ψ(2) = i and B_{1,ψ} = 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) B_{1,ψ} 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.
Authors
- Joseph S. Farland (ORCID: https://orcid.org/0009-0007-6809-804X)
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-12-04
- DOI
- https://doi.org/10.5281/zenodo.24804413
- Primary Topic
- Analytic Number Theory Research
- Type
- preprint