login
A287354
a(n) = n for 1 <= n <= 5; a(n) = a(n-a(n-1)+1) + a(n-a(n-2)+2) for n > 5.
1
1, 2, 3, 4, 5, 6, 6, 7, 8, 8, 9, 10, 10, 11, 11, 12, 13, 13, 13, 15, 14, 16, 16, 16, 17, 18, 18, 19, 19, 20, 21, 21, 21, 22, 23, 23, 23, 25, 24, 26, 25, 26, 28, 28, 26, 29, 29, 29, 30, 30, 32, 30, 32, 34, 33, 32, 36, 35, 34, 36, 37, 37, 37, 38, 39, 39, 39, 41, 40, 42, 41, 42
OFFSET
1,2
LINKS
PROG
(PARI) q=vector(1000); q[1]=1; q[2]=2; q[3]=3; q[4]=4; q[5]=5; for(n=6, #q, q[n]=q[n-q[n-1]+1]+q[n-q[n-2]+2]); vector(1000, n, q[n])
CROSSREFS
Sequence in context: A305398 A216522 A086419 * A025548 A121604 A071520
KEYWORD
nonn
AUTHOR
Altug Alkan, May 23 2017
STATUS
approved