OFFSET
1,5
LINKS
FORMULA
a(n) = sum{j=1..n, A053646(j)}.
EXAMPLE
First seven terms of A053646 are 0,0,1,0,1,2,1, so a(7) = 5.
PROG
(PARI) {s=0; for(n=1, 65, p=2^floor(0.1^25+log(n)/log(2)); print1(s=s+min(n-p, 2*p-n), ", "))}
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Klaus Brockhaus, Mar 17 2003
STATUS
approved