A218114 Integer arithmetic means of 10 consecutive primes.
30, 34, 51, 78, 87, 106, 132, 165, 180, 203, 225, 231, 248, 253, 305, 312, 375, 381, 488, 502, 510, 588, 633, 690, 727, 734, 754, 761, 988, 1038, 1070, 1089, 1110, 1140, 1183, 1218, 1299, 1336, 1368, 1408, 1416, 1431, 1437, 1449, 1466, 1504, 1525, 1600, 1632
Offset: 1
Keywords
Examples
a(1) is derived from (prime(6)+...+prime(15))/10 = (13+ 17+ 19+ 23+ 29+ 31+ 37+ 41+ 43+ 47)/10=30.
Links
- Zak Seidov, Table of n, a(n) for n = 1..1000
Programs
-
Maple
Psums:= ListTools:-PartialSums(select(isprime,[2,(2*i+1 $ i=1..10^4)])): select(type, (Psums[11..-1] - Psums[1..-11])/10, integer); # Robert Israel, May 22 2015
-
Mathematica
Select[Total /@ Partition[Prime@ Range@ 263, 10, 1]/10, IntegerQ] (* Michael De Vlieger, May 22 2015 *) Select[Mean/@Partition[Prime[Range[300]],10,1],IntegerQ] (* Harvey P. Dale, Aug 28 2021 *)
-
PARI
lista(nn) = {for (n=1, nn, my(s = sum(k=0, 9, prime(n+k))/10); if (type(s) == "t_INT", print1(s, ", ")););} \\ Michel Marcus, May 23 2015
Comments