OFFSET
1,3
LINKS
I. V. Serov, Table of n, a(n) for n = 1..10000
FORMULA
MATHEMATICA
qLog[n_] := qLog[n] = Module[{p, e}, If[n == 1, 0, Sum[{p, e} = pe; (1 + qLog[p-1])e, {pe, FactorInteger[n]}]]];
a[n_] := qLog[Exp[MangoldtLambda[n]]];
Array[a, 100] (* Jean-François Alcover, May 07 2019 *)
PROG
(PARI) mang(n) = ispower(n, , &n); if(isprime(n), n, 1); \\ A014963
ql(n) = if (n==1, 0, if(isprime(n), 1+ql(n-1), sumdiv(n, p, if(isprime(p), ql(p)*valuation(n, p))))); \\ A064097
a(n) = ql(mang(n)); \\ Michel Marcus, Apr 26 2019
CROSSREFS
KEYWORD
nonn
AUTHOR
I. V. Serov, Apr 26 2019
STATUS
approved