%I #16 Sep 08 2022 08:44:33
%S 1,3,12,36,144,465,2061,6243,25062,111246,334104,1335315,4342251,
%T 16360113,55440342,232651356,1031614434,3125446635,12413006541,
%U 40542026253,152256115122,520134351366,2160436414464
%N Powers of 3 written in base 7.
%H Vincenzo Librandi, <a href="/A004661/b004661.txt">Table of n, a(n) for n = 0..1000</a>
%t Table[FromDigits[IntegerDigits[3^n, 7]], {n, 0, 30}] (* _Vincenzo Librandi_, Jun 07 2013 *)
%o (PARI) vector(50, n, n--; fromdigits(digits(3^n, 7))) \\ _G. C. Greubel_, Oct 13 2018
%o (Magma) [Seqint(Intseq(3^n,7)): n in [0..30]]; // _G. C. Greubel_, Oct 13 2018
%K nonn,base,easy
%O 0,2
%A _N. J. A. Sloane_