OFFSET
1
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..65537
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