|
| |
|
|
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: A153006 A181970 A086838 * A128261 A187263 A000791
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
|
| |
|
|