OFFSET
0,2
LINKS
Hugo Pfoertner, Table of n, a(n) for n = 0..1000
MATHEMATICA
Sqrt@ Select[Range[#1 #2^2 + 1, (#1 + 1) #2^2 - 1], IntegerQ@ Sqrt@ # &] & @@ # & /@ Table[s = 1; While[Count[Range[n s^2 + 1, (n + 1) s^2 - 1],
k_ /; IntegerQ@ Sqrt@ k] == 0, s++]; {n, s}, {n, 0, 120}] // Flatten (* Michael De Vlieger, Aug 14 2016 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Hugo Pfoertner, Aug 10 2016
STATUS
approved