a(n) = (1/2)*Sum{|d(i)-e(i)|} where Sum{d(i)*2^i} is the base-2 representation of n and {e(i)} are digits {d(i)} in nondecreasing order.
A037879
a(n) = (1/2)*Sum{|d(i)-e(i)|} where Sum{d(i)*2^i} is the base-2 representation of n and {e(i)} are digits {d(i)} in nondecreasing order.
Terms
- a(0) =0a(1) =0a(2) =0a(3) =0a(4) =1a(5) =0a(6) =0a(7) =0a(8) =1a(9) =1a(10) =1a(11) =0a(12) =1a(13) =0a(14) =0a(15) =0a(16) =1a(17) =1a(18) =2a(19) =1a(20) =1a(21) =1a(22) =1a(23) =0a(24) =1a(25) =1a(26) =1a(27) =0a(28) =1a(29) =0
External references
- oeis: A037879