%I #14 Sep 08 2022 08:44:33
%S 1,3,14,102,311,1433,10404,32222,202221,1112213,3342144,21132042,
%T 114001231,402004243,2211023334,12133131112,42004443341,231024441123,
%U 1243134423424,4340014331332,24120104100101
%N Powers of 3 written in base 5.
%H Vincenzo Librandi, <a href="/A004659/b004659.txt">Table of n, a(n) for n = 0..1000</a>
%t Table[FromDigits[IntegerDigits[3^n, 5]], {n, 0, 40}] (* _Vincenzo Librandi_, Jun 07 2013 *)
%o (PARI) for(n=0,30, print1(fromdigits(digits(3^n, 5)), ", ")) \\ _G. C. Greubel_, Sep 10 2018
%o (Magma) [Seqint(Intseq(3^n, 5)): n in [0..30]]; // _G. C. Greubel_, Sep 10 2018
%K nonn,base,easy
%O 0,2
%A _N. J. A. Sloane_
|