OFFSET
1,3
COMMENTS
Number of elements that square to the identity in the form class group of discriminant D = A079896(n).
LINKS
Jianing Song, Table of n, a(n) for n = 1..10000
Rick L. Shepherd, Binary quadratic forms and genus theory, Master of Arts Thesis, University of North Carolina at Greensboro, 2013.
FORMULA
PROG
(PARI) r(D) = omega(D) - if(D%32==0, 0, if(D%16==4, 2, 1)) \\ gives 2-rank of Cl+(D)
for(D=1, 1000, if(D%4<=1 && !issquare(D), print1(2^r(D), ", ")))
CROSSREFS
Cf. A003640 (for imaginary quadratic fields).
Sequences related to the class groups of real quadratic fields:
| Class groups | Form class groups |
-------------+-------------------------------+-------------------------------+
-------------+-------------------------------+-------------------------------+
For a list of sequences related to the class numbers of real quadratic fields, see A087048.
KEYWORD
nonn
AUTHOR
Jianing Song, Dec 09 2025
STATUS
approved
