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