OFFSET
1,1
COMMENTS
a(n) is the absolute value of coefficient of x^5 of the polynomial Prod_{j=0,5}(x-prime(n+j)) of degree 6; the zeros of this polynomial are prime(n), ..., prime(n+5).
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
MATHEMATICA
a = {}; Do[AppendTo[a, Sum[Prime[x + n], {n, 0, 5}]], {x, 1, 50}]; a
Total/@Partition[Prime[Range[60]], 6, 1] (* Harvey P. Dale, Mar 12 2015 *)
PROG
(PARI) {m=50; k=6; for(n=0, m-1, print1(a=sum(j=1, k, prime(n+j)), ", "))} \\ Klaus Brockhaus, Jan 12 2007
(PARI) {m=50; k=6; for(n=1, m, print1(abs(polcoeff(prod(j=0, k-1, (x-prime(n+j))), k-1)), ", "))} \\ Klaus Brockhaus, Jan 12 2007
(Magma) [&+[ NthPrime(n+k): k in [0..5] ]: n in [1..80] ]; /* Vincenzo Librandi, Apr 03 2011 */
CROSSREFS
KEYWORD
nonn
AUTHOR
Artur Jasinski, Jan 11 2007
EXTENSIONS
Edited by Klaus Brockhaus, Jan 12 2007
STATUS
approved