After the Riemann Hypothesis · result 22 of 48 · Quadratic fields
Euler’s convenient numbers: the list of 65 is complete
Euler’s list of 65 convenient numbers has no missing members.
The idea
Euler wanted big primes. He noticed that for certain n, if an odd number m can be written as x² + n·y² in exactly one way (with x and y sharing no factor), then m is prime. He called these n numeri idonei, convenient numbers, and used n = 1,848 to show that 18,518,809 = 197² + 1,848 × 100² is prime, a record in its day.
He found 65 such n and no more. His own test for convenience is charming: n is convenient unless n = ab + bc + ca for some whole numbers 0 < a < b < c. For example 11 = 1·2 + 2·3 + 3·1, so 11 is not convenient.
Gauss explained the list: n is convenient exactly when every “genus” of forms x² + ny² holds a single class, which is a statement about a class group. That is how the zeros come in. Chowla proved in 1934 that the list is finite. Weinberger proved in 1973 that at most two could be missing, and none under the generalized hypothesis.
Where it stands
- Before
- Euler found 65 “convenient” (idoneal) numbers n, from 1 to 1,848, for which a simple test with x² + n·y² proves a number prime. No more were ever found. Peter Weinberger proved in 1973 that at most two more could exist, and none if the generalized hypothesis holds.
- What the proof means for it
- Now a theorem The list is complete: a question open since the 1700s. We wrote out a short proof from the certified statement and one 2015 bound for class numbers, ran the computation it needs (every discriminant down to −10¹⁰), and re-checked what we could of the 2015 paper.
- Open work to be done
- Have a number theorist check our write-up, which is on this result’s own page.
- Difficulty of that work
- 1 · Easy Bookkeeping: re-read the old proof, confirm which form of the hypothesis it used, and restate the result without the “if”. (Our own rough estimate.)
What we did
We wrote out a short proof that the list is complete, and ran the computation it needs. It does not follow Weinberger’s paper. It uses one bound from a 2015 paper of Lamzouri, Li and Soundararajan, which assumes exactly the hypothesis that the Lean library proves. (Our first version, of 21 November, also used a second theorem of that paper. This version does not need it.)
Step 1, large fundamental discriminants. Write −4n as a fundamental discriminant −q times a square f². If n is convenient, the field of discriminant −q also has one class per genus, so its class number is 2^(k−1), where k is the number of primes dividing q. Corollary 1.3 of the 2015 paper says the class number is at least 2,843 when q ≥ 10¹⁰, and more as q grows. That is over five times 2^(k−1) for every such q (we checked the comparison for every k). So q < 10¹⁰.
Step 2, the computation. We searched every negative discriminant down to −10¹⁰. A sieve throws most out (if every class has order 1 or 2, then any prime p that splits must have p² at least a quarter of the discriminant), and an exact test is run on the survivors. Exactly 101 discriminants have one class per genus, the largest being −7,392 = −4 × 1,848. Of these, 65 are fundamental (the largest is −5,460) and 65 have the form −4n. Those 65 values of n are Euler’s list. The search took 28 seconds on three processors.
Step 3, large squares. That leaves −4n = −q·f² with q one of the 65 values and f large. The class number of such a discriminant is given by a classical formula; it is at least 2^(k−1) × φ(f) / 3. With one class per genus it can be at most 2 × 2^(number of odd primes dividing n). Comparing the two forces φ(f) ≤ 12 × 2^(number of odd primes dividing f). Exactly 79 values of f satisfy that, the largest being 420. So n is at most 5,460 × 420² / 4, about 241 million, which is inside the range already searched.
Re-checking the 2015 paper. You asked us to look at its proofs. We read the proofs of its Theorem 1.5 and Corollary 1.3 (the bound we use) and of Theorem 1.4, in a text copy of the public version in which some formulas did not survive. What we could re-compute, we did: 19 checks, all passing. They include three of the paper’s lemmas tested against the actual primes up to three million (the error was never more than 35% of what the lemma allows); each numerical inequality in the two proofs that we could read; the final step that produces the bound; and the one step the authors did by computer.
A test on real class numbers. The bound says a class number cannot be too small. We looked for the discriminants between −10¹⁰ and −3.6 × 10¹⁰ most likely to have small class numbers (those in which the first 24 to 28 primes all fail to split), computed their class numbers exactly, and compared. The smallest was 2.09 times the bound. So the bound holds on the hardest cases we could find, and our Step 1 needs it only with a factor of five to spare.
Two things we noticed in Theorem 1.4, which we no longer use. A lemma is stated for m ≥ 3 and applied where m can be 2 (it remains true there). And the last line of the proof gives a slightly larger bound than the theorem states when the modulus is small; the theorem still holds, because it allows the alternative “p ≤ 10⁹” in exactly those cases. These are our readings of an imperfect copy and may be our mistake.
What this is and is not. It is our own write-up, checked by our own programs (in the paper’s source, folder c17_idoneal), with a second, independent count of the convenient numbers up to two million by Euler’s rule. We did not verify the 2015 paper’s proofs as a referee would: its lemmas about characters, and the formulas we could not read, are taken on trust, as are the Lean certification and the standard facts about quadratic forms. It has not been reviewed by a number theorist.
What it rests on
This result needs the first two boxes, and both are proved. Outlined boxes are the ones it uses.
More results
← No Siegel zeros, and class numbers you can compute The list of all 48Chebyshev’s claim about primes of the form 4k + 3 →