OFFSET
1,1
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..1000
Index entries for linear recurrences with constant coefficients, signature (10,1,-10).
FORMULA
G.f.: x*(2+x) / ((x-1)*(10*x-1)*(1+x)). - R. J. Mathar, Nov 21 2011
MATHEMATICA
Table[-(1/6)-(1/22)*(-1)^n+(7/33)*10^n, {n, 1, 20}] (* Vincenzo Librandi, Nov 23 2011 *)
Table[FromDigits[PadRight[{}, n, {2, 1}]], {n, 20}] (* Harvey P. Dale, Aug 21 2013 *)
PROG
(Magma) [-(1/6)-(1/22)*(-1)^n+(7/33)*10^n: n in [1..20]]; // Vincenzo Librandi, Nov 23 2011
CROSSREFS
KEYWORD
nonn,easy,base
AUTHOR
STATUS
approved