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”).
%I #22 Sep 08 2022 08:44:33
%S 1,22,1000,2101,11122,22000,110201,200222,1000000,1101001,1211022,
%T 2101000,10000101,10202122,11122000,12121201,20201222,22000000,
%U 100102001,101222022,110201000,112121101,121200122,200222000,210102201,220002222,1000000000,1010010001
%N Cubes written in base 3.
%H G. C. Greubel, <a href="/A004633/b004633.txt">Table of n, a(n) for n = 1..5000</a>
%F a(n) = A007089(n^3) = A007089(A000578(n)). - _Michel Marcus_, Oct 15 2015
%t Table[FromDigits[IntegerDigits[n^3, 3]], {n, 30}] (* _Vincenzo Librandi_, Oct 15 2015 *)
%o (Magma) [Seqint(Intseq(n^3, 3)): n in [1..30]]; // _Vincenzo Librandi_, Oct 15 2015
%o (PARI) for(n=1,30, print1(fromdigits(digits(n^3, 3)), ", ")) \\ _G. C. Greubel_, Sep 10 2018
%Y Cf. A000578, A007089.
%K nonn,base
%O 1,2
%A _N. J. A. Sloane_
%E Changed offset and more terms from _Vincenzo Librandi_, Oct 15 2015