OFFSET
1,1
COMMENTS
For a positive fundamental discriminant d, the class number of the real quadratic field of discriminant d is odd if and only if d = 8 or is of one of the three following forms: (i) p, where p is a prime congruent to 1 modulo 4; (ii) 4p or 8p, where p is a prime congruent to 3 modulo 4; (iii) pq, where p, q are distinct primes congruent to 3 modulo 4. See Theorem 1 and Theorem 2 of Ezra Brown's link. A003656 gives the case where the class number is 1.
LINKS
Jianing Song, Table of n, a(n) for n = 1..22463 (all terms <= 10^6).
Ezra Brown, Class numbers of real quadratic number fields, Trans. Amer. Math. Soc. 190 (1974), 99-107.
Henri Cohen and X.-F. Roblot, Computing the Hilbert Class Field of Real Quadratic Fields, Math. Comp. 69 (2000), 1229-1244.
Eric Weisstein's World of Mathematics, Class Number
EXAMPLE
The class number of the quadratic field with discriminant 229 (namely Q(sqrt(229))) is 3, so 229 is a term.
The class number of the quadratic field with discriminant 1756 (namely Q(sqrt(439))) is 5, so 1756 is a term.
PROG
(PARI) isA342368(D) = if((D>1) && isfundamental(D), my(h=quadclassunit(D)[1]); (h%2)&&(h>1), 0)
CROSSREFS
KEYWORD
nonn
AUTHOR
Jianing Song, Mar 09 2021
STATUS
approved