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

 

Logo

Annual Appeal: Today, Nov 11 2014, is the 4th anniversary of the launch of the new OEIS web site. 70,000 sequences have been added in these four years, all edited by volunteers. Please make a donation (tax deductible in the US) to help keep the OEIS running.

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A161669 Sum_{x=n-th nonprime..n-th prime} x. 1
3, 6, 9, 13, 38, 55, 108, 124, 185, 330, 376, 550, 671, 736, 897, 1155, 1470, 1566, 1927, 2178, 2266, 2664, 2958, 3444, 4158, 4521, 4653, 5037, 5215, 5580, 7182, 7656, 8418, 8602, 9999, 10251, 11128, 12040, 12597, 13566, 14570, 14875, 16683, 16951, 17612 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,1

LINKS

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

EXAMPLE

3(=0+1+2=sum_{x=0..2} x), 6(=1+2+3=sum_{x=1..3} x), 9(=4+5=Sum_{x=4..5} x), 13(=6+7=Sum_{x=6..7} x), 38(=8+9+10+11=Sum_{x=8..11} x), etc.

PROG

(PARI) k=0; p=2; for(i=1, 1e2, s=p*(p+1)/2-k*(k-1)/2; print1(s", "); p=nextprime(p+1); while(isprime(k++), ))

CROSSREFS

Sequence in context: A181970 A242339 A086838 * A128261 A187263 A230876

Adjacent sequences:  A161666 A161667 A161668 * A161670 A161671 A161672

KEYWORD

nonn,base,easy

AUTHOR

Juri-Stepan Gerasimov, Jun 16 2009, Jun 27 2009

EXTENSIONS

Corrected and extended by Charles R Greathouse IV, Mar 25 2010

STATUS

approved

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

Content is available under The OEIS End-User License Agreement .

Last modified December 17 22:43 EST 2014. Contains 252040 sequences.