OFFSET
1,1
COMMENTS
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 1..10000
David L. Applegate, Hans Havermann, Bob Selcoe, Vladimir Shevelev, N. J. A. Sloane, and Reinhard Zumkeller, The Yellowstone Permutation, arXiv preprint arXiv:1501.01669, 2015 and J. Int. Seq. 18 (2015) 15.6.7.
MATHEMATICA
f[lst_] := Block[{k = 4}, While[GCD[lst[[-2]], k] == 1 || GCD[lst[[-1]], k] > 1 || MemberQ[lst, k], k++]; Append[lst, k]];
Position[Nest[f, {1, 2, 3}, 140], _?EvenQ] // Flatten (* Jean-François Alcover, Oct 01 2018, after Robert G. Wilson v in A098550 *)
PROG
(Haskell)
a251237 n = a251237_list !! (n-1)
a251237_list = filter (even . a098550) [1..]
CROSSREFS
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Dec 02 2014
STATUS
approved