login

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”).

A078825
Sum of distinct binary numbers contained as substrings in binary, circular formed representation of n and not longer than n.
2
0, 1, 3, 4, 7, 17, 17, 11, 15, 37, 18, 62, 37, 62, 62, 26, 31, 77, 69, 130, 69, 120, 120, 186, 77, 130, 120, 186, 130, 186, 186, 57, 63, 157, 141, 266, 70, 249, 249, 382, 141, 249, 81, 371, 249, 189, 371, 501, 157, 266, 249, 382, 249, 371, 189, 501, 266, 382
OFFSET
0,3
COMMENTS
a(2^k-1)=2^(k+1)-(k+2); a(2^k)=2^(k+1)-1;
for k>0: a(2^k+1)=a(3*2^(k-1))=2^(k+1);
a(2^k-1)=A078823(2^k-1), a(2^k)=A078823(2^k).
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Reinhard Zumkeller, Dec 08 2002
STATUS
approved