OFFSET
1,1
COMMENTS
Sequence is a permutation of the positive integers. (Inverse permutation is sequence A114862.)
EXAMPLE
a(8) = 11 since 11 is the smallest positive integer not among the first 7 terms of the sequence, not equal to 8 and which is coprime to a(7) = 6.
MATHEMATICA
f[l_] := Block[{k = 1}, While[k == Length[l] + 1 || MemberQ[l, k] || GCD[k, Last[l]] > 1, k++ ]; Return[Append[l, k]]; ]; Nest[f, {}, 76] (* Ray Chandler, Jan 02 2006 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Leroy Quet, Jan 02 2006
EXTENSIONS
More terms from Ray Chandler and Klaus Brockhaus, Jan 02 2006
STATUS
approved