OFFSET
0,1
COMMENTS
Conjecture: a(n) < A002148(n) for all n >= 1. - Jianing Song, Jul 20 2022
REFERENCES
Duncan A. Buell, Binary Quadratic Forms, Springer-Verlag, NY, 1989, pp. 224-241.
N. J. A. Sloane, A Handbook of Integer Sequences, Academic Press, 1973 (includes this sequence).
N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).
LINKS
David Broadhurst and T. D. Noe, Table of n, a(n) for n = 0..28603
D. Shanks, Review of R. B. Lakein and S. Kuroda, Tables of class numbers h(-p) for fields Q(sqrt(-p)), p <= 465071, Math. Comp., 24 (1970), 491-492.
MATHEMATICA
With[{p = Select[Prime[Range[1000]], Mod[#, 8] == 7 &]}, c = NumberFieldClassNumber[Sqrt[-p]]; p[[TakeWhile[Flatten[FirstPosition[c, #] & /@ Range[1, Max[c], 2]], NumberQ]]]] (* Amiram Eldar, Mar 16 2026 *)
PROG
(PARI) a(n) = forprime(p=2, oo, if ((p % 8) == 7, if (qfbclassno(-p) == 2*n+1, return(p)))); \\ Michel Marcus, Jul 20 2022
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved
