

A285582


a(1) = 1, a(2) = a(3) = a(4) = 2; a(n) = a(a(n3)1) + a(na(n4)1) for n > 4.


1



1, 2, 2, 2, 3, 3, 3, 5, 5, 5, 5, 5, 5, 7, 7, 7, 8, 8, 8, 8, 8, 8, 10, 10, 10, 13, 12, 13, 13, 12, 13, 13, 13, 13, 13, 13, 15, 15, 15, 20, 17, 20, 20, 17, 20, 18, 20, 20, 21, 21, 20, 21, 21, 21, 21, 21, 21, 21, 23, 23, 23, 28, 23, 28, 29, 23, 32, 28, 23, 31, 27, 28, 33, 33, 32
(list;
graph;
refs;
listen;
history;
text;
internal format)



OFFSET

1,2


LINKS



MATHEMATICA

a[1] = 1; a[2] = a[3] = a[4] = 2; a[n_] := a[n] = a[a[n  3]  1] + a[n  a[n  4]  1]; Array[a, 75] (* Michael De Vlieger, Apr 23 2017 *)


PROG

(PARI) q=vector(10000); q[1]=1; q[2]=q[3]=q[4]=2; for(n=5, #q, q[n]=q[q[n3]1]+q[nq[n4]1]); vector(10000, n, q[n])


CROSSREFS



KEYWORD



AUTHOR



STATUS

approved



