OFFSET
1,1
COMMENTS
For n > 1, a(2n) = smallest prime of the form a(2n-1) + 6k where a(2n-1) + 12k is also a prime and is equal to a(2n+1). The difference of successive terms is 2,2,6,6,12,12,18,18,24,24,12,12,6,6,18,18,...
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..1000
MATHEMATICA
f[l_List] := Block[{p = Last[l], k = 2, t}, While[t = {p + k, p + 2k}; ! And @@ PrimeQ /@ t, k += 2 ]; Join[l, t]]; Nest[f, {3}, 26] (* Ray Chandler, Sep 29 2006 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Amarnath Murthy, Jun 05 2003
EXTENSIONS
More terms from David Wasserman, Dec 30 2004
STATUS
approved