OFFSET
0,3
COMMENTS
For each nonnegative integer K there is a greatest nonnegative integer h such that h/K <= sqrt(K); a(n) is the n-th number h such that h/K is closer to sqrt(K) than (h+1)/K is.
MATHEMATICA
PROG
(PARI) isok(k) = frac(k^(3/2)) < 1/2; \\ Michel Marcus, Jul 11 2022
(Python)
from math import isqrt
from itertools import count, islice
def A355159_gen(startvalue=0): # generator of terms >= startvalue
return filter(lambda n:int(((r:=n**3)-(m:=isqrt(r))*(m+1))<<2<=1), count(max(startvalue, 0)))
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, Jun 22 2022
STATUS
approved