login
This site is supported by donations to The OEIS Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A034964 Sums of five consecutive primes. 20
28, 39, 53, 67, 83, 101, 119, 139, 161, 181, 199, 221, 243, 263, 287, 311, 331, 351, 373, 395, 421, 449, 473, 497, 517, 533, 559, 587, 617, 647, 683, 707, 733, 759, 787, 811, 839, 863, 891, 917, 941, 961, 991, 1023, 1057, 1089, 1123, 1151, 1169, 1193 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,1

COMMENTS

Except for the first term, all terms are odd. - Alonso del Arte, Dec 30 2011

REFERENCES

Owen O'Shea and Underwood Dudley, The Magic Numbers of the Professor, Mathematical Association of America (2007), p. 62

LINKS

Table of n, a(n) for n=1..50.

FORMULA

a(n) = Sum_{i=n..n+4} prime(i). - Wesley Ivan Hurt, Sep 14 2014

EXAMPLE

28 = 2 + 3 + 5 + 7 + 11.

39 = 3 + 5 + 7 + 11 + 13.

MAPLE

A034964:=n->add(ithprime(i), i=n..n+4): seq(A034964(n), n=1..50); # Wesley Ivan Hurt, Sep 14 2014

MATHEMATICA

Plus@@@Partition[Prime[Range[100]], 5, 1] (* Vladimir Joseph Stephan Orlovsky, Feb 18 2010 *)

PROG

(Sage)

BB = primes_first_n(60)

list = []

for i in range(55):

    list.append(BB[i]+BB[i+1]+BB[i+2]+BB[i+3]+BB[i+4])

list # Zerinvary Lajos, May 14 2007

(MAGMA) [&+[ NthPrime(n+k): k in [0..4] ]: n in [1..100] ]; // Vincenzo Librandi, Apr 03 2011

(PARI) a(n) = sum(k=n, n+4, prime(k)); \\ Michel Marcus, Sep 03 2016

CROSSREFS

Cf. A000040, A001043, A011974, A034707.

Cf. A131686 (sums of five consecutive squares of primes).

Sequence in context: A096430 A204822 A179166 * A195897 A109798 A216594

Adjacent sequences:  A034961 A034962 A034963 * A034965 A034966 A034967

KEYWORD

nonn,easy

AUTHOR

Patrick De Geest, Oct 15 1998

EXTENSIONS

Offset changed to 1 by Joerg Arndt, Sep 04 2016

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent | More pages
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy .

Last modified July 27 20:59 EDT 2017. Contains 289866 sequences.