OFFSET
1,2
COMMENTS
The sequence is infinite.
Conjecture: This is a permutation of the natural numbers.
LINKS
Alois P. Heinz, Table of n, a(n) for n = 1..10000 (first 1000 terms from Peter J. C. Moses)
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.
MATHEMATICA
a[n_] := a[n] = If[n <= 3, n, For[k = 1, True, k++, If[FreeQ[Array[a, n-1], k], g = GCD[a[n-2], k]; If[g>1 && PrimeNu[g] == 1 && GCD[a[n-1], k] == 1, Return[k]]]]];
Array[a, 100] (* Jean-François Alcover, Aug 06 2018 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Vladimir Shevelev, Mar 19 2015
EXTENSIONS
More terms from Peter J. C. Moses, Mar 24 2015
STATUS
approved