This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.
%I A078825 #3 Mar 30 2012 18:50:29 %S A078825 0,1,3,4,7,17,17,11,15,37,18,62,37,62,62,26,31,77,69,130,69,120,120, %T A078825 186,77,130,120,186,130,186,186,57,63,157,141,266,70,249,249,382,141, %U A078825 249,81,371,249,189,371,501,157,266,249,382,249,371,189,501,266,382 %N A078825 Sum of distinct binary numbers contained as substrings in binary, circular formed representation of n and not longer than n. %C A078825 a(2^k-1)=2^(k+1)-(k+2); a(2^k)=2^(k+1)-1; %C A078825 for k>0: a(2^k+1)=a(3*2^(k-1))=2^(k+1); %C A078825 a(2^k-1)=A078823(2^k-1), a(2^k)=A078823(2^k). %Y A078825 Cf. A078824, A078823, A007088. %K A078825 nonn,base %O A078825 0,3 %A A078825 _Reinhard Zumkeller_, Dec 08 2002