login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A127417 a(1)=1; for n > 1, a(n) = number of earlier terms a(k), 1 <= k <= n-1, such that (a(k)+n) is divisible by k. 3
1, 1, 2, 2, 2, 2, 3, 2, 2, 4, 3, 1, 4, 3, 2, 5, 2, 4, 4, 1, 2, 6, 4, 1, 6, 3, 3, 5, 2, 4, 3, 4, 3, 6, 4, 2, 3, 5, 5, 4, 3, 3, 7, 2, 2, 7, 4, 3, 5, 3, 4, 5, 6, 3, 3, 4, 2, 6, 6, 4, 6, 4, 5, 3, 3, 5, 5, 3, 3, 7, 6, 2, 6, 5, 4, 5, 2, 5, 8, 1, 5, 6, 5, 1, 6, 7, 3, 9, 2, 4, 5, 2, 5, 6, 6, 5, 5, 4, 4, 6, 4, 4, 6, 3, 4 (list; graph; refs; listen; history; text; internal format)
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
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
Cf. A127418.
Sequence in context: A322861 A237259 A235614 * A308622 A198897 A201375
KEYWORD
nonn
AUTHOR
Leroy Quet, Jan 13 2007
EXTENSIONS
Extended by Ray Chandler, Jan 22 2007
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 24 04:14 EDT 2024. Contains 371918 sequences. (Running on oeis4.)