OFFSET
1,3
LINKS
Vaclav Kotesovec, Table of n, a(n) for n = 1..3300
Vaclav Kotesovec, Plot of a(n) / (2^n/n) for n = 1..50000
EXAMPLE
a(10) mod 10 = 63 mod 10 = 3. So a(11) = Sum_{k=0..3} a(10-k) = a(10) + a(9) + a(8) + a(7) = 63 + 63 + 35 + 12 = 173.
MAPLE
a[1] := 1; for n to 35 do a[n+1] := add(a[n-k], k = 0 .. `mod`(a[n], n)) end do; seq(a[n], n = 1 .. 35); # Emeric Deutsch, Jun 21 2007
MATHEMATICA
a[1] = 1; a[n_] := a[n] = Sum[a[n-1-k], {k, 0, Mod[a[n-1], n-1]}]; Table[a[n], {n, 1, 50}] (* Vaclav Kotesovec, Apr 26 2020 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Leroy Quet, Jun 18 2007
EXTENSIONS
More terms from Jon E. Schoenfield, Jun 21 2007
More terms from Emeric Deutsch, Jun 21 2007
STATUS
approved