login
A125953
a(0)=1. a(n) = sum{k=0 to n-1} (a(k)(mod n)).
0
1, 0, 1, 2, 4, 8, 10, 12, 14, 25, 27, 38, 34, 72, 80, 103, 95, 101, 123, 123, 133, 208, 180, 175, 177, 196, 304, 329, 335, 300, 330, 440, 396, 350, 510, 511, 491, 651, 619, 644, 632, 666, 798, 831, 827, 971, 871, 964, 984, 1045, 1091, 1104, 1360, 1269, 1153, 1213
OFFSET
0,4
MATHEMATICA
f[l_List] := Block[{n = Length[l]}, Append[l, Sum[Mod[l[[k]], n], {k, n}]]]; Nest[f, {1}, 55] (* Ray Chandler, Feb 07 2007 *)
CROSSREFS
Sequence in context: A155037 A001770 A032494 * A373490 A308357 A047464
KEYWORD
easy,nonn
AUTHOR
Leroy Quet, Feb 05 2007
EXTENSIONS
Extended by Ray Chandler, Feb 07 2007
STATUS
approved