OFFSET
1,7
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..10001
FORMULA
Additive with a(p^e) = p^2 if p = 1 (mod 3), 0 otherwise.
MATHEMATICA
Module[{sp=Select[Prime[Range[100]], Mod[#, 3]==1&]}, Table[Total[ Select[ sp, Divisible[ n, #]&]^2], {n, 70}]] (* Harvey P. Dale, Dec 19 2014 *)
f[p_, e_] := If[Mod[p, 3] == 1, p^2, 0]; a[n_] := Plus @@ f @@@ FactorInteger[n]; a[1] = 0; Array[a, 100] (* Amiram Eldar, Jun 21 2022 *)
PROG
CROSSREFS
KEYWORD
nonn
AUTHOR
EXTENSIONS
More terms from Antti Karttunen, Jul 09 2017
STATUS
approved