This site is supported by donations to The OEIS Foundation.

 Please make a donation to keep the OEIS running. We are now in our 55th year. In the past year we added 12000 new sequences and reached 8000 citations (which often say "discovered thanks to the OEIS"). We need to raise money to hire someone to manage submissions, which would reduce the load on our editors and speed up editing. Other ways to donate

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A003640 Number of genera of imaginary quadratic field with discriminant -k, k = A003657(n). (Formerly M0090) 6
 1, 1, 1, 1, 1, 2, 1, 2, 1, 2, 1, 2, 2, 2, 1, 1, 2, 2, 2, 2, 1, 1, 2, 1, 1, 1, 4, 2, 2, 2, 2, 1, 2, 1, 2, 2, 2, 2, 4, 2, 1, 1, 4, 2, 1, 2, 2, 1, 2, 2, 2, 1, 2, 1, 4, 1, 2, 2, 2, 1, 4, 1, 2, 1, 2, 2, 2, 1, 1, 4, 4, 2, 2, 1, 2, 2, 2, 1, 4, 2, 4, 1, 4, 2, 1, 4, 4, 1, 2, 2, 2, 2, 2, 2, 2, 1, 4, 1, 4, 2, 2, 2, 2, 1, 2 (list; graph; refs; listen; history; text; internal format)
 OFFSET 1,6 COMMENTS The number of genera of a quadratic field is equal to the number of elements x in the class group such that x^2 = e where e is the identity. - Jianing Song, Jul 24 2018 REFERENCES D. A. Buell, Binary Quadratic Forms. Springer-Verlag, NY, 1989, pp. 224-241. N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence). LINKS Andrew Howroyd, Table of n, a(n) for n = 1..1000 Rick L. Shepherd, Binary quadratic forms and genus theory, Master of Arts Thesis, University of North Carolina at Greensboro, 2013. FORMULA a(n) = 2^(t-1) where t = number of distinct prime divisors of A003657(n). a(n) = 2^(omega(A003657(n)) - 1). MATHEMATICA okQ[n_] := n != 1 && SquareFreeQ[n/2^IntegerExponent[n, 2]] && (Mod[n, 4] == 3 || Mod[n, 16] == 8 || Mod[n, 16] == 4); Reap[For[n = 1, n <= 1000, n++, If[okQ[n], Sow[2^(PrimeNu[n]-1)]]]][[2, 1]] (* Jean-François Alcover, Aug 16 2019, after Andrew Howroyd *) PROG (PARI) for(n=1, 1000, if(isfundamental(-n), print1(2^(omega(n) - 1), ", "))) \\ Andrew Howroyd, Jul 24 2018 (PARI) for(n=1, 1000, if(isfundamental(-n), print1(2^#select(t->t%2==0, quadclassunit(-n).cyc), ", "))) \\ Andrew Howroyd, Jul 24 2018 CROSSREFS Cf. A001221 (omega), A003641, A003642, A003643, A003657, A191408. Sequence in context: A305392 A175301 A214074 * A107459 A087976 A227903 Adjacent sequences:  A003637 A003638 A003639 * A003641 A003642 A003643 KEYWORD nonn,easy,nice AUTHOR EXTENSIONS Name clarified and offset corrected by Jianing Song, Jul 24 2018 STATUS approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

Last modified December 8 02:30 EST 2019. Contains 329850 sequences. (Running on oeis4.)