OFFSET
1,1
COMMENTS
a(1) = 3, a(2) = 5; for n >= 3, a(n) is smallest prime which is uniquely a(j) + a(k) - 1, with 1<= j < k < n.
Is the (3,5) sequence finite or infinite? Note that (3,7) as a starting sequence has only 2 terms and (7,11) yields 7, 11, 17, 23, 29 only. Equally using -1 as a rule creates more variants.
The sequence continues at least up to a(2227) = 400031.
After about 500 terms, the graph of this sequences appears almost linear. - T. D. Noe, Jan 20 2008
LINKS
EXAMPLE
a(3)=7 as 8=3+5. a(4)=11 as 12=5+7 (and nothing else).
PROG
(PARI) v=vector(1220); vc=2; v[1]=3; v[2]=5; forprime (p=7, 1220, p1=p+1; pc=0; fl=0; for (i=1, vc-1, for (j=i+1, vc, if (v[i]+v[j]==p1, pc++); if (pc>1, fl=1); if (fl, break)); if (fl, break)); if (pc==0, fl=1); if (!fl, vc++; v[vc]=p)); print(vecextract(v, concat("1..", vc)))
CROSSREFS
KEYWORD
nonn
AUTHOR
Jon Perry, Dec 29 2002
EXTENSIONS
Edited and extended by Klaus Brockhaus, Apr 14 2005
STATUS
approved