|
Search: id:A144043
|
|
|
| A144043 |
|
Sum of the middle pair as the prime sequence unfolds |
|
+0 1
|
|
| 2, 3, 4, 5, 6, 8, 10, 12, 14, 18, 22, 24, 26, 30, 34, 36, 38, 42, 46
(list; graph; listen)
|
|
|
OFFSET
|
1,1
|
|
|
COMMENT
|
An exotic sequence with a tantalizing non-regularity. It is strictly nondecreasing (very easy to show). The first order differences (1, 1, 1, 1, 2, 2, 2, 2, 4, 4, 2, 2, 4, 4, 2, 2, 4, 4, ...) are also very erratic.
|
|
EXAMPLE
|
2= sumtwice(1) 3= sum(1,2) 4= 1, sumtwice(2), 3 5= 1, sum(2,3), 5 6= 1, 2, sumtwice(3), 5, 7 8= 1,2, sum(3,5), 7, 11
|
|
PROGRAM
|
(Other) %Matlab source code clc clear all aP= [1, primes(1000)]; qN= numel(aP); kL=[]; %init empty result for nn= 1:qN %Loop to sum the central pairs auxT= ceil((nn+1)/2); auxL= ceil(nn/2); kL= [kL; aP(auxL)+aP(auxT)]; end kL %kL is the result
|
|
CROSSREFS
|
Sequence in context: A056864 A029032 A059809 this_sequence A121492 A078931 A003401
Adjacent sequences: A144040 A144041 A144042 this_sequence A144044 A144045 A144046
|
|
KEYWORD
|
easy,nonn
|
|
AUTHOR
|
Raul Rato (rtrato(AT)yahoo.com), Sep 08 2008
|
|
|
Search completed in 0.002 seconds
|