OFFSET
0,3
COMMENTS
The number of appearances of k is the number of compositions of k into numbers of the form 3^n and 2*3^n, A235684(k).
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..10000
MATHEMATICA
bitPatt[n_, b_]:=Split[IntegerDigits[n, b ], #2==0&]; Map[Plus@@Map[FromDigits[#, 3]&, bitPatt[#, 3]]&, Range[0, 50]] (* Peter J. C. Moses, Jan 13 2014 *)
CROSSREFS
KEYWORD
AUTHOR
Vladimir Shevelev, Jan 13 2014
STATUS
approved