login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A160799
Partial sums of A160410.
1
0, 4, 20, 48, 112, 188, 300, 448, 704, 972, 1276, 1616, 2064, 2548, 3140, 3840, 4864, 5900, 6972, 8080, 9296, 10548, 11908, 13376, 15168, 16996, 18932, 20976, 23344, 25820, 28620, 31744, 35840, 39948, 44092, 48272, 52560, 56884, 61316, 65856
OFFSET
1,2
PROG
(PARI) a(n)=4*sum(i=0, n-1, (n-i)*3^hammingweight(i)) \\ Charles R Greathouse IV, Aug 25 2016
CROSSREFS
KEYWORD
nonn
AUTHOR
Omar E. Pol, Jun 14 2009
EXTENSIONS
More terms from Max Alekseyev, Dec 12 2011
STATUS
approved