The alternating quadratic floor sum: congruences modulo 4, class numbers, and orbit sums over subgroups

For odd N and an integer h let A(h/N) = sum_{n=1}^{(N-1)/2} (-1)^floor(h n^2/N). For a prime p > 3 and p not dividing h we prove the exact formula 2 sum_{n <= (p-1)/2} floor(h n^2/p) = h(p^2-1)/12 - (p-1)/2 + (h/p) hB(p), where hB(p) = -(1/p) sum_{a<p} a (a/p), and deduce A(h/p) = (p-1) - h(p^2-1)/12 - (h/p) hB(p) (mod 4). This gives A(p) modulo 4, an elementary proof that hB(p) (the class number h(-p)) is odd for p = 3 (mod 4), and for even numerators the identity A(2a/p) = (a/p)(2 - (2/p)) hB(p), Dirichlet's evaluation of Jacobi's sum in Bernoulli form. For every odd N the mean quadratic residue gives A(N) modulo 4 through weighted class numbers. We then study F(a) = A(h/p), with h the odd representative of a in [1, 2p), as a function on the units modulo p. Its Fourier coefficients factor as sum_a F(a) conj(chi)(a) = H(chi^2) G(conj chi), a half-period alternating sum times a full-period one, so the sum of F over the kernel of a character of order m is (1/m) sum_{j<m} H(chi^{2j}) G(conj chi^j). For p = 5 (mod 8) the mean of F over the fourth powers is (8/(p-1)) q Im S(psi), with q = sum_{n

Authors

Publication Details

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

The alternating quadratic floor sum: congruences modulo 4, class numbers, and orbit sums over subgroups

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

The alternating quadratic floor sum: congruences modulo 4, class numbers, and orbit sums over subgroups

Joseph S. Farland
preprint en
2 citations

Abstract

For odd N and an integer h let A(h/N) = sum_{n=1}^{(N-1)/2} (-1)^floor(h n^2/N). For a prime p > 3 and p not dividing h we prove the exact formula 2 sum_{n <= (p-1)/2} floor(h n^2/p) = h(p^2-1)/12 - (p-1)/2 + (h/p) hB(p), where hB(p) = -(1/p) sum_{a<p} a (a/p), and deduce A(h/p) = (p-1) - h(p^2-1)/12 - (h/p) hB(p) (mod 4). This gives A(p) modulo 4, an elementary proof that hB(p) (the class number h(-p)) is odd for p = 3 (mod 4), and for even numerators the identity A(2a/p) = (a/p)(2 - (2/p)) hB(p), Dirichlet's evaluation of Jacobi's sum in Bernoulli form. For every odd N the mean quadratic residue gives A(N) modulo 4 through weighted class numbers. We then study F(a) = A(h/p), with h the odd representative of a in [1, 2p), as a function on the units modulo p. Its Fourier coefficients factor as sum_a F(a) conj(chi)(a) = H(chi^2) G(conj chi), a half-period alternating sum times a full-period one, so the sum of F over the kernel of a character of order m is (1/m) sum_{j<m} H(chi^{2j}) G(conj chi^j). For p = 5 (mod 8) the mean of F over the fourth powers is (8/(p-1)) q Im S(psi), with q = sum_{n

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