Ramanujan Constant — Definition, Formula & Example
Ramanujan's constant is the number , 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 . It is transcendental by the Gelfond–Schneider theorem, since it equals . Its near-integrality comes from the -expansion of the modular -invariant, . At this gives and . The value of is an integer because has class number 1, and 163 is the largest Heegner number with this property.
Key Formula
Where:
- = The integer , which equals 262,537,412,640,768,000
- = The constant term in the expansion of the -function
- = The tiny gap below the integer. It is dominated by the next term in the -expansion.
Worked Example
Problem: Use the formula 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.
Step 2: Add the constant term 744 from the -function expansion.
Step 3: Estimate the gap using the next coefficient, 196884. Dividing it by a number near gives a very small result.
Answer: The nearest integer is 262,537,412,640,768,744. Ramanujan's constant lies about below it, so .
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 gives primes for to , because its discriminant is . The digits 640320 also appear in the Chudnovsky formula, which has been used to compute trillions of digits of .
Common Mistakes
Mistake: Believing 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.
