OFFSET
0,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..300
Index entries for linear recurrences with constant coefficients, signature (13,-23,11).
FORMULA
G.f.: (-1+x+10*x^2)/((11*x-1)*(x-1)^2).
a(n) = 13*a(n-1)-23*a(n-2)+11*a(n-3).
MATHEMATICA
Table[11^n + n, {n, 0, 30}] (* or *) CoefficientList[Series[(- 1 + x + 10 x^2) / ((11 x - 1) (x - 1)^2), {x, 0, 30}], x]
LinearRecurrence[{13, -23, 11}, {1, 12, 123}, 20] (* Harvey P. Dale, Nov 14 2018 *)
PROG
(Magma) [11^n+n: n in [0..30]];
(Magma) I:=[1, 12, 123]; [n le 3 select I[n] else 13*Self(n-1)-23*Self(n-2)+11*Self(n-3): n in [1..30]];
(PARI) a(n)=11^n+n \\ Charles R Greathouse IV, Oct 07 2015
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Vincenzo Librandi, Jun 16 2013
STATUS
approved