OFFSET
1,2
COMMENTS
a(305) > 1.2*10^14. - Bruce Garner, Mar 20 2022
LINKS
Bruce Garner, Table of n, a(n) for n = 1..304 (terms 1..227 from Robert Price)
EXAMPLE
a(7)=8 because 1 plus the sum of the first 8 primes^8 is 24995572328 which is divisible by 8.
MATHEMATICA
p = 2; k = 0; s = 1; lst = {}; While[k < 521330000, s = s + p^8; If[Mod[s, ++k] == 0, AppendTo[lst, k]; Print[{k, p}]]; p = NextPrime@ p](* Derived from A128169 *)
With[{nn=1400}, Select[Thread[{Range[nn], Accumulate[Prime[Range[nn]]^8]+1}], Mod[ #[[2]], #[[1]]] == 0&]][[;; , 1]] (* Harvey P. Dale, Jul 20 2024 *)
CROSSREFS
Cf. A085450 (smallest m > 1 such that m divides Sum_{k=1..m} prime(k)^n).
KEYWORD
nonn
AUTHOR
Robert Price, Nov 30 2013
STATUS
approved