OFFSET
1,1
COMMENTS
The asymptotic density of this sequence is 1/Pi^2 (A092742). - Amiram Eldar, Feb 23 2021
LINKS
Andrew Howroyd, Table of n, a(n) for n = 1..1000
FORMULA
a(n) = 4*A089269(n). - Andrew Howroyd, Jul 25 2018
MATHEMATICA
FundamentalDiscriminantQ[n_Integer] := n != 1 && (Mod[n, 4] == 1 || ! Unequal[ Mod[n, 16], 8, 12]) && SquareFreeQ[n/2^IntegerExponent[n, 2]] (* via Eric E. Weisstein *); -Select[-Range@550, FundamentalDiscriminantQ@# && EvenQ@# &]
(* Second program: *)
Select[Range[600], Mod[#, 4] == 0 && SquareFreeQ[#/4] && Mod[#, 16] != 12&] (* Jean-François Alcover, Jul 25 2019, after Andrew Howroyd *)
PROG
(PARI) ok(n)={isfundamental(-n) && n%2==0} \\ Andrew Howroyd, Jul 25 2018
(PARI) ok(n)={n%4==0 && issquarefree(n/4) && n%16<>12} \\ Andrew Howroyd, Jul 25 2018
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Robert G. Wilson v, Jun 04 2011
STATUS
approved