The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A005081 Sum of 4th powers of primes = 1 mod 4 dividing n. 6
0, 0, 0, 0, 625, 0, 0, 0, 0, 625, 0, 0, 28561, 0, 625, 0, 83521, 0, 0, 625, 0, 0, 0, 0, 625, 28561, 0, 0, 707281, 625, 0, 0, 0, 83521, 625, 0, 1874161, 0, 28561, 625, 2825761, 0, 0, 0, 625, 0, 0, 0, 0, 625, 83521, 28561, 7890481, 0, 625, 0, 0, 707281, 0, 625, 13845841, 0, 0, 0, 29186, 0, 0, 83521, 0, 625, 0, 0, 28398241 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,5
LINKS
FORMULA
Additive with a(p^e) = p^4 if p = 1 (mod 4), 0 otherwise.
a(n) = A005065(n) - A005085(n) - 16*A059841(n). - Antti Karttunen, Jul 11 2017
MATHEMATICA
Array[DivisorSum[#, #^4 &, And[PrimeQ@ #, Mod[#, 4] == 1] &] &, 73] (* Michael De Vlieger, Jul 11 2017 *)
f[p_, e_] := If[Mod[p, 4] == 1, p^4, 0]; a[n_] := Plus @@ f @@@ FactorInteger[n]; a[1] = 0; Array[a, 100] (* Amiram Eldar, Jun 21 2022 *)
PROG
(Scheme) (define (A005081 n) (if (= 1 n) 0 (+ (if (= 1 (modulo (A020639 n) 4)) (A000583 (A020639 n)) 0) (A005081 (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^4)); \\ Michel Marcus, Jul 11 2017
CROSSREFS
Sequence in context: A223215 A057012 A115484 * A210115 A186484 A184037
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 May 12 19:25 EDT 2024. Contains 372494 sequences. (Running on oeis4.)