A094115 Partial sums of A093347.
0, 1, 1, 4, 6, 9, 9, 10, 10, 19, 27, 36, 42, 49, 55, 64, 72, 81, 81, 82, 82, 85, 87, 90, 90, 91, 91, 118, 144, 171, 195, 220, 244, 271, 297, 324, 342, 361, 379, 400, 420, 441, 459, 478, 496, 523, 549, 576, 600, 625, 649, 676, 702, 729, 729, 730, 730, 733, 735, 738, 738
Offset: 1
Keywords
Programs
-
PARI
a(n)=sum(k=1,n,-sum(i=1,k-1,(-1)^i*3^valuation(i,3)))
Formula
a(3^k)=(9^k-1)/8
Comments