login
A132139
a(n) = f(n,1) with f(m,x) = if m<3 then (if m=1 then x else 0) else (if m mod 3 = 0 then 0 else f([m/3], x*(1 + m mod 3) + 1)).
3
1, 0, 0, 3, 4, 0, 0, 0, 0, 0, 0, 0, 7, 9, 0, 10, 13, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 15, 19, 0, 21, 27, 0, 0, 0, 0, 22, 28, 0, 31, 40, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
OFFSET
1,4
LINKS
CROSSREFS
Sequence in context: A292832 A264932 A171604 * A045951 A238797 A025120
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Aug 20 2007
STATUS
approved