OFFSET
1,2
COMMENTS
See A186145.
FORMULA
b(n) = n + floor((n^3-1/2)^(1/2)), as in the Mathematica program.
a(n) = n + floor(n^(3/2)) - 1 if n is square and a(n) = n + floor(n^(3/2)) otherwise. - Chai Wah Wu, Oct 15 2025
MATHEMATICA
PROG
(Python)
from math import isqrt
from sympy.ntheory.primetest import is_square
def A186147(n): return n+isqrt(n**3)-is_square(n) # Chai Wah Wu, Oct 15 2025
CROSSREFS
KEYWORD
nonn
AUTHOR
Clark Kimberling, Feb 13 2011
STATUS
approved
