OFFSET
1,7
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..10001
FORMULA
Additive with a(p^e) = p^4 if p = 1 (mod 3), 0 otherwise.
MATHEMATICA
f[p_, e_] := If[Mod[p, 3] == 1, p^4, 0]; a[n_] := Plus @@ f @@@ FactorInteger[n]; a[1] = 0; Array[a, 100] (* Amiram Eldar, Jun 21 2022 *)
PROG
(Scheme) (define (A005073 n) (if (= 1 n) 0 (+ (A000583 (if (= 1 (modulo (A020639 n) 3)) (A020639 n) 0)) (A005073 (A028234 n))))) ;; Antti Karttunen, Jul 09 2017
(PARI) a(n) = my(f=factor(n)); sum(k=1, #f~, if (((p=f[k, 1])%3) == 1, p^4)); \\ Michel Marcus, Jul 10 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
EXTENSIONS
More terms from Antti Karttunen, Jul 09 2017
STATUS
approved