OFFSET
1,4
LINKS
Muniru A Asiru, Table of n, a(n) for n = 1..10000
MAPLE
a:= proc(n) option remember: if n<4 then 1 else procname(procname(procname(min(n-1, abs(n-procname(n-1))))))+procname(abs(n-procname(n-3))) fi end:
seq(a(n), n=1..100); # Muniru A Asiru, Jun 02 2018
MATHEMATICA
a[n_Integer?Positive] := a[n] = a[ a[a[Min[n-1, Abs[n - a[n-1]]]]]] + a[Abs[n - a[n-3]]]
a[0] = a[1] = a[2] = a[3] = 1
Table[a[n], {n, 1, 200}]
PROG
(GAP) a:=[1, 1, 1];; for n in [4..100] do a[n]:=a[a[a[Minimum(n-1, AbsInt(n-a[n-1]))]]]+a[AbsInt(n-a[n-3])]; od; a; # Muniru A Asiru, Jun 02 2018
CROSSREFS
KEYWORD
nonn
AUTHOR
Roger L. Bagula, Oct 07 2003
EXTENSIONS
Edited by N. J. A. Sloane, Jun 16 2007
STATUS
approved