OFFSET
1,5
EXAMPLE
a(7) = a(6)(mod 1) + a(5)(mod 2) + a(4)(mod 3) + a(3)(mod 4) + a(2)(mod 5) + a(1)(mod 6) = 0 + 0 + 1 + 1 + 0 + 1 = 3.
MATHEMATICA
a[1] = 1; a[n_] := a[n] = Sum[Mod[a[n - k], k], {k, 1, n - 1}]; Table[ a[n], {n, 62}] (* Robert G. Wilson v, Jan 25 2005 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Leroy Quet, Jan 18 2005
EXTENSIONS
More terms from Robert G. Wilson v, Jan 25 2005
STATUS
approved