Mathwords logoMathwords

Ramanujan Constant — Definition, Formula & Example

Ramanujan's constant is the number eπ163e^{\pi\sqrt{163}}, which is about 262,537,412,640,768,743.99999999999925. It sits so close to a whole number that a calculator with fewer than about 30 significant digits shows it as an integer, yet it is not one.

Ramanujan's constant is the real number eπ163e^{\pi\sqrt{163}}. It is transcendental by the Gelfond–Schneider theorem, since it equals (−1)−i163(-1)^{-i\sqrt{163}}. Its near-integrality comes from the qq-expansion of the modular jj-invariant, j(τ)=q−1+744+196884 q+⋯j(\tau) = q^{-1} + 744 + 196884\,q + \cdots. At τ=1+−1632\tau = \tfrac{1+\sqrt{-163}}{2} this gives q=−e−π163q = -e^{-\pi\sqrt{163}} and j(τ)=−6403203j(\tau) = -640320^3. The value of jj is an integer because Q(−163)\mathbb{Q}(\sqrt{-163}) has class number 1, and 163 is the largest Heegner number with this property.

Key Formula

eπ163=6403203+744−ε,ε≈196884 e−π163≈7.5×10−13e^{\pi\sqrt{163}} = 640320^3 + 744 - \varepsilon, \qquad \varepsilon \approx 196884\,e^{-\pi\sqrt{163}} \approx 7.5 \times 10^{-13}
Where:
  • 6403203640320^3 = The integer −j(1+−1632)-j\left(\tfrac{1+\sqrt{-163}}{2}\right), which equals 262,537,412,640,768,000
  • 744744 = The constant term in the expansion of the jj-function
  • ε\varepsilon = The tiny gap below the integer. It is dominated by the next term in the jj-expansion.

Worked Example

Problem: Use the formula eπ163=6403203+744−εe^{\pi\sqrt{163}} = 640320^3 + 744 - \varepsilon to find the integer nearest to Ramanujan's constant, and estimate how far below that integer it lies.
Step 1: Cube 640320 using exact integer arithmetic.
6403203=262,537,412,640,768,000640320^3 = 262{,}537{,}412{,}640{,}768{,}000
Step 2: Add the constant term 744 from the jj-function expansion.
262,537,412,640,768,000+744=262,537,412,640,768,744262{,}537{,}412{,}640{,}768{,}000 + 744 = 262{,}537{,}412{,}640{,}768{,}744
Step 3: Estimate the gap using the next coefficient, 196884. Dividing it by a number near 2.6×10172.6 \times 10^{17} gives a very small result.
ε≈196884262,537,412,640,768,744≈7.5×10−13\varepsilon \approx \frac{196884}{262{,}537{,}412{,}640{,}768{,}744} \approx 7.5 \times 10^{-13}
Answer: The nearest integer is 262,537,412,640,768,744. Ramanujan's constant lies about 7.5×10−137.5 \times 10^{-13} below it, so eπ163≈262,537,412,640,768,743.99999999999925e^{\pi\sqrt{163}} \approx 262{,}537{,}412{,}640{,}768{,}743.99999999999925.

Why It Matters

In a course on algebraic number theory or modular forms, this constant is the standard showcase for class field theory and complex multiplication. The same number 163 explains why Euler's polynomial n2+n+41n^2 + n + 41 gives primes for n=0n = 0 to 3939, because its discriminant is 1−4⋅41=−1631 - 4 \cdot 41 = -163. The digits 640320 also appear in the Chudnovsky formula, which has been used to compute trillions of digits of π\pi.

Common Mistakes

Mistake: Believing eπ163e^{\pi\sqrt{163}} is exactly an integer because a calculator or spreadsheet displays it that way.
Correction: Standard double precision keeps only about 16 significant digits, and the first non-9 digit appears around the 30th digit. The number is provably transcendental. Martin Gardner's 1975 April Fools' column jokingly claimed it was an integer, and the name "Ramanujan's constant" comes from that hoax.

Related Terms