WorksMathematics
CA2 numbers and the Riemann hypothesis: a numerical investigation of Ramanujan's inequalities
Abstract
Robin's criterion reduces the Riemann hypothesis to an inequality for colossally abundant (CA) numbers, and Wu's theorem reduces the test further to the subclass CA2. We study this reduction numerically and consider smaller subsets on which the same criterion remains sufficient. We also show that the logarithmic decay law suggested by Briggs's computations follows from Ramanujan's conditional bounds. To investigate the next term, we compare the normalized Robin difference with Ramanujan's oscillatory expression involving the nontrivial zeros of the zeta function. The resulting difference has a slowly varying component on both CA and CA2. Its scaled values continue to vary over the computed range, leading to questions about convergence, upper bounds, and higher-order terms. We describe the sampling used in the figures and estimate the error from truncating the sum over zeros.
Mathematics Subject Classification (2020). Primary 11N37; Secondary 11M26, 11Y70.
Introduction
Let , and let be the Euler–Mascheroni constant. Robin [11] proved that the Riemann hypothesis (RH) is equivalent to
It is enough to test this inequality on the colossally abundant (CA) numbers, which maximize for some . Wu [12] reduced the test to CA2, a subclass containing fewer than one in a thousand CA numbers in his reported computation. We examine the behavior of Robin’s quotient on these classes and consider further reductions.
Briggs [2] verified Robin’s inequality for and investigated the distance from equality. Morrill and Platt [3] subsequently extended the verified range to . The logarithmic law suggested by Briggs’s computations follows from Ramanujan’s estimates under RH. These estimates occur in the continuation of Ramanujan’s manuscript omitted from the 1915 publication; this part appeared in facsimile in 1988 and in an annotated journal edition in 1997 [10, 7].
Ramanujan’s work [9, 10] suggests the following normalization of :
Under RH, the lower and upper limits of along the CA numbers lie between two positive constants approximately equal to 1.3932 and 1.5578. Robin’s criterion requires only for every . It is also enough to prove this inequality for all sufficiently large CA numbers: if RH is false, Robin’s oscillation theorem and the reduction to CA numbers give arbitrarily large CA counterexamples [11, 4].
For a more precise comparison, we use the function defined by a sum over zeta zeros in (4). Under RH, it lies between the same two constants. Our main numerical quantities are and
Ramanujan’s estimate and its effective refinement by Nicolas [6] suggest this scale for the next correction. The figures show similar oscillations in and , together with a more slowly varying difference. The observed increase in the scaled difference may be part of a longer oscillation; the available range does not determine a limiting coefficient.
A separate question is whether one can reduce CA2 to smaller sets on which Robin’s criterion remains sufficient. Record values of give one such reduction. A different construction of nested subsets of CA numbers, using changes of coordinates and supporting lines, is developed in [5]. We discuss its relation to the CA2 problem in Section 3.2.
Section 2 gives the normalizations, the deduction of Briggs’s logarithmic law, and Wu’s reduction. Section 3 presents the numerical observations and the questions they suggest. Section 4 describes generation, sampling, and truncation errors. Section 5 discusses higher-order corrections and the sharpness of Ramanujan’s constants.
Acknowledgments
The authors thank Aiya Kuchukova for her contribution to the early stages of this project. ChatGPT (OpenAI) was used to assist with the editing of the manuscript.
The mathematical framework
The Robin difference and the sum over zeta zeros
All logarithms in the text are natural. Put
Then . This identity explains why a plot of alone can conceal the variation we seek: differences of order one in correspond to differences of order in .
Under RH, write the nontrivial zeta zeros with positive imaginary part as , counted with multiplicity. The comparison function is
The sum converges absolutely. With the common notation
formula (4) is , with conjugate zeros paired. To compare signs with Nicolas [6], his notation is
Thus . Under RH, ; pairing conjugate zeros gives the minus sign in (4).
We use three different residual scales:
Figures labeled show ; a figure labeled shows . This constant factor matters when discussing a numerical bound for .
Set
where the zero-sum identity is written under RH. The resulting bounds for are
Ramanujan’s conditional inequalities [10, 4] give
These are asymptotic bounds; an individual computed value of below does not contradict them. The lower bound also holds for the lower limit over all integers, by the strong Ramanujan theorem [4]. The upper bound is specific to suitable abundant sequences.
Ramanujan’s estimate, made effective by Nicolas [6], gives the one-sided asymptotic comparison
Thus is bounded above for sufficiently large under RH. This one-sided estimate does not imply convergence or a lower bound for .
Briggs's experiment and Ramanujan's inequalities
Put . The logarithmic law suggested by Briggs’s computations [2] has a leading slope :
In fact, Ramanujan’s bounds give a stronger bounded-remainder statement
Indeed, (2.4) implies that is eventually bounded above and bounded away from zero on the CA numbers. Since , taking logarithms gives
and . Thus Briggs’s observed slope follows from Ramanujan’s conditional bounds. The normalization removes this leading scale; comparison with then concerns the next term.
CA numbers and Wu's reduction
An integer is called colossally abundant if, for some ,
The prime factorization of the maximizer changes at the critical parameters
Ordering the critical parameters in decreasing order gives the usual construction of CA numbers [1, 2]. At a transition involving a single prime , the next maximizer is obtained by multiplication by . If two distinct primes have the same critical parameter, the four tied maximizers are ; the middle quotient in their increasing order is . No three distinct primes can have the same critical parameter, by the result of Siegel quoted in [1 p. 455]. No simultaneous transition was observed in our computations. We do not assume that all critical parameters are distinct.
There is also a geometric interpretation [4]. Place the integer at . The maximizers of are the points on a lower supporting line of slope . Unique maximizers are exposed vertices; tied maximizers lie on a common supporting segment.
Following Wu [12], let be the largest prime factor of a CA number and the next prime. The three classes are
Theorem 1 (Wu [12], Corollary 4). The Riemann hypothesis is true if and only if
Wu’s comparison results explain the reduction. Apart from the initial small cases, a step ending at a CA1 number decreases , while a CA3 number has a smaller value of than the first subsequent CA2 number. Together with the initial range, these comparisons imply that a violation of Robin’s inequality is detected on CA2. It is also enough to establish the inequality for all sufficiently large CA2 numbers: if RH is false, there are arbitrarily large CA counterexamples, and Wu’s comparisons, together with the unboundedness of CA2, give arbitrarily large CA2 counterexamples.
In Wu’s sample of 5 763 320 CA numbers, 120 529 are CA1, 5 565 are CA2, and 5 637 226 are CA3. The CA2 members therefore form less than one thousandth of this sample.
Experiments and the questions they suggest
The figures compare , , and on CA and CA2, using as the horizontal coordinate. In the computations, is replaced by a finite sum over zeros; the labels and in the figures refer to this finite sum. The truncation error is discussed in § 4. Lines join the sampled values.
Why CA2 stands out
The colors identify the class of each plotted point. In Figure 1, Figure 2, and Figure 6, blue denotes CA1, orange/red denotes CA2, and green denotes CA3. The overview of shows an increasing approach towards , dominated visually by CA3 points. The enlarged views reveal much smaller rises and falls within this broad trend.

