login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A005080 Sum of cubes of primes = 1 mod 4 dividing n. 6
0, 0, 0, 0, 125, 0, 0, 0, 0, 125, 0, 0, 2197, 0, 125, 0, 4913, 0, 0, 125, 0, 0, 0, 0, 125, 2197, 0, 0, 24389, 125, 0, 0, 0, 4913, 125, 0, 50653, 0, 2197, 125, 68921, 0, 0, 0, 125, 0, 0, 0, 0, 125, 4913, 2197, 148877, 0, 125, 0, 0, 24389, 0, 125, 226981, 0, 0, 0, 2322, 0, 0, 4913, 0, 125, 0, 0, 389017, 50653, 125 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,5
LINKS
FORMULA
Additive with a(p^e) = p^3 if p = 1 (mod 4), 0 otherwise.
a(n) = A005064(n) - A005084(n) - 8*A059841(n). - Antti Karttunen, Jul 11 2017
MATHEMATICA
Array[DivisorSum[#, #^3 &, And[PrimeQ@ #, Mod[#, 4] == 1] &] &, 75] (* Michael De Vlieger, Jul 11 2017 *)
f[p_, e_] := If[Mod[p, 4] == 1, p^3, 0]; a[n_] := Plus @@ f @@@ FactorInteger[n]; a[1] = 0; Array[a, 100] (* Amiram Eldar, Jun 21 2022 *)
PROG
(Scheme) (define (A005080 n) (if (= 1 n) 0 (+ (if (= 1 (modulo (A020639 n) 4)) (A000578 (A020639 n)) 0) (A005080 (A028234 n))))) ;; Antti Karttunen, Jul 11 2017
(PARI) a(n) = my(f=factor(n)); sum(k=1, #f~, if (((p=f[k, 1])%4) == 1, p^3)); \\ Michel Marcus, Jul 11 2017
CROSSREFS
Sequence in context: A146553 A009805 A227393 * A174733 A100579 A298062
KEYWORD
nonn
AUTHOR
EXTENSIONS
More terms from Antti Karttunen, Jul 11 2017
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified July 4 16:41 EDT 2024. Contains 374013 sequences. (Running on oeis4.)