OFFSET
1,1
COMMENTS
It is conjectured that every prime appears in A098550, and if so then A098550(a(n)) = A000040(n). [Comment edited by N. J. A. Sloane, Dec 15 2014] [It is now known that every prime appears in A098550, although it is not known that they appear in their right order. - N. J. A. Sloane, Dec 25 2014]
Conjecture: a(n) = A251541(n) + 2 for n > 4. - Reinhard Zumkeller, Dec 16 2014
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 1..10000
MATHEMATICA
a098550[lst_List] :=
Block[{k = 4},
While[GCD[lst[[-2]], k] == 1 || GCD[lst[[-1]], k] > 1 ||
MemberQ[lst, k], k++]; Append[lst, k]];
a251239[n_] :=
Flatten@Position[Nest[a098550, {1, 2, 3}, n], _Integer?PrimeQ]; a251239[550] (* Michael De Vlieger, Dec 23 2014, based on Robert G. Wilson v at A098550 *)
PROG
(Haskell)
a251239 n = a251239_list !! (n-1)
a251239_list = filter ((== 1) . a010051' . a098550) [1..]
CROSSREFS
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Dec 02 2014
STATUS
approved