The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A128217 Nonnegative integers n such that the square-root of n differs from its nearest integer by less than 1/4. 3
0, 1, 4, 5, 8, 9, 10, 15, 16, 17, 18, 23, 24, 25, 26, 27, 34, 35, 36, 37, 38, 39, 46, 47, 48, 49, 50, 51, 52, 61, 62, 63, 64, 65, 66, 67, 68, 77, 78, 79, 80, 81, 82, 83, 84, 85, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125 (list; graph; refs; listen; history; text; internal format)
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
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
Cf. A063656. See the first differences in A128218.
Sequence in context: A295150 A358819 A042956 * A288671 A284906 A285260
KEYWORD
nonn
AUTHOR
John W. Layman, Feb 19 2007
EXTENSIONS
Offset changed by Reinhard Zumkeller, Jun 20 2015
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 21 12:49 EDT 2024. Contains 372736 sequences. (Running on oeis4.)