OFFSET
1,3
LINKS
FORMULA
G.f.: Sum_{k>=1} k^2 * x^prime(k) / (1 - x^prime(k)).
If n = Product (p_j^k_j) then a(n) = Sum (pi(p_j)^2), where pi = A000720.
EXAMPLE
a(21) = a(3 * 7) = a(prime(2) * prime(4)) = 2^2 + 4^2 = 20.
MAPLE
a:= n-> add(numtheory[pi](i[1])^2, i=ifactors(n)[2]):
seq(a(n), n=1..80); # Alois P. Heinz, Feb 10 2020
MATHEMATICA
nmax = 75; CoefficientList[Series[Sum[k^2 x^Prime[k]/(1 - x^Prime[k]), {k, 1, nmax}], {x, 0, nmax}], x] // Rest
a[n_] := Plus @@ (PrimePi[#[[1]]]^2 & /@ FactorInteger[n]); Table[a[n], {n, 1, 75}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Ilya Gutkovskiy, Feb 10 2020
STATUS
approved