OFFSET
2,5
COMMENTS
See A014000 for much more about this sequence. - N. J. A. Sloane, Jun 14 2013
REFERENCES
H. Cohen, A Course in Computational Algebraic Number Theory, Springer, 1993, pp. 515-519.
LINKS
S. R. Finch, Class number theory
Steven R. Finch, Class number theory [Cached copy, with permission of the author]
PROG
(PARI) lista(nn) = { for (n=2, nn, if (isfundamental(n), nc = core(n); m = Mod (nc, 4); if ((m == 2) || (m == 3), d = 1); if ((m == 1), d = 4); b = 1; a = 0; while (a == 0, v = nc*b^2; if (issquare(v-d), a = sqrtint(v-d), if (issquare(v+d), a = sqrtint(v+d))); if (a == 0, b++; ); ); print1(b, ", "); ); ); } \\ Michel Marcus, Sep 25 2018
CROSSREFS
KEYWORD
nonn
AUTHOR
Eric Rains (rains(AT)caltech.edu)
EXTENSIONS
Offset corrected by Jianing Song, Mar 31 2019
STATUS
approved