OFFSET
1,1
FORMULA
a(n) = A069213(a(n-1)).
EXAMPLE
a(4)=7. So a(5) is the 7th positive integer which is coprime to 7. 7 is coprime to 1,2,3,4,5,6,8,9,10,... So a(5) is the 7th of these, which is 8.
MATHEMATICA
f[n_] := Block[{k = 0, c = n}, While[c > 0, k++; While[GCD[k, n] > 1, k++ ]; c--; ]; k]; g[l_] := Append[l, f[l[[ -1]]]]; Nest[g, {2}, 36] (* Ray Chandler, Dec 31 2006 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Leroy Quet, Dec 29 2006
EXTENSIONS
Extended by Ray Chandler, Dec 31 2006
STATUS
approved