OFFSET
0,3
EXAMPLE
The binary expansion of 100 is (1,1,0,0,1,0,0), with zeros at positions {3,4,6,7}, so a(100) = 20.
MATHEMATICA
Table[Total[Join@@Position[IntegerDigits[n, 2], 0]], {n, 0, 100}]
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Gus Wiseman, Jan 03 2023
STATUS
approved