OFFSET
1,1
LINKS
Index entries for linear recurrences with constant coefficients, signature (10,0,1,-10).
FORMULA
G.f.: x*(2+x+3*x^2) / ( (x-1)*(10*x-1)*(1+x+x^2) ). - R. J. Mathar, Nov 21 2011
MATHEMATICA
Table[FromDigits[PadRight[{}, n, {2, 1, 3}]], {n, 20}] (* or *) LinearRecurrence[{10, 0, 1, -10}, {2, 21, 213, 2132}, 20] (* Harvey P. Dale, Jun 23 2016 *)
PROG
(PARI) Vec(x*(2+x+3*x^2)/((x-1)*(10*x-1)*(1+x+x^2)) + O(x^25)) \\ Jinyuan Wang, Apr 14 2020
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
STATUS
approved