OFFSET
1,2
LINKS
Altug Alkan, Table of n, a(n) for n = 1..10000
Altug Alkan, Plot of a(n)-n/2
Indranil Ghosh, Python program to compute the sequence
MAPLE
N:= 2^10: # to get a(1) to a(N)
C[1]:= 1:
C[2]:= 2:
C[3]:= 3:
C[4]:= 2:
C[5]:= 2:
for n from 6 to N do
C[n]:= C[C[n-1]] + C[C[n-C[n-1]] + C[n-C[n-2]]];
od:
S:=seq(C[n], n=1..N);
PROG
(Scheme)
;; An implementation of memoization-macro definec can be found for example in: http://oeis.org/wiki/Memoization
CROSSREFS
KEYWORD
nonn
AUTHOR
Altug Alkan, May 30 2017
STATUS
approved