Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).
%I #4 May 19 2020 07:25:31
%S 1,0,2,3,2,2,7,9,2,2,7,8,6,11,23,21,2,2,7,8,6,11,23,20,6,11,22,22,23,
%T 45,67,45,2,2,7,8,6,11,23,20,6,11,22,22,23,45,67,44,6,11,22,22,23,45,
%U 66,46,23,44,66,67,91,157,179,93,2,2,7,8,6,11,23,20,6,11,22,22,23,45,67,44,6
%N a(0)=1; a(1)=0; a(2)=2; for n>=3 if n=2^i + j with 0<=j<2^i then a(n)=2*a(j) + a(j + 1) except we add 1 if j=2^i-1.
%F I would very much like a g.f. for this sequence!
%Y Cf. A151843-A151874.
%K nonn
%O 0,3
%A _N. J. A. Sloane_, Jul 17 2009