OFFSET
1,3
COMMENTS
The value of a(1) = 1 is arbitrary. a(1) can be any integer and the rest of the sequence would remain unchanged.
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
a(1)+11 = 12 is a multiple of 1; a(2)+11 = 12 is a multiple of 2; and a(7)+11 = 14 is a multiple of 7. These 3 are the only cases where (a(k)+11) is a multiple of k, for 1 <= k <= 10. So a(11) = 3.
MAPLE
N:= 200: # to get a(1)..a(N)
A[1]:= 1:
for n from 2 to N do
A[n]:= nops(select(t -> ((A[t]+n)/t)::integer, [$1..n-1]))
od:
seq(A[i], i=1..N); # Robert Israel, Aug 17 2018
MATHEMATICA
f[l_List] := Block[{n = Length[l] + 1}, Append[l, Count[Table[Mod[l[[k]] + n, k], {k, n - 1}], 0]]]; Nest[f, {1}, 105] (* Ray Chandler, Jan 22 2007 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Leroy Quet, Jan 13 2007
EXTENSIONS
Extended by Ray Chandler, Jan 22 2007
STATUS
approved