login
A004658
Powers of 3 written in base 4.
12
1, 3, 21, 123, 1101, 3303, 23121, 202023, 1212201, 10303203, 32122221, 223033323, 2001233301, 12011033103, 102033231321, 312233021223, 2210031131001, 13230220113003, 113011321011021, 1011101223033123
OFFSET
0,2
LINKS
MATHEMATICA
Table[FromDigits[IntegerDigits[3^n, 4]], {n, 0, 40}] (* Vincenzo Librandi, Jun 07 2013 *)
PROG
(PARI) a(n, b=4, m=3)=fromdigits(digits(m^n, b)) \\ M. F. Hasler, Jun 22 2018
(Magma) [Seqint(Intseq(3^n, 4)): n in [0..30]]; // G. C. Greubel, Sep 10 2018
CROSSREFS
Cf. A000244, A004656, A004659, ... : powers of 3 written in base 10, 2, 5, ...
Cf. A000079, A004643, ..., A004655: powers of 2 written in base 10, 4, 5, ..., 16
Sequence in context: A322185 A171137 A144884 * A034552 A356889 A220616
KEYWORD
nonn,base,easy
STATUS
approved