The mathematics

Beyond the
famous formulas.

Follow Ramanujan from Bernoulli numbers to prime factors, trigonometric sums, definite integrals and the distribution of primes.

Bernoulli numbers and the first paper

Ramanujan’s first full research paper appeared in the Journal of the Indian Mathematical Society in 1911. Bernoulli numbers occur when the exponential generating function x/(ex − 1) is expanded. With B₁ = −1/2, its first terms are 1 − x/2 + x²/12 + ⋯. These numbers also enter exact formulas for sums of powers.

For example, 1² + 2² + ⋯ + m² = m³/3 + m²/2 + m/6. A formula like this packages a whole sequence of finite sums in one polynomial. The paper studies arithmetic features of Bernoulli numbers, including restrictions on their denominators.

Read the sources · Ramanujan · Some properties of Bernoulli’s numbers

What a typical integer looks like

Let ω(n) count distinct prime factors: ω(12) = 2 because 12 = 2² · 3. Hardy and Ramanujan showed that the number of distinct prime factors of a typical large integer is close to log log n in the sense of normal order. For a fixed relative tolerance, the proportion of integers up to x outside that tolerance tends to zero as x grows.

One reason for the logarithm of a logarithm is that a proportion of about 1/p of the integers are divisible by each prime p. Adding those contributions gives the expected scale. Proving that most integers stay near the scale also requires controlling variation.

Read the sources · Hardy and Ramanujan · The normal number of prime factors of a number n

Divisibility in a sum of rotations

The Ramanujan sum cq(n) adds e2πian/q over a from 1 to q with gcd(a, q) = 1. The summands are complex rotations and the result is an integer. For a prime p, the sum equals p − 1 if p divides n and −1 otherwise. In the second case, adding the missing a = 0 term gives a complete geometric series with sum zero.

c₃(1) = e2πi/3 + e4πi/3 = −1

These sums connect divisibility with oscillation. Ramanujan used them to express arithmetic functions in a form reminiscent of Fourier expansions.

Read the sources · Ramanujan · On certain trigonometrical sums and their applications

A series can encode an integral

Ramanujan found striking transformations for definite integrals. One principle associated with his work recovers a Mellin transform, an integral against xs−1, from a suitable interpolation of the coefficients of a power series. Its hypotheses control convergence and the interpolation.

In the simplest example, e−x = Σ (−1)ⁿxⁿ/n!, so the coefficient sequence after removing (−1)ⁿ/n! is the constant 1. The corresponding integral ∫₀∞ xs−1e−x dx is Γ(s) for real s > 0. The gamma function extends factorial values via Γ(n + 1) = n!.

Read the sources · Ramanujan · Some definite integrals · Collected papers · further papers on integrals

How close must the next prime be?

Bertrand’s postulate says that for every integer n > 1 there is a prime p with n < p < 2n. Ramanujan published a proof in 1919. His argument also gives a way to ask for several primes in a doubling interval.

The n-th Ramanujan prime is the smallest integer R such that every real x ≥ R has at least n primes in (x/2, x]. The first values are 2, 11, 17, 29 and 41. The definition asks when a lower bound persists for all later intervals, so checking one interval cannot establish a record.

Read the sources · Ramanujan · A proof of Bertrand’s postulate · Jonathan Sondow · Ramanujan primes and Bertrand’s postulate

Follow a result forward

What are c₅(1) and c₅(5)?

Reveal the explanation

For n = 1, the four terms complete the five fifth roots of unity when 1 is added, so their sum is −1. For n = 5 each term is 1, and the sum is 4.

Explore the archive

Search page titles and topics. Press / to open. Esc to close.