OFFSET
1,1
LINKS
Altug Alkan, Table of n, a(n) for n = 1..10000
MATHEMATICA
a[1] = a[2] = a[3] = a[4] = 2; a[n_] := a[n] = a[a[n-1]] + a[Floor[n / a[n-1]]]; Array[a, 100] (* Amiram Eldar, Jun 27 2020 *)
PROG
(PARI) a=vector(10^2); a[1]=a[2]=a[3]=a[4]=2; for(n=5, #a, a[n]=a[n\a[n-1]]+a[a[n-1]]); a
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Altug Alkan, Jun 27 2020
STATUS
approved