OFFSET
0,3
COMMENTS
Same formula, seed {0,1} : 0, 1, 1, 2, 2, 3, 4, 5, 7, 10, 7, 15, 9, 25, 24, 35, 26, 45, 36, 90, 43, 91, 45, 136, 71, 227, 161, 388, 232, 388, 464, 852, 507, 861, 522, 1368, 522
LINKS
Ivan Neretin, Table of n, a(n) for n = 0..10000
MATHEMATICA
Fold[Append[#1, #1[[-2]] + #1[[1 + Mod[#1[[-1]], #2]]]] &, {1, 1}, Range[2, 54]] (* Ivan Neretin, Sep 07 2017 *)
PROG
(Python)
a = [1]*1000
for n in range(2, 77):
print a[n-2],
a[n] = a[n-2] + a[a[n-1] % n]
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Alex Ratushnyak, Aug 15 2012
STATUS
approved