OFFSET
1,1
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
Index entries for linear recurrences with constant coefficients, signature (9,0,0,1,-9).
FORMULA
G.f.: ( x*(2+x+3*x^3) ) / ( (x-1)*(9*x-1)*(1+x)*(1+x^2) ). - R. J. Mathar, Oct 14 2015
MATHEMATICA
Table[FromDigits[PadRight[{}, n, {2, 1, 0, 3}], 9], {n, 1000}] (* Harvey P. Dale, Apr 23 2017 *)
PROG
(PARI) a(n)=([0, 1, 0, 0, 0; 0, 0, 1, 0, 0; 0, 0, 0, 1, 0; 0, 0, 0, 0, 1; -9, 1, 0, 0, 9]^(n-1)*[2; 19; 171; 1542; 13880])[1, 1] \\ Charles R Greathouse IV, Jun 02 2026
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
STATUS
approved
