OFFSET
1,6
LINKS
Altug Alkan, Table of n, a(n) for n = 1..10000
Altug Alkan, Plot of first differences
MATHEMATICA
a[1] = a[2] = a[4] = 1; a[3] = 0; a[n_] := a[n] = a[n - a[n - 1] - 1] + a[n - a[n - 2] - 4]; Array[a, 78] (* Michael De Vlieger, May 15 2017 *)
PROG
(PARI) q=vector(10000); q[1]=q[2]=q[4]=1; q[3]=0; for(n=5, #q, q[n]=q[n-1-q[n-1]]+q[n-4-q[n-2]]); vector(10000, n, q[n])
CROSSREFS
KEYWORD
nonn,look
AUTHOR
Altug Alkan, May 14 2017
STATUS
approved