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”).

A094115
Partial sums of A093347.
0
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,4
FORMULA
a(3^k)=(9^k-1)/8
PROG
(PARI) a(n)=sum(k=1, n, -sum(i=1, k-1, (-1)^i*3^valuation(i, 3)))
CROSSREFS
Sequence in context: A197575 A201660 A341577 * A339856 A163297 A051679
KEYWORD
nonn
AUTHOR
Benoit Cloitre, May 03 2004
STATUS
approved