A004669 Powers of 3 written in base 27.
1, 3, 9, 10, 30, 90, 100, 300, 900, 1000, 3000, 9000, 10000, 30000, 90000, 100000, 300000, 900000, 1000000, 3000000, 9000000, 10000000, 30000000, 90000000, 100000000, 300000000, 900000000, 1000000000
Offset: 0
Links
- G. C. Greubel, Table of n, a(n) for n = 0..1000
- Index entries for linear recurrences with constant coefficients, signature (0,0,10).
Crossrefs
Programs
-
Mathematica
Table[FromDigits[IntegerDigits[3^n, 27]], {n, 0, 100}] (* G. C. Greubel, Oct 12 2018 *)
-
PARI
apply( a(n)=3^(n%3)*10^(n\3), [0..20]) \\ M. F. Hasler, Jun 22 2018
Formula
a(n) = 3^(n mod 3)*10^floor(n/3). - M. F. Hasler, Jun 22 2018
From Chai Wah Wu, Sep 03 2020: (Start)
a(n) = 10*a(n-3) for n > 2.
G.f.: (-9*x^2 - 3*x - 1)/(10*x^3 - 1). (End)
Comments