cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A094619 Fundamental discriminants of real quadratic number fields with class number 2.

Original entry on oeis.org

40, 60, 65, 85, 104, 105, 120, 136, 140, 156, 165, 168, 185, 204, 205, 220, 221, 232, 264, 265, 273, 280, 285, 296, 305, 312, 345, 348, 357, 364, 365, 377, 380, 385, 408, 424, 429, 440, 444, 456, 460, 465, 476, 481, 485, 488, 492, 493, 533, 545, 552, 561, 565
Offset: 1

Views

Author

Eric W. Weisstein, May 14 2004

Keywords

Crossrefs

Programs

  • Mathematica
    Select[Range[565], NumberFieldDiscriminant@Sqrt[#] == # && NumberFieldClassNumber@Sqrt[#] == 2 &] (* Arkadiusz Wesolowski, Oct 22 2012 *)
  • PARI
    is(n)=n>9 && isfundamental(n) && qfbclassno(n)==2 \\ Charles R Greathouse IV, Nov 05 2014
    
  • Sage
    is_fund_and_qfbcn_1 = lambda n: is_fundamental_discriminant(n) and QuadraticField(n, 'a').class_number() == 2;
    A094619 = lambda n: filter(is_fund_and_qfbcn_1, (1, 2, .., n));
    A094619(600) # G. C. Greubel, Mar 01 2019