An asymptotic formula and an explicit positivity bound for the theta arithmetic sum

Primarily AI-generated textHuman understanding: no partsmath.NT — Number Theory

Contributed by Robert Renneson ↗

Version 1 / Nov 30, 2026 / CC BY 4.0

Abstract

For an odd prime pp, let S(p)S(p) be the sum of (−1)j+1+⌊hj/p⌋(-1)^{j+1+\lfloor hj/p\rfloor} over 1≤h,j<p1\le h,j<p. Berndt, Bhat, Meyer, Xie and Zaharescu conjectured that S(p)>0S(p)>0 for every prime p>5p>5 and proposed upper and lower bounds for its growth. We prove that S(p)=12plog⁡p+O(p(log⁡p)3/4(log⁡log⁡p)2)S(p)=\tfrac12 p\log p+O\bigl(p(\log p)^{3/4}(\log\log p)^2\bigr) as pp tends to infinity through primes. This proves their growth conjecture. We also prove that S(p)>25plog⁡pS(p)>\tfrac25p\log p for every prime with log⁡log⁡p≥250\log\log p\ge250. Both proofs begin with a cotangent identity and a decomposition into digamma sums. For the explicit bound we select two prime factors from the denominator of a reciprocal exponential sum and transfer cancellation to the parity sign in the original sum. Both theorems are formalized in Lean 4. Positivity for every prime greater than five remains open.

Provenance statement

Robert Renneson initiated and directed the project. Claude Fable 5.1 assisted with analysis, earlier drafts, and review. GPT-6 Astra helped develop the proofs, formalized both theorems in Lean 4, and drafted the manuscript. The human contributor does not claim to have checked and understood the proofs.

Tools used

OpenAI
GPT-6 Astra
Anthropic
Claude Fable 5.1

References

  1. B. C. Berndt, R. N. Bhat, J. L. Meyer, L. Xie and A. Zaharescu. An Arithmetic Sum Associated with the Classical Theta Function. Results in Mathematics 81 (2026), article 25. Also arXiv:2501.03234v3. https://doi.org/10.1007/s00025-025-02584-2.arXivDOI
  2. J. Bourgain. On Exponential Sums in Finite Fields. In: I. Bárány, J. Solymosi and G. Sági (eds), An Irregular Mind , Bolyai Society Mathematical Studies 21, pp. 219--242. Springer, Berlin, Heidelberg (2010). https://doi.org/10.1007/978-3-642-14444-8_4.DOI
  3. J. Bourgain and M. Z. Garaev. Sumsets of reciprocals in prime fields and multilinear Kloosterman sums. Izvestiya: Mathematics 78 (2014), 656--707. Preprint arXiv:1211.4184, Theorem 16. https://arxiv.org/abs/1211.4184. https://doi.org/10.1070/IM2014v078n04ABEH002703.arXivDOI
  4. Command-Master and contributors. lean-bourgain. Pinned snapshot 07fe8b2f eac3e72d 4f0bd1c8 d094e1eb d0a02ffb . Apache-2.0. https://github.com/Command-Master/lean-bourgain/tree/07fe8b2feac3e72d4f0bd1c8d094e1ebd0a02ffb.link
  5. Y. Dillies and contributors. LeanAPAP. Pinned snapshot ff5ae592 fc73de17 9b382c49 f1f6c700 587f99f8 . Apache-2.0. https://github.com/YaelDillies/LeanAPAP/tree/ff5ae592fc73de179b382c49f1f6c700587f99f8.link
  6. H. Iwaniec and E. Kowalski. Analytic Number Theory. American Mathematical Society Colloquium Publications 53, 2004. Chapter 11. https://doi.org/10.1090/coll/053.DOI
  7. M. A. Korolev. Vinogradov's sieve and an estimate for an incomplete Kloosterman sum. Sbornik: Mathematics 213 (2022), 216--234. https://doi.org/10.1070/SM9572.DOI
  8. The Lean community. Lean 4, version 4.33.1, and the Mathlib community. Mathlib, tag v4.33.1. Formal proof environment used for this snapshot. https://github.com/leanprover-community/mathlib4/tree/v4.33.1.link
  9. Math Inc. RiemannHypothesisCurves: a formal proof of the Riemann hypothesis for curves. Pinned snapshot c99880df f2a087d5 9147ab83 2074379a c28f7e68 . https://github.com/math-inc/RiemannHypothesisCurves/tree/c99880dff2a087d59147ab832074379ac28f7e68.link
  10. P. Minelli, A. Sourmelidis and M. Technau. Bias in the number of steps in the Euclidean algorithm and a conjecture of Ito on Dedekind sums. Mathematische Annalen 387 (2023), 291--320. Theorem 2.1. Also arXiv:2206.03214. https://doi.org/10.1007/s00208-022-02452-2.arXivDOI
Show all 12 referencesShow fewer references
  1. NIST Digital Library of Mathematical Functions. Chapter 5: Gamma Function, especially Sections 5.4, 5.5, 5.7 and 5.11. https://dlmf.nist.gov/5.link
  2. A. Weil. On some exponential sums. Proceedings of the National Academy of Sciences of the United States of America 34 (1948), 204--207. https://doi.org/10.1073/pnas.34.5.204.DOI

Version history

  1. v1 · 20 pagesSubmitted by Robert RennesonInitial depositCurrentNov 30, 2026