OFFSET
1,1
COMMENTS
For the discriminant of the quadratic field Q(sqrt(n)), see A037449.
a(n) is the smallest positive N such that ((-n)/k) = ((-n)/(k mod N)) for every odd k that is coprime to n, where ((-n)/k) is the Jacobi symbol. As we have Dirichlet's theorem on arithmetic progressions, a(n) is also the smallest positive N such that ((-n)/p) = ((-n)/(p mod N)) for every odd prime p that is not a factor of n. - Jianing Song, May 16 2024
FORMULA
Let b(n) = A007913(n), then a(n) = b(n) if b(n) == 3 (mod 4) and 4*b(n) otherwise. - Jianing Song, May 16 2024
MATHEMATICA
-Table[NumberFieldDiscriminant[Sqrt[-n]], {n, 1, 70}]
PROG
(PARI) a(n) = -quaddisc(-n) \\ Jianing Song, May 16 2024
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Artur Jasinski, Jan 27 2012
STATUS
approved