login
If n=0 then 0 else smallest number greater than its predecessor and having in binary representation less zeros or more blocks of contiguous zeros.
4

%I #8 Mar 30 2012 18:50:50

%S 0,1,2,3,4,5,7,8,9,10,11,15,16,17,18,19,20,21,23,26,27,31,32,33,34,35,

%T 36,37,39,40,41,42,43,47,50,51,52,53,55,58,59,63,64,65,66,67,68,69,71,

%U 72,73,74,75,79,80,81,82,83,84,85,87,90,91,95,98,99,100,101,103,104,105

%N If n=0 then 0 else smallest number greater than its predecessor and having in binary representation less zeros or more blocks of contiguous zeros.

%C A023416(a(n+1)) < A023416(a(n)) or A087116(a(n+1))>A087116(a(n));

%C complement of A107687; A107688(n) = a(n+1) - a(n);

%C A107684 is a subsequence.

%H <a href="/index/Bi#binary">Index entries for sequences related to binary expansion of n</a>

%Y Cf. A007088.

%K nonn

%O 0,3

%A _Reinhard Zumkeller_, May 20 2005