|
|
A196130
|
|
The difference prime(i)+prime(i+1)+...+prime(i+n-1)-A002110(n), where prime(i) is the smallest prime such that the value is nonnegative.
|
|
2
|
|
|
0, 2, 1, 10, 17, 6, 1, 18, 209, 62, 255, 288, 9, 510, 341, 132, 95, 564, 737, 734, 1243, 1222, 427, 1022, 425, 1630, 649, 1836, 311, 2582, 571, 2816, 3083, 2768, 1221, 4142, 1835, 994, 3695, 1338, 1337, 1576, 885, 3522, 2221, 1222, 4897, 5340, 3641, 1988, 8791, 5410, 843, 10658, 5083, 2082
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,2
|
|
COMMENTS
|
It is an open problem whether there is n>1 (necessarily even) such that a(n)=0.
If A196129(n)=0, then also a(n)=0 and the prime p[i] is given by A196128(n); else it is the next larger prime.
|
|
LINKS
|
|
|
PROG
|
for(n=1, k, S+=if(S*k>P*n, p=precprime(p-1), q=nextprime(q+1))); if(S-q-P, S-p-P)}
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|