OFFSET
1,3
EXAMPLE
(1+9) is coprime to a(1)=1; (2+9) is coprime to a(2)=1; (4+9) is coprime to a(4)=3 and (8+9) is coprime to a(8)=6. These four cases are the only cases where (k+n) is coprime to a(k), for 1<=k<=8. So a(9) = 4.
MATHEMATICA
f[l_List] := Block[{n = Length[l] + 1}, Append[l, Count[Table[GCD[k + n, l[[k]]], {k, n - 1}], 1]]]; Nest[f, {1}, 75] (* Ray Chandler, Jan 22 2007 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Leroy Quet, Jan 14 2007
EXTENSIONS
Extended by Ray Chandler, Jan 22 2007
STATUS
approved