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