TOPICS
Search

Heegner Number


A Heegner number is a positive integer d that is squarefree and for which the imaginary quadratic field K=Q(sqrt(-d)) has class number one. Equivalently, the ring of integers O_K is a principal ideal domain and hence a unique factorization domain. For d=1 and 2, the ring of integers is

 O_K=Z[sqrt(-d)].
(1)

For the other Heegner numbers, all of which are congruent to 3 modulo 4, the ring of integers is

 O_K={(a+bsqrt(-d))/2:a,b in Z, a=b  (mod2)}.
(2)

The determination of the Heegner numbers is called Gauss's class number problem. There are exactly nine: 1, 2, 3, 7, 11, 19, 43, 67, and 163 (OEIS A003173). Their corresponding fundamental discriminants are -4, -8, -3, -7, -11, -19, -43, -67, and -163, respectively. Heilbronn and Linfoot (1934) showed that any additional value would have to exceed 10^9. Heegner (1952) proved that the list was complete, although his proof was not accepted as complete at the time (Meyer 1970). The result was subsequently established independently by Baker (1966) and Stark (1967), and later examination showed Heegner's proof to be essentially correct (Conway and Guy 1996).

For d=3, 7, 11, 19, 43, 67, or 163, write z=(a+bsqrt(-d))/2, where a and b have the same parity. The field norm of z is

 N(z)=zz^_=(a^2+db^2)/4.
(3)

If N(z) is an ordinary prime number, then z is a prime element of O_K. The converse does not hold: an inert rational prime number p remains a prime element of O_K, but has N(p)=p^2. The illustrations below therefore show the elements whose norms are ordinary prime numbers, rather than all prime elements.

HeegnerNumberPrimeNorm163

The elements whose norms are ordinary prime numbers for d=163 are illustrated above (Pegg 2026). Since their imaginary parts are integer multiples of sqrt(163)/2, the points lie in horizontal rows. Drawing each element as a narrow rectangle makes consecutive values that are prime in a row join into the visible "barcode." The boundary circle is the norm bound used to select the plotted elements, not an additional arithmetic structure.

More specifically, if d=4p-1, then

 N(n+(1+sqrt(-d))/2)=n^2+n+p.
(4)

For d=163 this gives p=41, so the 40 consecutive values that are prime for n=0, 1, ..., 39 appear as an uninterrupted bar in the first nonreal row. Replacing n by n-1 gives Euler's prime-generating polynomial n^2-n+41. The same construction for d=67 gives n^2+n+17.

HeegnerNumberPrimeNorm67

The d=67 illustration above also shows exact parabolas from Pegg's construction that contain no elements whose norms are prime. In fact, for k=1 and 3, the parabolas x=+/-(kd/4-y^2/(kd)) satisfy

 ((kd)/4-(y^2)/(kd))^2+y^2=((kd)/4+(y^2)/(kd))^2.
(5)

Consequently, lattice points on these parabolas for which the expression on the right is an integer greater than one have square norm, so the norm is a composite number. The Wolfram Language implementation ResourceFunction["HeegnerPrime"] provides another way to compute prime elements in these rings (Pegg 2021).

The Heegner numbers also have connections with other striking results in prime number theory. In particular, the j-function provides connections between e, pi, and algebraic integers.


See also

Binary Quadratic Form Discriminant, Class Number, Gauss's Class Number Problem, j-Function, Prime Element, Prime-Generating Polynomial, Quadratic Field, Ramanujan Constant, Ring of Integers, Unique Factorization Domain

Explore with Wolfram|Alpha

References

Baker, A. "Linear Forms in the Logarithms of Algebraic Numbers." Mathematika 13, 204-216, 1966. https://doi.org/10.1112/S0025579300003971.Conway, J. H. and Guy, R. K. "The Nine Magic Discriminants." In The Book of Numbers. New York: Springer-Verlag, pp. 224-226, 1996.Dekker, T. J. "Primes in Quadratic Fields." 2003, rev. 2009. https://staff.fnwi.uva.nl/t.j.dekker/PrimesPaper/Primes.pdf.Heegner, K. "Diophantische Analysis und Modulfunktionen." Math. Z. 56, 227-253, 1952.Heilbronn, H. A. and Linfoot, E. H. "On the Imaginary Quadratic Corpora of Class-Number One." Quart. J. Math. (Oxford) 5, 293-301, 1934.Meyer, C. "Bemerkungen zum Satz von Heegner-Stark über die imaginär-quadratischen Zahlkörper mit der Klassenzahl Eins." J. reine angew. Math. 242, 179-214, 1970. Pegg, E. Jr. "HeegnerPrime." Wolfram Function Repository, 2021. https://resources.wolframcloud.com/FunctionRepository/resources/HeegnerPrime/. Pegg, E. Jr. "The Hippasus Primes." Wolfram Community, updated Aug. 2026. https://community.wolfram.com/groups/-/m/t/965609.Sloane, N. J. A. Sequence A003173/M0827 in "The On-Line Encyclopedia of Integer Sequences."Stark, H. M. "A Complete Determination of the Complex Quadratic Fields of Class Number One." Michigan Math. J. 14, 1-27, 1967.

Referenced on Wolfram|Alpha

Heegner Number

Cite this as:

Weisstein, Eric W. "Heegner Number." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/HeegnerNumber.html

Subject classifications