OFFSET
0,3
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..1000
FORMULA
G.f.: (1/(1-x))*Sum{k=0..infinity} ( x^(3^k)/((1-x)*(1-x^(3^k))) ).
a(n) = Sum_{j=0..n} ( Sum_{k=0..j} floor(j/3^k) ).
MATHEMATICA
Table[Sum[Sum[Floor[3*j/3^k], {k, 1, j}], {j, 0, n}], {n, 0, 50}] (* G. C. Greubel, May 14 2017 *)
PROG
(PARI) for(n=0, 50, print1(sum(j=0, n, sum(k=0, j, floor(j/3^k))), ", ")) \\ G. C. Greubel, May 14 2017
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Paul Barry, Aug 27 2006
STATUS
approved