Figure 1. Overview of . The displayed values remain below . On this scale the local oscillations are difficult to see and most points appear green (CA3).

Figure 2. Enlarged views of . Blue CA1 points occur on descending portions, while orange/red CA2 points appear near changes of behavior. These plots resolve variations that are not visible in Figure 1.

Figure 6. Class-colored residual: overview and detail. The vertical axes show . The normalization preserves the signs of consecutive differences.
These plots illustrate the comparisons behind Theorem 1: CA1 points lie on descending portions, and CA2 points occur near changes of behavior. The first subsequent CA2 number dominates a CA3 number even when the path between them is not monotone. Wu [12 Theorem 3(1)] also proves that a transition by a single prime starting in CA3 increases when .
Wu leaves the case open. The plots motivate the broader question of whether every strict local maximum of belongs to CA2. The results just cited do not settle this: a CA3 number followed by multiplication by 2, as well as simultaneous transitions by two primes, still require examination.
Question 1 (The remaining local step). If is CA3 and the next CA number is , must hold?
Can the test set be reduced further?
One may retain only the record values of on CA2 above 5040. Write
and define
The least member of is included. For each , the maximum of on the finite set is attained at a record point: take its first maximizer. Hence Robin’s inequality holds on if and only if it holds on . By Theorem 1, testing the inequality on is equivalent to RH.
This reduction is useful computationally only if the records can be located efficiently. A direct search still evaluates on every member of . Applying the same record rule to removes no further points, so successive reductions require a different selection rule.
Question 2 (Successive reductions). Can one construct explicit nested test sets
such that each inclusion is strict and Robin’s inequality on each fixed set remains equivalent to RH? What can be said about the intersection of these sets?
For a single reduction, it is sufficient that each discarded member either satisfies Robin’s inequality or has no larger than that of a retained member.
The higher-order CA sets in [5] provide related constructions on the full CA sequence. They are defined by supporting lines after changes of coordinates. Under the stated conditions, the sets are nested and Robin’s inequality on any fixed level is equivalent to RH. Some of these families have infinitely many members at every level and empty intersection, unconditionally. Their construction does not assert that they lie in Wu’s CA2 class. Thus the relation between these families and successive reductions within CA2 remains to be studied. An empty intersection alone would not prove RH: counterexamples could persist at every level while each fixed integer is eventually removed.
Oscillation and a slowly varying difference
Figure 3 compares with the sum over zeros on CA2. Both curves display a repeated oscillatory pattern across the sample, while the upper curve is separated from the lower one by a positive gap. This separation is easier to study directly than through the two curves themselves.

