OFFSET
1,1
LINKS
Index entries for linear recurrences with constant coefficients, signature (10,0,0,1,-10).
FORMULA
a(n) = 10*a(n-1) + a(n-4) - 10*a(n-5). G.f.: x*(2+x+3*x^2) / ((x-1)*(10*x-1)*(1+x)*(x^2+1)). - R. J. Mathar, Oct 05 2009
MATHEMATICA
nn=10; With[{c=PadLeft[{}, 4nn, {2, 1, 3, 0}]}, Table[FromDigits[Take[c, n]], {n, 4nn}]] (* Harvey P. Dale, Aug 16 2011 *)
PROG
(PARI) Vec(x*(2+x+3*x^2)/((x-1)*(10*x-1)*(1+x)*(x^2+1)) + O(x^25)) \\ Jinyuan Wang, Apr 14 2020
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
EXTENSIONS
More terms from Harvey P. Dale, Aug 16 2011
STATUS
approved