OFFSET
2,159
COMMENTS
Not to be confused with A317991, which gives the 2-ranks of the *form class groups* of real quadratic fields.
LINKS
Jianing Song, Table of n, a(n) for n = 2..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) = my(w = omega(D) - 1); my(f = factor(D)[, 1]~); for(i=1, #f, if(f[i]%4==3, return(w-1))); return(w) \\ gives 2-rank of Cl(D) for fundamental D
for(D=1, 1000, if(D>1 && isfundamental(D), print1(r(D), ", ")))
CROSSREFS
KEYWORD
nonn
AUTHOR
Jianing Song, Dec 09 2025
STATUS
approved
