OFFSET
0,3
LINKS
Colin Barker, Table of n, a(n) for n = 0..1000
FORMULA
a(n) = Sum{i=1..n} 2^{number of 0's in binary expansion of i}.
a(n) = (A064194(n+1)-1)/2.
PROG
(PARI) a(n) = sum(i=1, n, b=binary(i); 2^(#b-norml2(b))) \\ Colin Barker, Feb 08 2016
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Feb 07 2016
STATUS
approved