OFFSET
0,2
COMMENTS
Compute 3^n in binary, reverse the bits, from 0 to the most significant bit of the power.
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..1000
FORMULA
MATHEMATICA
Table[FromDigits[Reverse[IntegerDigits[3^n, 2]], 2], {n, 0, 30}] (* Vincenzo Librandi, Sep 09 2013 *)
PROG
(PARI) a(n) = subst(Polrev(binary(3^n)), x, 2); \\ Michel Marcus, Sep 08 2013
CROSSREFS
KEYWORD
nonn,base
AUTHOR
EXTENSIONS
More terms from Michel Marcus, Sep 08 2013
STATUS
approved