Figure 3. The curves labeled and on the CA2 sample, with horizontal coordinate . Their visible oscillations are similar, but the vertical separation changes across the range. The figure includes every point of our CA2 sample.
For the sampled full CA sequence, the left panel of Figure 4 shows the residual increasing from a little below 0.05 to a little above 0.09 over , with smaller local oscillations. The increase becomes less pronounced near the right end of the plot. The right panel shows the same type of experiment on the scale : its values rise from roughly 0.65 to 2.2. These values are read approximately from the displayed curves.


Figure 4. Residual scales on sampled CA numbers. Left: , sampled every 10 000 CA numbers. Right: , sampled every 1000 CA numbers. The vertical scales differ by the factor and the two panels use different sampling rates.
After division by , the right panel corresponds approximately to on its displayed sample. The main experimental feature is the drift across this interval. A nearly constant value of over a short interval does not imply that is stabilizing;
multiplication by can still reveal substantial variation. Accordingly, the finite-range increase does not rule out eventual boundedness or oscillation.
Question 3 (The residual coefficient). Assume RH. Does converge as through CA numbers? If it does not, what are its lower and upper limits? Are the answers the same on CA2?
If the limit is , its meaning is the expansion
The displayed values do not give a stable estimate of . Comparisons on successive -intervals may help distinguish convergence from persistent oscillation.
One can ask for an upper bound without assuming convergence.
Question 4 (A proposed upper bound). Under RH, is it true that for all sufficiently large CA numbers? Equivalently, does
eventually hold along the CA sequence?
The plotted sample is consistent with this bound after the normalization . It does not determine an eventual threshold or the best coefficient.
What is retained on CA2?
Figure 5 shows the positions of the CA2 sample and its residual. The points are sparse and unevenly spaced on the axis. Nevertheless, the broad increase and the small oscillations of the residual resemble those of the entire CA sequence sampled in Figure 4.

