OFFSET
1,2
LINKS
Altug Alkan, Table of n, a(n) for n = 1..20000
Altug Alkan, Scatterplot of A284520
EXAMPLE
a(5) = 3 because a(5) = a(a(4)-1) + a(5-a(2)-1) = a(1) + a(2) = 3.
PROG
(PARI) a=vector(1000); a[1]=1; a[2]=a[3]=a[4]=2; for(n=5, #a, a[n]=a[a[n-1]-1]+ a[n-a[n-3]-1]); a
CROSSREFS
KEYWORD
nonn,look
AUTHOR
Altug Alkan, Mar 28 2017
STATUS
approved