login
A125952
a(0)=1. a(n) = sum{k=0 to n-1} a(a(k)(mod n)).
0
1, 1, 2, 4, 5, 10, 24, 27, 26, 71, 77, 124, 242, 541, 1302, 909, 2241, 3068, 5755, 14124, 4366, 33254, 17185, 30646, 119061, 439627, 1628886, 3445777, 10356114, 8544543, 6387109, 13865738, 51864383, 131657416, 99058644, 515078144, 564483113
OFFSET
0,3
MATHEMATICA
f[l_List] := Block[{n = Length[l]}, Append[l, Sum[l[[Mod[l[[k]], n] + 1]], {k, n}]]]; Nest[f, {1}, 37] (* Ray Chandler, Feb 07 2007 *)
CROSSREFS
Sequence in context: A018733 A239819 A110789 * A337661 A248127 A258253
KEYWORD
easy,nonn
AUTHOR
Leroy Quet, Feb 05 2007
EXTENSIONS
Extended by Ray Chandler, Feb 07 2007
STATUS
approved