The Hardy-Ramanujan-Rademacher Asymptotics via the Circle Method
Anchor (Master): Apostol 1990 *Modular Functions and Dirichlet Series in Number Theory* (Springer GTM 41) Ch. 3 (Dedekind eta and Dedekind sums), Ch. 5 (the Rademacher exact formula via the circle method); Hardy-Ramanujan 1918 *Proc. London Math. Soc.* (2) 17, 75-115 (the original circle method and asymptotic); Rademacher 1937 *Proc. London Math. Soc.* (2) 43, 241-254 (the convergent series); Vaughan 1997 *The Hardy-Littlewood Method* (Cambridge Tracts 125, 2nd ed.) Ch. 1-2 (the circle method for Waring and Goldbach, major/minor arcs, the singular series); Andrews 1976 *The Theory of Partitions* (Addison-Wesley) Ch. 5
Intuition Beginner
How big is , the number of ways to break into a sum of positive whole numbers? The recurrence from the previous unit computes any single value, but it never tells you the size of the answer at a glance. Yet there is a clean formula for roughly how large is: it grows like the exponential of a constant times the square root of . For this already predicts a number near million, and the prediction is accurate to a few percent.
Where does a square root in the exponent come from? The trick is to read off not by counting, but by averaging. Pack all the counts into one function — the generating product from the last unit — and treat it as a function of a complex number just inside a circle of radius one. Picking out the coefficient is then a matter of integrating this function once around the circle. As the circle is pushed toward radius one, the function blows up most violently at , and less at other special points like . That blow-up, balanced against how fast you spin, produces the growth.
This averaging-around-a-circle idea is called the circle method. It was invented for partitions but became one of the central tools for additive questions in number theory: how many ways can be written as a sum of squares, of cubes, or of primes. Each such count is a coefficient of a generating function, and each is read off the same way — by an integral over a circle, dominated by what happens near a handful of special angles.
Visual Beginner
Picture the unit circle in the complex plane. The generating function lives just inside it, and we integrate once around. Near each rational angle (measured as a fraction of a full turn) the function has a spike; the spike at (the angle ) is by far the tallest, the next tallest sit at and the cube-roots of unity, and they get shorter as the denominator grows.
| exact | ratio | ||
|---|---|---|---|
The ratio of the true count to the simple formula drifts slowly toward : the leading term captures the explosive growth, and the slowly shrinking error is what the full Rademacher series cleans up exactly.
Worked example Beginner
Estimate from the leading formula and compare with the exact value .
Step 1. The formula is . Set .
Step 2. Compute the exponent. We have , and . Multiplying by gives .
Step 3. Exponentiate: .
Step 4. Divide by the prefactor . So the estimate is , that is, about million.
Step 5. Compare: the true value is million. The estimate million is high by about .
What this tells us: a single closed expression, with no counting at all, lands within a few percent of a number near two hundred million. The error is not random noise — it is the contribution of the next special points on the circle (, the cube roots of unity, and so on), and adding their corrections drives the estimate to the exact integer.
Check your understanding Beginner
Formal definition Intermediate+
Throughout, with in the upper half-plane , so . Write for the partition generating function of 21.16.01, and for its reciprocal, the Euler function.
Definition (coefficient extraction by Cauchy's integral). Since is holomorphic on the open unit disc, its Taylor coefficient is recovered by $$ p(n) = \frac{1}{2\pi i}\oint_{|q|=r} \frac{F(q)}{q^{n+1}},dq \qquad (0 < r < 1), $$ the contour being any circle of radius inside the disc. The circle method is the strategy of choosing tending to as and analysing the integrand arc by arc near each root of unity.
Definition (Farey dissection / major arcs). Fix and let be the Farey sequence of order : the rationals in with and , in increasing order. The mediants between consecutive Farey fractions partition the circle into one major arc per fraction , each surrounding the root of unity . On one substitutes with and applies the modular transformation of at the cusp .
Definition (Dedekind eta and Dedekind sums). The Dedekind eta function is , so . For the Dedekind sum is $$ s(h,k) = \sum_{r=1}^{k-1}\Big(!\Big(\frac{r}{k}\Big)!\Big)\Big(!\Big(\frac{hr}{k}\Big)!\Big), \qquad ((x)) = \begin{cases} x - \lfloor x\rfloor - \tfrac12, & x\notin\mathbb{Z},\ 0, & x\in\mathbb{Z},\end{cases} $$ and the eta multiplier records the root of unity by which is twisted under . These symbols — , , , , — are introduced here and used consistently below.
Definition (Kloosterman-type sum). For the partition problem the relevant exponential sum is $$ A_k(n) = \sum_{\substack{0\leq h < k \ \gcd(h,k)=1}} \omega_{h,k}, e^{-2\pi i n h/k}, $$ a sum over the reduced residues mod weighted by the eta multipliers. It is the partition analogue of a Kloosterman sum, and it carries the arithmetic of each cusp into the final formula.
Counterexamples to common slips Intermediate+
"You may integrate on the unit circle itself." You may not: has the unit circle as a natural boundary and is unbounded near every root of unity, so the contour must stay strictly inside, , and only in the limit are the singularities approached.
"Only contributes." The leading term comes from , but every root of unity contributes a term of size governed by ; the contributions decay in , yet all of them are needed for the exact Rademacher formula, and the term is already numerically significant.
"The Hardy-Ramanujan series converges." The original 1918 series is asymptotic and ultimately divergent; truncating it optimally gives to within . Rademacher's modification — Ford circles and the Bessel function in place of the exponential — is what makes the series genuinely convergent.
" is multiplicative in like a Gauss sum." The eta multiplier involves the Dedekind sum, which obeys reciprocity but is not multiplicative; does not factor over prime powers in the naive way and must be handled through the transformation law, not by a Chinese-remainder split.
Key theorem with proof Intermediate+
The signature theorem is the Hardy-Ramanujan asymptotic, obtained by isolating the single major arc at and estimating it by the saddle-point method. The mechanism — transform at the cusp, find the saddle, collect the Gaussian — is the template every later application of the circle method follows.
Theorem (Hardy-Ramanujan asymptotic). As , $$ p(n) ;\sim; \frac{1}{4n\sqrt3},\exp!\Big(\pi\sqrt{\tfrac{2n}{3}}\Big). $$
Proof. Start from . Near write with , small; then . The behaviour of as is governed by the modular transformation of . Since with , and [Apostol 1990], one finds, applying the inversion and keeping the dominant factor, $$ F(e^{-2\pi z}) ;=; \frac{1}{(q;q)\infty} ;\sim; \sqrt{z},\exp!\Big(\frac{\pi^2}{6}\cdot\frac{1}{2\pi z}\Big) ;=; \sqrt{z},\exp!\Big(\frac{\pi}{12 z}\Big) \qquad (z \to 0^+), $$ the exponent coming from $\log F \sim \frac{1}{2\pi z}\sum{m\geq1}m^{-2} = \frac{\zeta(2)}{2\pi z} = \frac{\pi}{12 z}\zeta(2) = \pi^2/6\log F(e^{-2\pi z}) = \sum_{k\geq1}\sum_{m\geq1}\frac{1}{m}e^{-2\pi mkz}\sum_{k}e^{-2\pi mkz} = (e^{2\pi mz}-1)^{-1}z\frac{1}{2\pi i}\int \Gamma(s)\zeta(s+1)(2\pi mz)^{-s},ds$.
The integrand on the major arc at is therefore approximately $$ F(e^{-2\pi z}),q^{-n} ;\approx; \sqrt z,\exp!\Big(\frac{\pi}{12 z} + 2\pi n z\Big). $$ The exponent has a saddle where , i.e. at . At the saddle $$ g(z_0) = \frac{\pi}{12}\sqrt{24 n} + 2\pi n\cdot\frac{1}{\sqrt{24 n}} = \frac{\pi\sqrt{24 n}}{12} + \frac{2\pi n}{\sqrt{24 n}} = \pi\sqrt{\tfrac{2n}{3}}, $$ since collapses with the second term to (both terms equal ). The second derivative controls the Gaussian width. Laplace's method (steepest descent through , the contour locally vertical so that has a maximum of the real part there) gives $$ p(n) \sim \frac{1}{2\pi},\sqrt{z_0},e^{g(z_0)}\sqrt{\frac{2\pi}{g''(z_0)}} = C, n^{-1}\exp!\Big(\pi\sqrt{\tfrac{2n}{3}}\Big), $$ and tracking the constants — , — collapses the prefactor to . The contributions of all other major arcs , , carry an exponent , exponentially smaller, so they do not affect the leading asymptotic.
Bridge. This saddle-point estimate builds toward the exact Rademacher series, and the same major-arc skeleton appears again in Waring's and Goldbach's problems, where the cusp supplies the main term and the singular series. The foundational reason the answer is an exponential of is that the cusp behaviour , dual to the linear growth from the factor, balances at ; this is exactly the statement that the modular transformation of — the inversion proved through Poisson summation in 21.15.01 — converts an unbounded boundary singularity into a controlled Gaussian integral. Putting these together, the circle method generalises the elementary recurrence of 21.16.01: where the pentagonal theorem pinned down exactly but opaquely, the cusp expansion reads off its size transparently, and the bridge is that both are shadows of the single modular object .
Exercises Intermediate+
Advanced results Master
The leading asymptotic is the first term of an exact convergent series, and the same circle-method skeleton governs additive problems far beyond partitions. We collect the Rademacher formula, the role of the eta transformation and Dedekind sums, the general major/minor-arc dissection with its singular series, and the comparison with Ramanujan's tau and the Bessel-function structure.
Theorem 1 (Rademacher's exact convergent series). For [Rademacher 1937], $$ p(n) = \frac{1}{\pi\sqrt2}\sum_{k=1}^{\infty} A_k(n),\sqrt k;\frac{d}{dn}!\left(\frac{\sinh!\big(\frac{\pi}{k}\sqrt{\tfrac{2}{3}(n-\tfrac{1}{24})}\big)}{\sqrt{n-\tfrac{1}{24}}}\right), $$ where and . The series converges, and the partial sum to rounds to the exact integer . The term reproduces the Hardy-Ramanujan asymptotic, since and leads with .
Theorem 2 (eta transformation and the multiplier). Under with , ,
$$
\eta!\Big(\frac{a\tau+b}{c\tau+d}\Big) = \varepsilon(a,b,c,d),{-i(c\tau+d)}^{1/2},\eta(\tau), \qquad \varepsilon = \exp!\Big(\pi i\Big(\frac{a+d}{12c} - s(d,c) - \tfrac14\Big)\Big),
$$
with the Dedekind sum. The reciprocity law makes the multiplier system computable and is what lets be evaluated. This transformation, dual to the theta inversion of 21.04.04 and rooted in the Poisson summation of 21.15.01, is the analytic engine of the whole method [Apostol 1990].
Theorem 3 (the general circle method; singular series). For an additive problem one writes with . Dissecting into major arcs about each with and minor arcs for the rest, the major arcs yield the main term [Vaughan 1997] $$ \int_{\mathfrak{M}} f^s e(-n\alpha),d\alpha \sim \mathfrak{S}(n),\frac{\Gamma(1+1/k)^s}{\Gamma(s/k)},n^{s/k-1}, \qquad \mathfrak{S}(n) = \sum_{q=1}^{\infty}\sum_{\substack{a=1\\gcd(a,q)=1}}^{q}\Big(\frac{S(a,q)}{q}\Big)^s e!\Big(!-\frac{na}{q}\Big), $$ with the complete Gauss-Weyl sum. The singular series encodes the local densities (a product over primes of solution counts mod ), and it is exactly the additive analogue of the sum in the partition problem. The minor arcs are bounded below the main term by Weyl-sum / Vinogradov estimates; Waring's problem (every large a sum of -th powers) and the ternary Goldbach theorem (every large odd a sum of three primes) are the canonical successes.
Theorem 4 (Bessel-function structure and the index ). The modified Bessel function with governs the partition formula because the relevant cusp weight is : the contour integral produces , which has the closed form , equivalently the of Theorem 1. The exponential growth of at large argument is precisely the of each cusp; the Gamma function of 06.01.15 enters as in the Bessel normalisation.
Theorem 5 (sharpness and the error term). Truncating Rademacher's series at terms gives an error for an explicit constant; Lehmer showed the full series does not converge absolutely term-by-term in a naive bound, yet converges conditionally to . The same precision is unavailable for Waring's problem, where only an asymptotic with a power-saving error is known and the singular series may vanish for sporadic (the local obstructions), marking the structural difference between a modular generating function (exact) and a non-modular one (asymptotic only).
Synthesis. Putting these together, the foundational reason the partition problem admits an exact convergent formula while Waring and Goldbach yield only asymptotics is modularity: the partition generating function is , a weakly holomorphic modular form, so the transformation at every cusp is exact and the cusp contributions assemble — through the Kloosterman-type sums and the Bessel function — into a convergent series, whereas the Weyl sums of the general method are not modular and only their major arcs admit a main term, leaving genuine minor-arc error. The central insight is that the singular series of 21.16.01's successor problems is exactly the additive analogue of : both are sums over reduced residues weighted by local data, both encode the arithmetic of each cusp, and both descend from the modular or Poisson transformation that this is exactly the content of 21.15.01. This generalises the elementary recurrence of 21.16.01 into an analytic machine and is dual to the multiplicative Euler-product story of 21.04.04; the bridge is that the same contour-and-cusp anatomy — Cauchy integral, Farey/major-arc dissection, transformation at each rational point, saddle or Bessel evaluation — recurs from partitions to Waring to the Goldbach problem, the circle method being one technique wearing many additive disguises.
Full proof set Master
Proposition 1 (the saddle is at and the leading exponent is ). The function on attains its minimum at with .
Proof. , vanishing where , i.e. ; since this is the unique minimum on . Substituting, . Writing , the first term is and the second is ; their sum is .
Proposition 2 (the Rademacher term is the Hardy-Ramanujan asymptotic). With , the term of Theorem 1 is asymptotic to as .
Proof. The term is . Put , so for large and . Differentiating, the dominant contribution comes from differentiating the exponential: , and combined with the prefactor , the derivative yields . Collecting the algebraic factors: , since . Hence the term is .
Proposition 3 (Dedekind reciprocity makes computable). The Dedekind sum satisfies for , and consequently each multiplier is a computable root of unity times a controlled phase.
Proof. Reciprocity is the standard finite-Fourier evaluation of the sawtooth sum ; it follows from the cotangent representation and the partial-fraction identity for applied symmetrically in [Apostol 1990]. Given reciprocity, is determined recursively by a Euclidean descent on exactly like a continued-fraction expansion, terminating because strictly decreases; each step adds an explicit rational, so with denominator dividing . Therefore is a -th root of unity, and the finite sum is a finite sum of explicit roots of unity, hence computable in closed form for each .
Proposition 4 (major/minor split: the main term comes only from major arcs). In with and large enough, , so the asymptotic is determined by the major arcs.
Proof sketch (the structure, with the Weyl input cited). On a minor arc is poorly approximable: forces . Weyl's inequality (or Vinogradov's mean value for large ) gives for an explicit [Vaughan 1997]. Then for a suitable even where counts solutions of a -fold equation and is bounded by (the mean-value estimate). Choosing large enough that makes the minor-arc total . The major arcs then give the main term of Theorem 3 by the Gauss-sum/singular-integral factorisation.
Connections Master
The asymptotic and exact formulas of this unit are the analytic completion of the elementary partition theory of
21.16.01: the pentagonal recurrence pins down exactly but opaquely, while the circle method reads off its size and an exact convergent series; both are governed by the same Euler function , so the combinatorial identity and the modular transformation are two faces of one object.The modular transformation that drives every cusp expansion here is proved by the Poisson summation formula of
21.15.01; the saddle-point/Laplace estimate of the major-arc integral is the additive-number-theory instance of the stationary-phase and Voronoi-summation machinery developed there.The Bessel-function and Gamma-function structure of Rademacher's series rests on the contour representation of and the special-function identities of
06.01.15; the index , the closed form , and the Mellin-Barnes integral all live in the Gamma-function toolkit.The Jacobi triple product and theta inversion of
21.04.04are the multiplicative-modular siblings of the partition story: the singular series of Waring's problem is the additive analogue of the Euler product, and the eta transformation used here is dual to the theta transformation proved there, so partitions, sums of squares, and Waring's problem all descend from the same modular transformation law.
Historical & philosophical context Master
The circle method was created in Hardy and Ramanujan's 1918 paper [Hardy-Ramanujan 1918] to determine the growth of . Ramanujan's intuition, sharpened by Hardy's analysis, was to integrate the generating function over a circle approaching the unit circle and to localise the integral near the roots of unity, where the modular transformation of the eta function controls the singularity. Their result was the asymptotic together with a finite asymptotic series that, optimally truncated, determined exactly for the values they could check — a feat that astonished MacMahon, who had computed up to by the pentagonal recurrence.
Rademacher's 1937 paper [Rademacher 1937] removed the asymptotic-divergence defect by replacing the Hardy-Ramanujan circular arcs with the Ford circles tangent to the real axis at each rational, and the dominant exponential by the modified Bessel function ; the outcome was the first exactly convergent series for an additive arithmetic function. In the hands of Hardy and Littlewood through the 1920s the same dissection — recast as the major and minor arcs of the unit interval with the singular series as the arithmetic main term — became the Hardy-Littlewood method, the standard tool for Waring's problem and, via Vinogradov's 1937 minor-arc estimates, for the ternary Goldbach theorem [Vaughan 1997]. The Dedekind sums that index the partition multipliers, introduced by Dedekind in his 1877 commentary on Riemann's fragments on elliptic functions and governed by the reciprocity law, recur throughout, tying the partition asymptotics to the transformation theory of modular forms developed by Apostol and others [Apostol 1990].
Bibliography Master
@article{hardyramanujan1918circle,
author = {Hardy, G. H. and Ramanujan, S.},
title = {Asymptotic formulae in combinatory analysis},
journal = {Proceedings of the London Mathematical Society (2)},
volume = {17},
pages = {75--115},
year = {1918}
}
@article{rademacher1937,
author = {Rademacher, Hans},
title = {On the partition function $p(n)$},
journal = {Proceedings of the London Mathematical Society (2)},
volume = {43},
pages = {241--254},
year = {1937}
}
@book{apostol1990modular,
author = {Apostol, Tom M.},
title = {Modular Functions and Dirichlet Series in Number Theory},
series = {Graduate Texts in Mathematics},
volume = {41},
edition = {2nd},
publisher = {Springer-Verlag},
year = {1990}
}
@book{vaughan1997hardylittlewood,
author = {Vaughan, R. C.},
title = {The Hardy-Littlewood Method},
series = {Cambridge Tracts in Mathematics},
volume = {125},
edition = {2nd},
publisher = {Cambridge University Press},
year = {1997}
}
@book{andrews1976partitions,
author = {Andrews, George E.},
title = {The Theory of Partitions},
series = {Encyclopedia of Mathematics and its Applications},
volume = {2},
publisher = {Addison-Wesley},
year = {1976}
}
@article{rademacher1938zuckerman,
author = {Rademacher, Hans and Zuckerman, Herbert S.},
title = {On the Fourier coefficients of certain modular forms of positive dimension},
journal = {Annals of Mathematics (2)},
volume = {39},
number = {2},
pages = {433--462},
year = {1938}
}
@article{lehmer1937series,
author = {Lehmer, D. H.},
title = {On the series for the partition function},
journal = {Transactions of the American Mathematical Society},
volume = {43},
number = {2},
pages = {271--295},
year = {1938}
}