OFFSET
1,1
COMMENTS
Is the sequence finite? It would mean that the value of f(n) would become monotonic after inclusion of the largest prime in the sequence.
It should be easy to prove that the value of lim 3*f(n) is 1 when n approaches infinity.
The generalized formula 3*(2*sum_XY/sum_Y - (n+1))/(n-1) is a non-linear correlation coefficient between the X (1,2,3...) and the nonnegative Y values, with range from -3 to +3, and linear correlation still giving value 1 or -1.
What is the next term after 32057?
LINKS
Esko Ranta, Table of n, a(n) for n = 1..206
EXAMPLE
3rd prime is 5, and f(3) > f(2) so 5 is included in the sequence.
Starting at n=2, the values of f(n) are: 1/5, 3/10, 1/3, 11/28, 81/205, 71/174, 31/77, 81/200, 485/1161, ...
PROG
(PARI) f(n) = (2*sum(i=1, n, i*prime(i))/sum(i=1, n, prime(i)) - (n+1))/(n-1);
lista(nn) = {last = f(2); for (i=3, nn, new = f(i); if (new > last, print1(prime(i), ", "); ); new = last; ); } \\ Michel Marcus, Jun 10 2014
CROSSREFS
KEYWORD
nonn
AUTHOR
Esko Ranta, Jun 07 2014
STATUS
approved