Leading Digits of Divisor Sums: Explicit Oscillations and the Diophantine Discrepancy of $d(n)$
Among the first 500,000 values of the sum-of-divisors function $σ(n)$, the leading digit 1 appears 18.8% of the time, against 30.1% under Benford's Law; among the first 150,000 it appears 42% of the time. We explain this behavior for positive multiplicative functions $f$ with $f(p)$ close to $c\,p^k$. When $c = 1$, $k > 0$ and $\sum_p|\log(f(p)/p^k)|/p < \infty$, as for the divisor power sums $σ_k$, the numbers $\log_{10}f(n) - k\log_{10}N$, $n \leq N$, taken modulo 1, converge in distribution to a classical limit law whose Fourier coefficients are explicit Euler products. We deduce that no leading digit has a limiting frequency: for $σ(n)$ the limit points of the digit-1 frequency fill the interval $[0.187, 0.426]$. The discrepancy modulo 1 does converge, and for $σ_k$ its limit is $\ln 10/(8k) + O(k^{-2})$. When $f(p) = c\,p^k e^{r(p)}$ with $r(p) \to 0$, the criterion of Chandee, Li, Pollack and Singha Roy shows that $f$ is Benford if and only if $\log_{10}c$ is irrational or $\sum_p r(p)^2/p$ diverges, and with a power saving the Selberg--Delange method gives every digit mode explicitly. The divisor function ($c = 2$) is Benford, but slowly. The best power of $\log\log N$ in its discrepancy is $1/(2w)$, and $1/w$ for $n^k d(n)$, where $w + 1$ is the irrationality exponent of $\log_{10}2$. Unconditionally, the discrepancy of $n^k d(n)$ is $O((\log\log N)^{-γ})$ for every $γ< 0.0651$. As $k \to 0$, the first-mode amplitude of $σ_k$ behaves like $C k^β$, where $β= 1 - \cos(2π\log_{10}2) \approx 1.3152$, and $C$ contains the Euler product of the first mode of $d(n)$.
Authors
- James Mac Hyman (ORCID: https://orcid.org/0000-0001-5247-5794)
Publication Details
- Journal
- arXiv
- Published
- 2026-12-01
- Primary Topic
- Analytic Number Theory Research
- Type
- preprint