OFFSET
1,1
COMMENTS
LINKS
Jianing Song, Table of n, a(n) for n = 1..324
Rick L. Shepherd, Binary quadratic forms and genus theory, Master of Arts Thesis, University of North Carolina at Greensboro, 2013.
FORMULA
The form class groups of positive binary quadratic forms with discriminant -39, -55, -56, -63, -68, -80 and -128 are all isomorphic to C_4, so 39, 55, 56, 63, 68, 80 and 128 are all members of this sequence.
PROG
(PARI) isA317987(n) = (-n)%4 < 2 && 2^(1+#quadclassunit(-n)[2])==quadclassunit(-n)[1]
CROSSREFS
KEYWORD
nonn,fini
AUTHOR
Jianing Song, Oct 02 2018
STATUS
approved