login
Numbers n such that every genus of binary quadratic forms of discriminant -4n consists of a single class and the class number h(-4n) = 2.
4

%I #11 Jun 10 2018 02:37:54

%S 5,6,8,9,10,12,13,15,16,18,22,25,28,37,58

%N Numbers n such that every genus of binary quadratic forms of discriminant -4n consists of a single class and the class number h(-4n) = 2.

%D David A. Cox, "Primes of the Form x^2 + n y^2", Wiley, 1989, p. 60.

%D G. B. Mathews, Theory of Numbers, Chelsea, no date, p. 263.

%o (PARI) ok(n)={my(u=quadclassunit(-4*n).cyc); #u==1 && !select(t->t<>2, u)} \\ _Andrew Howroyd_, Jun 09 2018

%Y A subsequence of A000926.

%Y Cf. A033267, A033268, A033269.

%K nonn,fini,full

%O 1,1

%A _N. J. A. Sloane_