cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A004658 Powers of 3 written in base 4.

Original entry on oeis.org

1, 3, 21, 123, 1101, 3303, 23121, 202023, 1212201, 10303203, 32122221, 223033323, 2001233301, 12011033103, 102033231321, 312233021223, 2210031131001, 13230220113003, 113011321011021, 1011101223033123
Offset: 0

Views

Author

Keywords

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

Programs

  • Magma
    [Seqint(Intseq(3^n, 4)): n in [0..30]]; // G. C. Greubel, Sep 10 2018
  • Mathematica
    Table[FromDigits[IntegerDigits[3^n, 4]], {n, 0, 40}] (* Vincenzo Librandi, Jun 07 2013 *)
  • PARI
    a(n,b=4,m=3)=fromdigits(digits(m^n,b)) \\ M. F. Hasler, Jun 22 2018