OFFSET
1,1
LINKS
G. C. Greubel, Table of n, a(n) for n = 1..1000
Eric Weisstein's World of Mathematics, Class Number
MATHEMATICA
Select[Range[2145], NumberFieldDiscriminant@Sqrt[#] == # && NumberFieldClassNumber@Sqrt[#] == 4 &] (* Arkadiusz Wesolowski, Oct 22 2012 *)
PROG
(PARI) {ok(n) = n>10 && isfundamental(n) && qfbclassno(n)==4};
for(n=1, 2500, if(ok(n)==1, print1(n, ", "))) \\ G. C. Greubel, Mar 01 2019
(Sage)
is_fund_and_qfbcn_1 = lambda n: is_fundamental_discriminant(n) and QuadraticField(n, 'a').class_number() == 4;
A094613 = lambda n: filter(is_fund_and_qfbcn_1, (1, 2, .., n));
A094613(2500) # G. C. Greubel, Mar 01 2019
CROSSREFS
KEYWORD
nonn
AUTHOR
Eric W. Weisstein, May 14 2004
STATUS
approved