[go: up one dir, main page]

login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A111320
Numbers k such that 6 divides prime(1) + ... + prime(k).
12
57, 97, 99, 103, 105, 107, 111, 113, 119, 121, 123, 125, 127, 129, 161, 163, 169, 175, 177, 179, 185, 187, 195, 197, 199, 203, 205, 207, 211, 213, 217, 233, 235, 237, 273, 293, 295, 297, 301, 303, 305, 307, 309, 311, 327, 329, 331, 333, 335, 337, 339, 343, 345, 347, 349
OFFSET
1,1
COMMENTS
Odd terms in A103208. - Robert Israel, Jan 26 2019
LINKS
MAPLE
P:= [seq(ithprime(i), i=1..1000)]:
L:= ListTools:-PartialSums(P):
select(t -> L[t] mod 6 = 0, [seq(i, i=1..1000)]); # Robert Israel, Jan 26 2019
MATHEMATICA
Position[Accumulate[Prime[Range[400]]], _?(Divisible[#, 6] &)] // Flatten (* Amiram Eldar, May 14 2024 *)
PROG
(PARI) lista(pmax) = {my(s = 0, k = 0); forprime(p = 2, pmax, k++; s += p; if(!(s % 6), print1(k, ", "))); } \\ Amiram Eldar, May 14 2024
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Nov 05 2005
STATUS
approved