OFFSET
0,2
COMMENTS
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).
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)
MATHEMATICA
Table[FromDigits[IntegerDigits[3^n, 27]], {n, 0, 100}] (* G. C. Greubel, Oct 12 2018 *)
PROG
(PARI) apply( a(n)=3^(n%3)*10^(n\3), [0..20]) \\ M. F. Hasler, Jun 22 2018
CROSSREFS
KEYWORD
nonn,easy,base
AUTHOR
STATUS
approved