OFFSET
1,3
FORMULA
EXAMPLE
g(4) = 2 and 2^3 = 8 is not less than 4, so the indicator at k = 4 is 0; hence a(4) = a(3) = 2.
g(5) = 1 and 1^3 = 1 < 5, so the indicator at k = 5 is 1; hence a(5) = 3.
g(10) = 2 (since 2 divides 10 and 2 <= sqrt(10) < 5) and 2^3 = 8 < 10, so the indicator at k = 10 is 1; hence a(10) = 5.
MATHEMATICA
g[n_] := Max[Select[Divisors[n], #^2 <= n &]];
Accumulate[Table[If[g[k]^3 < k, 1, 0], {k, 1, 60}]]
PROG
(Python)
from sympy import divisors
def g(n):
return max(d for d in divisors(n) if d*d <= n)
def a(n):
return sum(1 for k in range(1, n+1) if g(k)**3 < k)
print([a(n) for n in range(1, 61)])
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Eric Fodge, May 18 2026
STATUS
approved
