|
Search: id:A058296
|
|
|
| A058296 |
|
Average of consecutive primes. |
|
+0 5
|
|
| 2, 4, 9, 15, 21, 30, 39, 45, 56, 64, 72, 81, 93, 102, 108, 120, 134, 144, 154, 165, 176, 186, 195, 205, 225, 231, 240, 254, 266, 274, 282, 300, 312, 324, 342, 351, 363, 376, 386, 399, 414, 426, 436, 446, 459, 465, 483, 495, 506, 522, 544, 560, 570, 582, 596
(list; graph; listen)
|
|
|
OFFSET
|
1,1
|
|
|
LINKS
|
Harry J. Smith, Table of n, a(n) for n=1,...,20000
Donald Mills, Some Interesting Sequences.
|
|
FORMULA
|
a(1)=2, a(n)=(p(2n-2)+p(2n-1))/2 for n>1, where p(i) is the i-th prime
|
|
MAPLE
|
with(linalg): v := linalg[vector](100): v[1] := 2: for j from 2 to 100 do v[j] := (ithprime(2*j-2)+ithprime(2*j-1))/2: od: print(v);
|
|
PROGRAM
|
(PARI) { write("b058296.txt", 1, " ", 2); p2=2; for (n=2, 20000, p1=nextprime(p2+1); p2=nextprime(p1+1); a=(p1+p2)/2; write("b058296.txt", n, " ", a); ); } [From Harry J. Smith (hjsmithh(AT)sbcglobal.net), May 30 2009]
|
|
CROSSREFS
|
A bisection of A024675. Cf. A079424.
Sequence in context: A036277 A042960 A045975 this_sequence A022948 A025217 A119759
Adjacent sequences: A058293 A058294 A058295 this_sequence A058297 A058298 A058299
|
|
KEYWORD
|
easy,nonn
|
|
AUTHOR
|
Donald Mills (dmills(AT)math.siu.edu), Feb 16 2003
|
|
|
Search completed in 0.002 seconds
|