Skip to main content
Log in

An elementary proof of a theorem of Hardy and Ramanujan

  • Published:
The Ramanujan Journal Aims and scope Submit manuscript

Abstract

Let Q(n) denote the number of integers \(1 \le q \le n\) whose prime factorization \(q= \prod ^{t}_{i=1}p^{a_i}_i\) satisfies \(a_1\ge a_2\ge \cdots \ge a_t\). Hardy and Ramanujan proved that

$$\begin{aligned} \log Q(n) \sim \frac{2\pi }{\sqrt{3}} \sqrt{\frac{\log (n)}{\log \log (n)}}\;. \end{aligned}$$

Before proving the above precise asymptotic formula, they studied in great detail what can be obtained concerning Q(n) using purely elementary methods, and were only able to obtain much cruder lower and upper bounds using such methods. In this paper, we show that it is in fact possible to obtain a purely elementary (and much shorter) proof of the Hardy–Ramanujan Theorem. Towards this goal, we first give a simple combinatorial argument, showing that Q(n) satisfies a (pseudo) recurrence relation. This enables us to replace almost all the hard analytic part of the original proof with a short inductive argument.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Similar content being viewed by others

Notes

  1. Throughout the paper we use the standard notation \([n]{:}{=}\{1,\ldots ,n\}\).

  2. One expects that most of the contribution to Q(n) comes from integers q satisfying \(\log (q) \approx \log (n)\). In this case we expect \(W(n) \approx n^{Q(n)}\), which then turns equation (3) into a “genuine” recurrence relation.

  3. This is allowed by the continuity properties of the left-hand side of (5).

  4. It is worth noting that this is the main term we need to bound. In particular, this is the place where the constant \(c=2\pi /\sqrt{3}\) emerges.

  5. As in Sect. 3, \(f'(m)\) and \(f''(m)\) mean plugging \(x=m=\log (Cn)\) into the first/second derivatives of f.

References

  1. Erdős, P.: On an elementary proof of some asymptotic formulas in the theory of partitions. Ann. Math. 43, 437–450 (1942)

    Article  MathSciNet  Google Scholar 

  2. Hardy, G.H.: Ramanujan: Twelve Lectures on Subjects Suggested by His Life and Work. Cambridge University Press, Cambridge (1940)

    Google Scholar 

  3. Hardy, G.H., Ramanujan, S.: Asymptotic formulae for the distribution of integers of various types. Proc. Lond. Math. Soc. 16, 112–132 (1917)

    Article  Google Scholar 

  4. Hardy, G.H., Ramanujan, S.: Asymptotic formulaæ in combinatory analysis. Proc. Lond. Math. Soc. 17, 75–115 (1918)

    Article  Google Scholar 

  5. Nathanson, M.B.: On Erdős’s elementary method in the asymptotic theory of partitions. In: Paul Erdős and His Mathematics, I (Budapest, 1999), Bolyai Society Mathematical Studies, vol. 11, pp. 515–531. János Bolyai Mathematical Studies, Budapest (2002)

  6. Nathanson, M.B.: Elementary Methods in Number Theory, Graduate Texts in Mathematics, vol. 195. Springer, Berlin (2000)

    Google Scholar 

  7. Ramanujan, S.: Highly composite numbers. Proc. Lond. Math. Soc. 14, 347–409 (1915)

    Article  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Contributions

Each author made equal contribution.

Corresponding author

Correspondence to Asaf Cohen Antonir.

Ethics declarations

Competing interest

The authors declare no competing interests.

Additional information

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Supported in part by ERC Consolidator Grant 863438 and NSF-BSF Grant 20196.

Appendix  Proofs of (7) and (9)

Appendix  Proofs of (7) and (9)

We first prove (7). By Lagrange’s remainder theorem, for every \(r>1\) and t such that \(0\le t\le r\) there is \(r-t\le c\le r\) such that

$$\begin{aligned} f(r-t)&=f(r)- tf'(r)+t^2f''(c)/2\;. \end{aligned}$$

Noting that \(f''(z)=\frac{3-\log ^2(z)}{4z^{3/2}\log ^{5/2}(z)}\) is negative for all \(z>e^{\sqrt{3}}\), we obtain (7) for \(r>e^{\sqrt{3}}\) and \(t>0\) with \(r-t>e^{\sqrt{3}}\).

We now prove (9). For every r and \(t\le r\), we let

$$\begin{aligned} g_r(t){:}{=}f(r-t)-f(r)+tf'(r)-t^2f''(r)\;. \end{aligned}$$

Note that \(g_r(0)=g_r'(0)=0\). Hence, proving that for all \(r\ge 10^3\) and \(0\le t\le r/10\), we have \(g''_r(t)>0\) implies (9). Indeed, let \(r\ge 10^3\) and let \(t=\varepsilon r \) with \(0\le \varepsilon \le 1/10\). We have

$$\begin{aligned} g''_r(\varepsilon r)&=\frac{3-\log ^2((1-\varepsilon )r)}{4(1-\varepsilon )^{3/2}r^{3/2}\log ^{5/2}((1-\varepsilon )r)} -\frac{3-\log ^2(r)}{2r^{3/2}\log ^{5/2}(r)}\\&\ge \frac{1}{4r^{3/2}}\left( \frac{1}{(1-\varepsilon )^{3/2}}\cdot \frac{3-\log ^{2}(9r/10)}{\log ^{5/2}(9r/10)}- 2\cdot \frac{3-\log ^{2}(r)}{\log ^{5/2}(r)}\right) \\&\ge \frac{1}{4r^{3/2}}\cdot {\frac{2(1-1/10)-(1-\varepsilon )^{-3/2}(1+1/10)}{\sqrt{\log (r)}}}>0 \end{aligned}$$

where the first inequality holds as \(\frac{3-\log ^2(x)}{\log ^{5/2}(x)}\) is monotone increasing for \(x>e^{\sqrt{15}}\) and as \((1-\varepsilon )r\ge 900\ge e^{\sqrt{15}}\), and the second inequality holds as \(r>10^3\) which implies both \( \frac{3-\log ^2(9r/10)}{\log ^{5/2}(9r/10)}\ge \frac{-(1+1/10)}{\sqrt{\log (r)}}\) and \(\frac{3-\log ^2{r}}{\log ^{5/2}(r)}\le \frac{-(1-1/10)}{\sqrt{\log (r)}}\), and the last inequality holds as \(\varepsilon \le 1/10\).

Rights and permissions

Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Cohen Antonir, A., Shapira, A. An elementary proof of a theorem of Hardy and Ramanujan. Ramanujan J (2024). https://doi.org/10.1007/s11139-023-00808-z

Download citation

  • Received:

  • Accepted:

  • Published:

  • DOI: https://doi.org/10.1007/s11139-023-00808-z

Keywords

Mathematics Subject Classification

Navigation