OFFSET
1,3
COMMENTS
Each n occurs A000041(n) times in total.
Where are the first and the last occurrence of each n located?
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..8192
FORMULA
MATHEMATICA
Table[If[n==1, 0, With[{y=Flatten[Cases[FactorInteger[n], {p_, k_}:>Table[PrimePi[p], {k}]]]}, Last[y]*Length[y]+Last[y]-Total[y]+Length[y]-1]], {n, 100}] (* Gus Wiseman, Jan 09 2023 *)
CROSSREFS
Sums of even-indexed rows of A358172.
KEYWORD
nonn
AUTHOR
Antti Karttunen, Jun 05 2014
STATUS
approved