login
A283426
a(1) = a(2) = a(3) = a(4) = 1; a(n) = a(n-a(n-2)-1) + a(n-a(n-4)-2) for n > 4.
1
1, 1, 1, 1, 2, 2, 2, 4, 4, 4, 4, 4, 6, 8, 8, 6, 8, 8, 8, 8, 8, 10, 14, 14, 12, 12, 12, 12, 14, 14, 14, 16, 16, 16, 16, 16, 16, 16, 18, 24, 24, 22, 22, 16, 18, 24, 26, 28, 24, 22, 26, 24, 24, 28, 26, 26, 28, 26, 28, 32, 30, 30, 32, 30, 32, 32, 32, 32, 32, 32, 32, 34, 42, 42
OFFSET
1,5
COMMENTS
For n < 10^5, values of a(n) such that a(n) = a(n + k) for all k = 1..6 are 2^4, 2^5, .., 2^14, 2^15.
MATHEMATICA
a[1] = a[2] = a[3] = a[4] = 1; a[n_] := a[n] = a[n - a[n - 2] - 1] + a[n - a[n - 4] - 2]; Array[a, 74] (* Michael De Vlieger, May 15 2017 *)
PROG
(PARI) q=vector(10000); q[1]=q[2]=q[3]=q[4]=1; for(n=5, #q, q[n]=q[n-1-q[n-2]]+q[n-2-q[n-4]]); vector(10000, n, q[n])
CROSSREFS
Sequence in context: A306390 A106160 A305117 * A372057 A340743 A317841
KEYWORD
nonn,look
AUTHOR
Altug Alkan, May 15 2017
STATUS
approved