login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A033197 Discriminants of quadratic number fields Q(sqrt -n) for n squarefree. 5
-4, -8, -3, -20, -24, -7, -40, -11, -52, -56, -15, -68, -19, -84, -88, -23, -104, -116, -120, -31, -132, -136, -35, -148, -152, -39, -164, -168, -43, -184, -47, -51, -212, -55, -228, -232, -59, -244, -248, -260, -264, -67, -276, -280, -71, -292, -296, -308, -312, -79, -328, -83, -340, -344, -87, -356 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
REFERENCES
David A. Cox, "Primes of the Form x^2 + n y^2", Wiley, 1989, p. 103.
LINKS
FORMULA
For n squarefree and negative, a(n) = n if n == 1 (mod 4), otherwise a(n) = 4n.
MATHEMATICA
max = 56; j = 1; Do[ If[ SquareFreeQ[n], v[j] = n; j = j+1], {n, 1, 2*max}]; Do[ a[n] = -v[n]*If[Mod[v[n], 4] == 3, 1, 4], {n, 1, j-1}]; Table[a[n], {n, 1, max}] (* Jean-François Alcover, Oct 18 2011, after PARI *)
PROG
(PARI) bnd = 1000; L = vector(bnd); j = 1; for (i=1, bnd, if(issquarefree(i), L[j]=i:j=j+1)); M = vector(j-1); for (i=1, j-1, M[i]=if((L[i]%4==3), -L[i], -4*L[i])); M
CROSSREFS
Values of n run through A005117. See A000924 for class numbers of these fields.
Sequence in context: A066199 A103647 A372356 * A124002 A014457 A365941
KEYWORD
sign,easy,nice
AUTHOR
STATUS
approved

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified August 15 02:30 EDT 2024. Contains 375171 sequences. (Running on oeis4.)