OFFSET
1,9
LINKS
Altug Alkan, Table of n, a(n) for n = 1..10000
Altug Alkan, Scatterplot of A284478
MAPLE
MATHEMATICA
a[n_] := a[n] = If[n < 3, 1, a[n - a[n - 1]] + a[n - a[n - 2]]]; b[n_] := b[n] = If[n < 3, 1, b[b[n - 1]] + b[n - b[n - 2] - 1]]; Array[a[#] - b[#] &, 96] (* Michael De Vlieger, Mar 29 2017 *)
PROG
(PARI) q=vector(1000); c=vector(1000); q[1]=q[2]=1; for(n=3, #q, q[n]=(q[n-q[n-1]]+q[n-q[n-2]])); c[1]=c[2]=1; for(n=3, #c, c[n]=(c[c[n-1]]+c[n-c[n-2]-1])); va = vector(1000, n, q[n]-c[n])
CROSSREFS
KEYWORD
sign,look
AUTHOR
Altug Alkan, Mar 27 2017
STATUS
approved