login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A004662
Powers of 3 written in base 8.
1
1, 3, 11, 33, 121, 363, 1331, 4213, 14641, 46343, 163251, 531773, 2015761, 6051723, 22175571, 66571153, 244153501, 754502703, 2705710511, 10521531733, 31765015621, 115737051263, 351635174031
OFFSET
0,2
LINKS
MATHEMATICA
Table[FromDigits[IntegerDigits[3^n, 8]], {n, 0, 30}] (* Vincenzo Librandi, Jun 07 2013 *)
PROG
(PARI) vector(50, n, n--; fromdigits(digits(3^n, 8))) \\ G. C. Greubel, Oct 12 2018
(Magma) [Seqint(Intseq(3^n, 8)): n in [0..50]]; // G. C. Greubel, Oct 12 2018
CROSSREFS
Cf. A000244 (powers of 3), A007094 (numbers in base 8).
Sequence in context: A295092 A032199 A018413 * A247103 A036542 A084266
KEYWORD
nonn,base,easy
STATUS
approved