OFFSET
1,3
FORMULA
a(1) = 0, a(n) = A049084(n) + Sum_{d|n, d<n} a(d) for n > 1.
EXAMPLE
a(20) = a(1) + a(2) + a(4) + a(5) + a(10) = 0 + 1 + (a(1)+a(2)) + 3 + (a(1)+a(2)+a(5)) = 0 + 1 + (0+1) + 3 + (0+1+3) = 1 + 1 + 3 + 4 = 9.
PROG
(PARI) lista(nn) = {my(v=vector(nn)); for(n=2, nn, v[n]=if(isprime(n), primepi(n), sumdiv(n, d, v[d]))); v; } \\ Jinyuan Wang, Apr 07 2020
CROSSREFS
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, May 18 2003
EXTENSIONS
a(36)-a(37) merged into a(36) by Jinyuan Wang, Apr 07 2020
STATUS
approved