1,3

Altug Alkan, Table of n, a(n) for n = 1..10000

Altug Alkan, Alternative scatterplot

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

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

Cf. A005185, A055748.

Sequence in context: A333348 A194920 A327440 * A072912 A025786 A085886

Adjacent sequences: A285585 A285586 A285587 * A285589 A285590 A285591

nonn

Altug Alkan, Apr 22 2017

approved