OFFSET
1,4
COMMENTS
Undefined for n>54 since a(53)=69>=55.
EXAMPLE
a(7) = a(7-a(5))+a(7-a(4)) = a(7-4)+a(7-2) = a(3)+a(5) = 1+4 = 5.
MAPLE
#Q(r, s) with initial values 1, 1, 1, ..., from N. J. A. Sloane, Apr 15 2014
r:=2; s:=3;
a:=proc(n) option remember; global r, s;
if n <= s then 1
else
if (a(n-r) <= n) and (a(n-s) <= n) then
a(n-a(n-r))+a(n-a(n-s));
else lprint("died with n =", n); return (-1);
fi;
fi; end;
[seq(a(n), n=1..54)];
CROSSREFS
KEYWORD
fini,full,nonn
AUTHOR
Henry Bottomley, Aug 29 2001
STATUS
approved