OFFSET
0,12
LINKS
Michael De Vlieger, Table of n, a(n) for n = 0..10000
FORMULA
a(2*n) = a(n). - David A. Corneth, Oct 12 2018
EXAMPLE
46 = 101110_2 so a(46) = 3.
MATHEMATICA
Table[First[Map[Length, Rest@ DeleteCases[#, w_ /; First@ w == 0] &@ Split@ IntegerDigits[n, 2]] /. {} -> {0}], {n, 100}] (* Michael De Vlieger, Dec 23 2016 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
N. J. A. Sloane, Dec 22 2016
EXTENSIONS
More terms from Michael De Vlieger, Dec 23 2016
STATUS
approved