Figure 5. The CA2 sample. Left: positions on the axis, with the meaningless vertical scale omitted. Right: the residual labeled on this sample. Its broad trend resembles the full CA residual, while the irregular spacing affects the appearance of the local oscillations.
The comparison suggests using CA2 to study some features of the residual at a much lower sampling cost. However, there is a distinction between the known reduction for $G and the proposed use of CA2 for . Robin’s inequality depends on whether crosses the constant level ; the residual also subtracts the oscillatory function and changes the scale. Wu’s reduction therefore does not place the extrema of in CA2.
Question 5 (CA2 and the residual envelope). Under RH, do the lower and upper limits of on CA2 agree with the corresponding limits on all CA numbers?
A direct numerical test would compare both samples in identical -windows and record their minimum, maximum, and number of points. The existing curves suggest the comparison, but do not supply those window statistics.
Local behavior of the residual
For the residual, the class pattern is more complicated. Figure 6 juxtaposes an increasing trend with a detail in which blue and green points lie on descending portions. Thus, a class rule for increases of cannot simply be transferred to . Multiplication by the positive constant preserves this local pattern for ; the additional factor in may change it.
These observations suggest examining consecutive differences conditional on both the CA class and the transition prime. Such a comparison would separate a systematic class effect from the position within an oscillation of the sum over zeros. The figures show examples of this local behavior; a systematic comparison requires the consecutive numerical values.
Computational outline and accuracy
Generation and sampling
The computational method follows the critical-parameter description of CA numbers. If a prime currently has exponent , its next event is from (11); the largest remaining critical parameter is processed next. Storing the prime exponents, , and avoids storing the extremely large integer . At a transition , with current exponent , the updates are
Then . Comparisons of nearly equal event parameters and the cancellation in the evaluation of were the two main precision issues.
The computations used C++ and Python programs, with 100-bit Arb arithmetic in the C++ generator; its first million transition factors were checked against an independent generator. Transition factors were generated through CA index , and was evaluated through index . Generation of the transition factors and evaluation of are separate computations with different ranges. The sampling rates for the full CA sequence are given in the figure captions; the CA2 figures use all points in our CA2 sample.
Truncation of the sum over zeros
Let denote the sum in (4) truncated after the first positive ordinates. Under RH, the elementary tail estimate is
where . This follows by bounding each omitted cosine by one. The bound for is uniform in , whereas the bound for grows with .
For example, evaluation using Odlyzko’s ordinate tables [8] gives the rounded scales in Table 1. The last column applies to , which includes the total interval displayed.
| 1 000 | |||
| 10 000 | |||
| 100 000 |
Table 1. Approximate zero-tail scales under RH. The third column concerns ; the fourth concerns when . These rounded evaluations do not include ordinate rounding, arithmetic errors, or an error in .
We chose when performing our computations of the sum over zeros. At that value, the tail scale alone for near is about 0.036. Increasing to or reduces this scale to approximately 0.00673 or 0.00110, respectively. These are the scales for in the last column, distinct from the smaller errors for . Resolving stabilization, or the higher-order coefficients, requires a tail scale below the changes being measured, together with control of arithmetic errors. In particular, a fixed does not give a uniform error bound for as .
The Riemann–von Mangoldt formula gives . Consequently,
Thus of order keeps the bound of constant order as the upper endpoint grows. To make this bound tend to zero, one may choose so that .
Numerical materials
The accompanying files contain the figures used in this paper and four additional plots from earlier computations. The underlying point tables and programs are not included. The numerical ranges quoted from the figures are approximate. The additional plots are not used here because their axis conventions or normalizations differ from those used in the main text.
Successive corrections and asymptotic questions
From Nicolas’s refinement to the next correction
Nicolas [6] gives an effective form of Ramanujan’s conditional upper estimate for . In the notation of (5), its asymptotic form (8) implies that there are constants and such that, under RH,
This motivates the scale for the first correction. A constant in a one-sided inequality need not be the coefficient of an asymptotic expansion. Question 4 asks whether is an eventual upper bound on CA. A separate question is whether the next terms have constant coefficients or retain an oscillatory dependence on .
Question 6 (Higher-order terms). Assume RH. Do there exist constants such that, for each fixed ,
along CA numbers, or along CA2? If constant coefficients are inadequate, what functions describe the next terms?
The associated experiment is sequential. For a candidate , inspect ; if this stabilizes near , inspect . In general the quantity to examine is
Thus , and (17) would give . The present values of do not give a stable first coefficient, so the higher-order differences cannot yet be interpreted numerically.
If such an expansion exists, it refines the divisor-sum formula to
One-sided estimates for the remainder would give corresponding inequalities for . An unconditional proof that is eventually bounded below by a positive constant on CA would imply RH. For example, the estimate , if proved without assuming RH, would suffice. In contrast, the definition of in (2.1) and the comparisons above are made under RH.
The accuracy requirement also increases with each stage. By (4.1), the zero-tail contribution to is at most . An error in a fitted coefficient contributes that error multiplied by . These amplifications should be kept below the variation under investigation before a new apparent term is interpreted mathematically.
Sharpness of Ramanujan’s constants
The residual and the oscillatory envelope lead to different asymptotic problems. Questions 3–4 concern the scale on which approaches . Even if this remainder were completely understood, the extremes in behavior of the sum over zeros along CA numbers would still have to be examined to determine the exact constants in (2.4).
Conjecture 1 (Sharpness of Ramanujan’s constants). Under RH, the limits along CA numbers satisfy
The cosine bound giving and does not show that these endpoints are approached along the CA sequence. A possible explanation would combine along CA with simultaneous approximation of the phases . Linear independence over of the positive ordinates would allow any finite collection of phases to approach prescribed values as the real parameter varies. To apply this to CA numbers, one must also pass from real values of to the values with . This describes a possible route to the conjecture; these additional assertions are not consequences of the numerical plots.
For the residual problem, a useful next experiment is to divide an extended range into comparable -windows, keeping the zero-tail and arithmetic errors below a prescribed tolerance for . Recording the minimum and maximum in each window would directly test the proposed upper bound; recording the center and spread would help distinguish convergence from persistent oscillation or continued drift. Using the same windows for CA and would address Question 5 without relying on the visual similarity of differently spaced samples.
For the local problem, a systematic computation of CA transitions should test the multiplier-2 steps of Question 1 and tabulate consecutive changes in and by CA class and transition prime.
Dmitry R. Leshchiner
email: [email protected]
Oleg R. Musin
University of Texas Rio Grande Valley, Brownsville, TX 78520, USA.
email: [email protected]
James Thompson
email: [email protected]
References
- [1]L. Alaoglu and P. Erdős, On highly composite and similar numbers, Trans. Amer. Math. Soc. 56 (1944), 448–469. doi:10.1090/S0002-9947-1944-0011087-2.DOI
- [2]K. Briggs, Abundant numbers and the Riemann hypothesis, Experimental Mathematics 15 (2006), no. 2, 251–256. doi:10.1080/10586458.2006.10128957.DOI
- [3]T. Morrill and D. J. Platt, Robin’s inequality for 20-free integers, Integers 21 (2021), A28. arXiv:1809.10813.arxiv.org/abs/1809.10813
- [4]O. R. Musin, Ramanujan’s theorem and highest abundant numbers, Arnold Math. J. 6 (2020), 119–130. doi:10.1007/s40598-020-00136-w.DOI
- [5]O. R. Musin, Higher-order colossally abundant numbers, preprint (2026), arXiv:2609.33794.arxiv.org/abs/2609.33794
- [6]J.-L. Nicolas, The sum of divisors function and the Riemann hypothesis, Ramanujan J. 58 (2022), no. 4, 1113–1157. doi:10.1007/s11139-021-00491-y.DOI
- [7]J.-L. Nicolas and J. Sondow, Ramanujan, Robin, highly composite numbers, and the Riemann hypothesis, in Ramanujan 125, Contemporary Mathematics, vol. 627, American Mathematical Society, 2014, 145–156. arXiv:1211.6944.arxiv.org/abs/1211.6944
- [8]A. M. Odlyzko, Tables of zeros of the Riemann zeta function, https://www-users.cse.umn.edu/~odlyzko/zeta_tables/index.html.
- [9]S. Ramanujan, Highly composite numbers, Proc. London Math. Soc. (2) 14 (1915), 347–409. doi:10.1112/plms/s2_14.1.347.DOI
- [10]S. Ramanujan, Highly composite numbers, annotated and with a foreword by J.-L. Nicolas and G. Robin, Ramanujan J. 1 (1997), 119–153; published as “Highly Composite Numbers by Srinivasa Ramanujan.” doi:10.1023/A:1009764017495.
- [11]G. Robin, Grandes valeurs de la fonction somme des diviseurs et hypothèse de Riemann, J. Math. Pures Appl. (9) 63 (1984), 187–213.
- [12]X. Wu, Subsets of colossally abundant numbers, preprint (2019), arXiv:1903.03490.arxiv.org/abs/1903.03490