OFFSET
1,2
COMMENTS
Conjectured to be infinite.
REFERENCES
D. R. Hofstadter, Curious patterns and non-patterns in a family of meta-Fibonacci recursions, Lecture in Doron Zeilberger's Experimental Mathematics Seminar, Rutgers University, April 10 2014.
LINKS
N. J. A. Sloane, Table of n, a(n) for n = 1..50000
MAPLE
#Q(r, s) with initial values 1, 2, 3, 4, ...
r:=3; s:=6;
a:=proc(n) option remember; global r, s;
if n <= s then n
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;
t2:=[seq(a(n), n=1..100)];
MATHEMATICA
{a[1]=1, a[2]=2, a[3]=3, a[4]=4, a[5]=5, a[6]=6, a[n_]:=a[n]=a[n-a[n-3]]+ a[n-a[n-6]]}; Table[a[x], {x, 100}] (* Harvey P. Dale, Nov 18 2021 *)
PROG
(Magma) I:=[1, 2, 3, 4, 5, 6]; [n le 6 select I[n] else Self(n-Self(n-3))+Self(n-Self(n-6)): n in [1..100]]; // Vincenzo Librandi, Apr 16 2014
CROSSREFS
KEYWORD
nonn,hear
AUTHOR
N. J. A. Sloane, Apr 15 2014
STATUS
approved