OFFSET
1,1
COMMENTS
Conjecture: Sequence is infinite.
LINKS
Altug Alkan, Table of n, a(n) for n = 1..10000
Altug Alkan, Scatterplot of a(n)-2*n/3
Hans Havermann, Scatterplot of a(n) for n <= 10^7
MAPLE
a:= proc(n) option remember; procname(n-procname(n-1))+procname(n-procname(n-2))+procname(n-procname(n-3)) end proc:
a(1):= 2: a(2):= 3: a(3):= 3: a(4):= 4: a(5):= 6: a(6):= 6:
map(a, [$1..100]); # Robert Israel, Dec 12 2017
MATHEMATICA
a[n_] := a[n] = If[n<7, {2, 3, 3, 4, 6, 6}[[n]], a[n - a[n-1]] + a[n - a[n-2]] + a[n - a[n-3]]]; Array[a, 83] (* Giovanni Resta, Dec 13 2017 *)
PROG
(PARI) q=vector(10^5); q[1]=2; q[2]=3; q[3]=3; q[4]=4; q[5]=6; q[6]=6; for(n=7, #q, q[n] = q[n-q[n-1]]+q[n-q[n-2]]+q[n-q[n-3]]); q
CROSSREFS
KEYWORD
nonn,look
AUTHOR
Altug Alkan, Dec 12 2017
STATUS
approved