OFFSET
1,3
COMMENTS
The squares are a subsequence; apparently A052928(n-1) = number of terms between (n-1)^2 and n^2. - Reinhard Zumkeller, Jun 20 2015
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 1..10000
MATHEMATICA
nsrQ[n_]:=Module[{sr=Sqrt[n]}, Abs[First[sr-Nearest[{Floor[sr], Ceiling[sr]}, sr]]]<1/4]; Select[Range[0, 150], nsrQ] (* Harvey P. Dale, Aug 19 2011 *)
PROG
(Haskell)
a128217 n = a128217_list !! (n-1)
a128217_list = filter f [0..] where
f x = 4 * abs (root - fromIntegral (round root)) < 1
where root = sqrt $ fromIntegral x
-- Reinhard Zumkeller, Jun 20 2015
CROSSREFS
KEYWORD
nonn
AUTHOR
John W. Layman, Feb 19 2007
EXTENSIONS
Offset changed by Reinhard Zumkeller, Jun 20 2015
STATUS
approved