OFFSET
1,2
LINKS
MATHEMATICA
f[lst_List] := Block[{k = 4}, While[ GCD[ lst[[-2]], k] == 1 || GCD[ lst[[-1]], k] > 1 || MemberQ[lst, k], k++]; Append[lst, k]]; lst[[#]] & /@ Take[lst = Nest[f, {1, 2, 3}, 120], 71] (* Robert G. Wilson v, Nov 21 2014 *)
PROG
(Haskell)
a098552 = a098550 . a098550 -- Reinhard Zumkeller, Nov 21 2014
CROSSREFS
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Sep 14 2004
STATUS
approved