%I #9 Feb 02 2018 14:36:52
%S 0,1,3,4,6,10,12,13,15,19,21,31,33,37,39,40,42,46,48,58,60,64,66,94,
%T 96,100,102,112,114,118,120,121,123,127,129,139,141,145,147,175,177,
%U 181,183,193,195,199,201,283,285,289,291,301,303,307,309,337,339,343,345
%N Redundant binary representation (A089591) of n interpreted as ternary number.
%C A007089(a(n)) = A089591(n).
%H R. Zumkeller, <a href="/A137951/b137951.txt">Table of n, a(n) for n = 0..10000</a>
%H Eric Weisstein's World of Mathematics, <a href="http://mathworld.wolfram.com/Ternary.html">Ternary</a>
%e A089591(10)=210 --> a(10)=2*3^2+1*3^1+0*3^0=18+3+0=21;
%e A089591(11)=1011 --> a(11)=1*3^3+0*3^2+1*3^1+1*3^0=27+0+3+1=31.
%K nonn,base
%O 0,3
%A _Reinhard Zumkeller_, Feb 25 2008