OFFSET
1,1
LINKS
Max Barrentine, Table of n, a(n) for n = 1..16368
FORMULA
For all k>2:
For A000295(k)<n<2^k-2, a(n) = a(n+2^k-1) = a(n+2^(k+1)-1);
For n = 2^k-2, a(n) = a(n+2^(k+1)-1), a(2^(k+1)-2) = a(n)+5*3^(k-2);
a(2^(k+1)-3) = 4*3^(k-2);
For 2^k-2<n<A079583(k-1)-1, a(n) = a(n+2^k)=a(n+2^(k+1)-1);
For n = A079583(k-1)-1, a(n) = a(n+2^(k+1)-1) = 1;
For n = A079583(k-1), a(n) = a(n+2^(k+1)-1) = 2;
a(A079583(k-1)+2^k-1) = 3;
CROSSREFS
KEYWORD
nonn
AUTHOR
Max Barrentine, Apr 10 2016
STATUS
approved