OFFSET
2,1
COMMENTS
Note that the "small terms" {6,8,14,20,32,44,...} correspond to a(n) for which {a(n)-3, a(n)-1} is a twin pair such that the corresponding positions form sequence A029707.
If we change the definition to consider k for which {k-3, k-1} is not a twin pair, we obtain a closely related sequence 12,38,80,212,224,530,440,854,1250,1460,1742,... which shows a "model behavior" of A242490, if there are only a finite number of twin primes. - Vladimir Shevelev, May 19 2014
LINKS
Peter J. C. Moses, Table of n, a(n) for n = 2..1001
EXAMPLE
Let n=2, prime(2)=3. Then lpf(6-3)=3, but lpf(6-1)=5>3. Since k=6 is the smallest such k, a(2)=6.
PROG
(PARI) a(n)=my(p=prime(n), k=p+3); while(factor(k-3)[1, 1]<p || factor(k-1)[1, 1]<p, k += 2*p); k \\ Charles R Greathouse IV, May 30 2014
CROSSREFS
KEYWORD
nonn
AUTHOR
Vladimir Shevelev, May 16 2014
EXTENSIONS
Correction and more terms from Peter J. C. Moses, May 19 2014
STATUS
approved