OFFSET
0,1
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..100
Index entries for linear recurrences with constant coefficients, signature (11,-10).
FORMULA
a(n) = 10*a(n-1) + 51; a(0) = 11.
a(n) = 11*a(n-1) - 10*a(n-2). - Vincenzo Librandi, Jan 22 2012
MATHEMATICA
a[0]=11; a[n_]:=a[n-1]*10+51; y=Table[a[n], {n, 0, 44}]
LinearRecurrence[{11, -10}, {11, 161}, 50] (* Vincenzo Librandi, Jan 22 2012 *)
Table[FromDigits[Join[PadRight[{1}, n, 6], {1}]], {n, 20}] (* Harvey P. Dale, May 22 2015 *)
PROG
(Magma) I:=[11, 161]; [n le 2 select I[n] else 11*Self(n-1)-10*Self(n-2): n in [1..25]]; // Vincenzo Librandi, Jan 22 2012
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
José María Grau Ribas, Jan 22 2012
STATUS
approved