

A094120


a(n) = Sum_{k=1..n} Sum_{i=1..k} (2)^valuation(i,2).


1



0, 1, 0, 0, 4, 9, 12, 16, 12, 9, 4, 0, 0, 1, 0, 0, 16, 33, 48, 64, 84, 105, 124, 144, 156, 169, 180, 192, 208, 225, 240, 256, 240, 225, 208, 192, 180, 169, 156, 144, 124, 105, 84, 64, 48, 33, 16, 0, 0, 1, 0, 0, 4, 9, 12, 16, 12, 9, 4, 0, 0, 1, 0, 0, 64, 129, 192, 256, 324, 393
(list;
graph;
refs;
listen;
history;
text;
internal format)



OFFSET

0,5


LINKS



MATHEMATICA

{0}~Join~Accumulate@ Accumulate@ Array[(2)^IntegerExponent[#, 2] &, 69] (* Michael De Vlieger, Oct 30 2022 *)


PROG

(PARI) a(n)=sum(k=1, n, sum(i=1, k, (2)^valuation(i, 2)))


CROSSREFS



KEYWORD

nonn


AUTHOR



STATUS

approved



