The band index modulo four: a level-two sum, an alternating identity, and half-range Jacobsthal sums

For an odd prime p let b(n) = floor(n^2/p), the band index of n, and let m_j count the n in (0, p) with b(n) = j (mod 4). We determine all four counts. With K = (p-1)/2, the quarter sum kappa = sum_{n <= (p-1)/4} (n/p) and the half sum H = sum_{n <= K} (n/p): for p = 1 (mod 4), m_0 and m_2 are K/2 + kappa and K/2 - kappa, and m_1 = m_3 = K/2; for p = 3 (mod 4), m_0 and m_2 are (K + H)/2 and (K - H)/2, m_1 = (K+1)/2 and m_3 = (K-1)/2. Equivalently, the sum of i^b(n) over 0 < n < p is 2 kappa = h(-4p) or (2 - (2/p)) h(-p) + i. The proof pairs n with p - n and counts square roots. The same reflection gives Chamberland and Dilcher's identity sum_{j=1}^{m} (-1)^(j+1) floor(sqrt(jm)) = (m+1)/2 for every odd m. For the half-range Jacobsthal sums H_{+1}(p) and H_{-1}(p), the sums of ((x^3 + x)/p) and ((x^3 - x)/p) over x <= K, with p = 3 (mod 4), we prove a reduction to nonresidues and the exact formula H_{-1}(p) = H - K + 8(nu_2 - nu_3), where nu_2 and nu_3 count consecutive pairs and triples of nonresidues below p/2. Hence H_{-1}(p) = (p+3)/2 + (2/p) h(-p) (mod 8), H_{+1}(p) = h(-p) (mod 4) and H_{-1}(p) = h(-p) + 1 (mod 4). Determinant certificates show that neither sum is an affine combination of 1, p and seventeen class numbers. The main results are formalized in Lean 4 with Mathlib, with class numbers in their Bernoulli forms; Dirichlet's class number formula is quoted, and the certificates, a spectral formula and the numerical observations are not formalized. Source code: https://github.com/jkfarland-bot/BandIndex

Authors

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-12-03
DOI
https://doi.org/10.5281/zenodo.24802000
Primary Topic
Analytic Number Theory Research
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

The band index modulo four: a level-two sum, an alternating identity, and half-range Jacobsthal sums

Joseph S. Farland
Zenodo (CERN European Organization for Nuclear Research)
Analytic Number Theory Research
preprint

The band index modulo four: a level-two sum, an alternating identity, and half-range Jacobsthal sums

Joseph S. Farland
preprint en

Abstract

For an odd prime p let b(n) = floor(n^2/p), the band index of n, and let m_j count the n in (0, p) with b(n) = j (mod 4). We determine all four counts. With K = (p-1)/2, the quarter sum kappa = sum_{n <= (p-1)/4} (n/p) and the half sum H = sum_{n <= K} (n/p): for p = 1 (mod 4), m_0 and m_2 are K/2 + kappa and K/2 - kappa, and m_1 = m_3 = K/2; for p = 3 (mod 4), m_0 and m_2 are (K + H)/2 and (K - H)/2, m_1 = (K+1)/2 and m_3 = (K-1)/2. Equivalently, the sum of i^b(n) over 0 < n < p is 2 kappa = h(-4p) or (2 - (2/p)) h(-p) + i. The proof pairs n with p - n and counts square roots. The same reflection gives Chamberland and Dilcher's identity sum_{j=1}^{m} (-1)^(j+1) floor(sqrt(jm)) = (m+1)/2 for every odd m. For the half-range Jacobsthal sums H_{+1}(p) and H_{-1}(p), the sums of ((x^3 + x)/p) and ((x^3 - x)/p) over x <= K, with p = 3 (mod 4), we prove a reduction to nonresidues and the exact formula H_{-1}(p) = H - K + 8(nu_2 - nu_3), where nu_2 and nu_3 count consecutive pairs and triples of nonresidues below p/2. Hence H_{-1}(p) = (p+3)/2 + (2/p) h(-p) (mod 8), H_{+1}(p) = h(-p) (mod 4) and H_{-1}(p) = h(-p) + 1 (mod 4). Determinant certificates show that neither sum is an affine combination of 1, p and seventeen class numbers. The main results are formalized in Lean 4 with Mathlib, with class numbers in their Bernoulli forms; Dirichlet's class number formula is quoted, and the certificates, a spectral formula and the numerical observations are not formalized. Source code: https://github.com/jkfarland-bot/BandIndex

Zenodo (CERN European Organization for Nuclear Research)
Analytic Number Theory Research
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon