OFFSET
1,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..100
Index entries for linear recurrences with constant coefficients, signature (11,-10).
FORMULA
a(n)=10*a(n-1)+31, n>1.
G.f.: x*(1+30*x) / ( (10*x-1)*(x-1) ).
MATHEMATICA
NestList[10#+31&, 1, 20] (* or *) Table[FromDigits[PadLeft[{1}, n, 4]], {n, 20}] (* Harvey P. Dale, May 28 2013 *)
Table[(4 10^n - 31)/9, {n, 1, 30}] (* Vincenzo Librandi, Aug 20 2014 *)
PROG
(Magma) [(4*10^n-31)/9: n in [1..20]]; // Vincenzo Librandi, Aug 20 2014
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Vincenzo Librandi, Feb 24 2010
STATUS
approved