reviewed
approved
reviewed
approved
proposed
reviewed
editing
proposed
0, 3, 7, 13, 20, 26, 36, 42, 52, 59, 69, 75, 89, 95, 105, 115, 126, 132, 146, 152, 166, 176, 186, 192, 210, 217, 227, 237, 251, 257, 275, 281, 295, 305, 315, 325, 344, 350, 360, 370, 388, 394, 412, 418, 432, 446, 456, 462, 484, 491, 505, 515, 529, 535, 553, 563, 581
1,1
0,2
ok[b_, c_] := Block[{d = b^2 - 4 c}, d > 0 && IntegerQ@ Sqrt@ d]; a[n_] := Sum[ Boole@ ok[b, c], {b, -n, n}, {c, -n, n}]; Array[a, 5057, 0] (* Giovanni Resta, Jan 28 2020 *)
(Python 3.7) [sum([1 for b in range(-n, n+1) for c in range(-n, n+1) if b**2-4*c > 0 and int((-b+(b**2-4*c)**0.5)/2) == (-b+(b**2-4*c)**0.5)/2]) for n in range(1, 0, 101)]
a(0)=0 prepended by Michel Marcus, Jan 30 2020
approved
editing
reviewed
approved
proposed
reviewed
editing
proposed
editing
proposed
(PARI) isok(b, c) = my(q); (b^2 > 4*c) && issquare(b^2-4*c);
proposed
editing