The determination of such numbers is a special case of the class number problem, and they underlie several striking results in number theory.
According to the (Baker–)Stark–Heegner theorem there are precisely nine Heegner numbers:
1, 2, 3, 7, 11, 19, 43, 67, and 163. (sequence A003173 in the OEIS)
This result was conjectured by Gauss and proved up to minor flaws by Kurt Heegner in 1952. Alan Baker and Harold Stark independently proved the result in 1966, and Stark further indicated the gap in Heegner's proof was minor.[2]
Euler's prime-generating polynomial
which gives (distinct) primes for n = 0, ..., 39, is related to the Heegner number 163 = 4 · 41 − 1.
Rabinowitz[3] proved that
gives primes for if and only if this quadratic's discriminant is the negative of a Heegner number.
(Note that yields , so is maximal.)
1, 2, and 3 are not of the required form, so the Heegner numbers that work are 7, 11, 19, 43, 67, 163, yielding prime generating functions of Euler's form for 2, 3, 5, 11, 17, 41; these latter numbers are called lucky numbers of Euler by F. Le Lionnais.[4]
This number was discovered in 1859 by the mathematician Charles Hermite.[7]
In a 1975 April Fool article in Scientific American magazine,[8] "Mathematical Games" columnist Martin Gardner made the hoax claim that the number was in fact an integer, and that the Indian mathematical genius Srinivasa Ramanujan had predicted it—hence its name.
In what follows, j(z) denotes the j-invariant of the complex number z. Briefly, is an integer for d a Heegner number, and
via the q-expansion.
If is a quadratic irrational, then its j-invariant is an algebraic integer of degree , the class number of and the minimal (monic integral) polynomial it satisfies is called the 'Hilbert class polynomial'. Thus if the imaginary quadratic extension has class number 1 (so d is a Heegner number), the j-invariant is an integer.
The coefficients asymptotically grow as
and the low order coefficients grow more slowly than , so for , j is very well approximated by its first two terms. Setting yields
Now
so,
Or,
where the linear term of the error is,
explaining why is within approximately the above of being an integer.
For the four largest Heegner numbers, the approximations one obtains[9] are as follows.
Alternatively,[10]
where the reason for the squares is due to certain Eisenstein series. For Heegner numbers , one does not obtain an almost integer; even is not noteworthy.[11] The integer j-invariants are highly factorisable, which follows from the form
and factor as,
These transcendental numbers, in addition to being closely approximated by integers (which are simply algebraic numbers of degree 1), can be closely approximated by algebraic numbers of degree 3,[12]
The roots of the cubics can be exactly given by quotients of the Dedekind eta functionη(τ), a modular function involving a 24th root, and which explains the 24 in the approximation. They can also be closely approximated by algebraic numbers of degree 4,[13]
If denotes the expression within the parenthesis (e.g. ), it satisfies respectively the quartic equations
Note the reappearance of the integers as well as the fact that
which, with the appropriate fractional power, are precisely the j-invariants.
Similarly for algebraic numbers of degree 6,
where the xs are given respectively by the appropriate root of the sextic equations,
with the j-invariants appearing again. These sextics are not only algebraic, they are also solvable in radicals as they factor into two cubics over the extension (with the first factoring further into two quadratics). These algebraic approximations can be exactly expressed in terms of Dedekind eta quotients. As an example, let , then,
where the eta quotients are the algebraic numbers given above.
The three numbers 88, 148, 232, for which the imaginary quadratic field has class number 2, are not Heegner numbers but have certain similar properties in terms of almost integers. For instance,
and
Given an odd prime p, if one computes for (this is sufficient because ), one gets consecutive composites, followed by consecutive primes, if and only if p is a Heegner number.[14]
For details, see "Quadratic Polynomials Producing Consecutive Distinct Primes and Class Groups of Complex Quadratic Fields" by Richard Mollin.[15]
^Le Lionnais, F. Les nombres remarquables. Paris: Hermann, pp. 88 and 144, 1983.
^Weisstein, Eric W."Transcendental Number". MathWorld. gives , based on
Nesterenko, Yu. V. "On Algebraic Independence of the Components of Solutions of a System of Linear Differential Equations." Izv. Akad. Nauk SSSR, Ser. Mat. 38, 495–512, 1974. English translation in Math. USSR 8, 501–518, 1974.
^The absolute deviation of a random real number (picked uniformly from [0,1], say) is a uniformly distributed variable on [0, 0.5], so it has absolute average deviation and median absolute deviation of 0.25, and a deviation of 0.22 is not exceptional.