OFFSET
1,3
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..10000
FORMULA
Additive with a(p^e) = 0 if p = 2, p^4 otherwise.
From Antti Karttunen, Jul 10 2017: (Start)
(End)
G.f.: Sum_{k>=2} prime(k)^4 * x^prime(k) / (1 - x^prime(k)). - Ilya Gutkovskiy, Aug 19 2021
MATHEMATICA
Array[DivisorSum[#, #^4 &, And[PrimeQ@ #, OddQ@ #] &] &, 54] (* Michael De Vlieger, Jul 11 2017 *)
f[2, e_] := 0; f[p_, e_] := p^4; a[n_] := Plus @@ f @@@ FactorInteger[n]; a[1] = 0; Array[a, 50] (* Amiram Eldar, Jun 20 2022 *)
PROG
(Scheme) (define (A005068 n) (cond ((= 1 n) 0) ((even? n) (A005068 (/ n 2))) (else (+ (A000583 (A020639 n)) (A005068 (A028234 n)))))) ;; Antti Karttunen, Jul 10 2017
(PARI) a(n) = my(f=factor(n)); sum(k=1, #f~, if (((p=f[k, 1])%2) == 1, p^4)); \\ Michel Marcus, Jul 11 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
EXTENSIONS
More terms from Antti Karttunen, Jul 10 2017
STATUS
approved