login
A290098
Characteristic function for A003658 (fundamental discriminants of real quadratic fields).
3
1, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 1, 1
OFFSET
1
FORMULA
Asymptotic mean: Limit_{m->oo} (1/m) * Sum_{k=1..m} a(k) = 3/Pi^2 = 0.303963... (A104141). - Amiram Eldar, Jan 14 2024
MATHEMATICA
Block[{nn = 105, t}, t = ConstantArray[0, nn]; ReplacePart[t, Map[# -> 1 &, Select[Range@ nn, NumberFieldDiscriminant@ Sqrt@ # == # &]]]] (* Michael De Vlieger, Aug 23 2017 *)
PROG
(PARI) A290098(n) = isfundamental(n);
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Aug 22 2017
STATUS
approved