Efficient implementation of the Hardy-Ramanujan-Rademacher formula

23Citations
Citations of this article
9Readers
Mendeley users who have this article in their library.

Abstract

We describe how the Hardy-Ramanujan-Rademacher formula can be implemented to allow the partition function p(n) to be computed with softly optimal complexity O(n1/2+o(1)) and very little overhead. A new implementation based on these techniques achieves speedups in excess of a factor 500 over previously published software and has been used by the author to calculate p(1019), an exponent twice as large as in previously reported computations. We also investigate performance for multi-evaluation of p(n), where our implementation of the Hardy-Ramanujan-Rademacher formula becomes superior to power series methods on far denser sets of indices than previous implementations. As an application, we determine over 22 billion new congruences for the partition function, extending Weaver's tabulation of 76 065 congruences. Supplementary materials are available with this article. Copyright © London Mathematical Society 2012.

Cite

CITATION STYLE

APA

Johansson, F. (2012). Efficient implementation of the Hardy-Ramanujan-Rademacher formula. LMS Journal of Computation and Mathematics, 15, 341–359. https://doi.org/10.1112/S1461157012001088

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free