login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A036215 Binary reversal of 3^n 3
1, 3, 9, 27, 69, 207, 621, 3345, 4275, 25497, 38247, 229173, 589185, 1669443, 5205897, 14045019, 34319397, 102566511, 307313949, 1843835217, 2312645619, 13776780249, 20417442711, 112792132341, 290155405761, 847524815523, 2611222884297, 7627711248315 (list; graph; refs; listen; history; text; internal format)
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

A. Karttunen, A Simple C-program Demonstrating Bit-Reversals

FORMULA

a(n) = A030101(A000244(n)). - Michel Marcus, Sep 08 2013

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

Cf. A036213 and A036214.

Sequence in context: A280466 A137368 A191007 * A103828 A110740 A042938

Adjacent sequences:  A036212 A036213 A036214 * A036216 A036217 A036218

KEYWORD

nonn,base

AUTHOR

Antti Karttunen

EXTENSIONS

More terms from Michel Marcus, Sep 08 2013

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified July 7 16:01 EDT 2020. Contains 335496 sequences. (Running on oeis4.)