OFFSET
1,1
COMMENTS
1 will not appear in this sequence. Which numbers will not appear? Is it a finite set of numbers?
EXAMPLE
1/1 = 1 is not prime. 2/1 = 2 is prime. So a(1) = 2.
(2+1)/2 is not prime. (2+3)/2 is not prime. (2+4)/2 = 3 is prime. So a(2) = 4.
(2+4+1)/3 is not prime. (2+4+3)/3 = 3 is prime. So a(3) = 3.
This process continues.
PROG
(PARI) v=[2]; n=1; while(#v<200, s=(n+vecsum(v))/(#v+1); if(type(s)=="t_INT", if(isprime(s)&&!vecsearch(vecsort(v), n), v=concat(v, n); n=0)); n++); v
CROSSREFS
KEYWORD
nonn
AUTHOR
Derek Orr, Oct 18 2014
STATUS
approved