OFFSET
0,5
LINKS
FORMULA
MATHEMATICA
Table[Total[IntegerDigits[n]]-Total[IntegerDigits[n, 2]], {n, 0, 100}] (* Harvey P. Dale, Dec 27 2015 *)
PROG
(PARI) a(n) = sumdigits(n) - hammingweight(n); \\ Michel Marcus, Nov 06 2022
CROSSREFS
KEYWORD
base,sign
AUTHOR
Reinhard Zumkeller, Aug 06 2010
STATUS
approved