OFFSET
1,6
FORMULA
G.f. A(x) satisfies: A(x) = (x/(1 - x)) * (1 - Sum_{k>=1} (1 - x^k) * A(x^k)).
MATHEMATICA
PROG
(Python)
from functools import lru_cache
@lru_cache(maxsize=None)
def A328967(n):
if n == 0:
return 1
c, j = n-1, 1
k1 = (n-1)//j
while k1 > 1:
j2 = (n-1)//k1 + 1
c += (j2-j)*A328967(k1)
j, k1 = j2, (n-1)//j2
return j-c # Chai Wah Wu, Mar 31 2021
CROSSREFS
KEYWORD
sign
AUTHOR
Ilya Gutkovskiy, Feb 25 2020
STATUS
approved