OFFSET
1,1
COMMENTS
For each positive integer K there is a greatest integer h such that h/K < sqrt(K); a(n) is the n-th number h such that (h+1)/K is closer to sqrt(K) than h/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 A355160_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 23 2022
STATUS
approved
