OFFSET
1,1
COMMENTS
Conjecture. lim a(n)/prime(n)=1, as n goes to infinity.
LINKS
Peter J. C. Moses, Table of n, a(n) for n = 1..1000
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.
EXAMPLE
Let n=10, p_n=29, 2*p_n=58, 58=A098550(63).
We consider all even terms <= 58 up to the position 63. They are 2,4,8,14,6,12,16,10,20,22,26,28,32,18,24,34,36,30,38,42,44,40,50,48,52,46,56,58.
We have 28 such numbers. Thus a(10)=28.
MATHEMATICA
terms = 58;
f[lst_] := Block[{k = 4}, While[GCD[lst[[-2]], k] == 1 || GCD[lst[[-1]], k]>1 || MemberQ[lst, k], k++]; Append[lst, k]]; A098550 = Nest[f, {1, 2, 3}, 12 terms];
CROSSREFS
KEYWORD
nonn
AUTHOR
Vladimir Shevelev, Feb 04 2015
EXTENSIONS
More terms from Peter J. C. Moses, Feb 04 2015
STATUS
approved