OFFSET
3,1
COMMENTS
a(n)-3 and (a(n)-1)/3 are primes.
MATHEMATICA
lpf[n_]:=lpf[n]=First[First[FactorInteger[n]]]; (*least prime factor*)
lpf3[n_]:=lpf3[n]=If[#==1, 1, lpf[#]]&[n/3^IntegerExponent[n, 3]];
Table[NestWhile[#+2&, 2, !(lpf3[#-3]>lpf3[#-1]>=Prime[n])&], {n, 3, 100}] (* Peter J. C. Moses, Aug 14 2014 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Vladimir Shevelev, Aug 13 2014
STATUS
approved