A160799 Partial sums of A160410.
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
Keywords
Programs
-
PARI
a(n)=4*sum(i=0, n-1, (n-i)*3^hammingweight(i)) \\ Charles R Greathouse IV, Aug 25 2016
Extensions
More terms from Max Alekseyev, Dec 12 2011