OFFSET
0,2
LINKS
Index entries for linear recurrences with constant coefficients, signature (13,-32,20).
FORMULA
G.f.: 1/(1-10*x)+1/(1-2*x)-1/(1-x). E.g.f.: e^(10*x)+e^(2*x)-e^x.
a(n)=12*a(n-1)-20*a(n-2)-9 with a(0)=1, a(1)=11 - Vincenzo Librandi, Jul 21 2010
a(0)=1, a(1)=11, a(2)=103, a(n)=13*a(n-1)-32*a(n-2)+20*a(n-3). - Harvey P. Dale, Mar 07 2015
a(n) = A050621(n+1)-1. - R. J. Mathar, Mar 10 2022
MATHEMATICA
LinearRecurrence[{13, -32, 20}, {1, 11, 103}, 20] (* Harvey P. Dale, Mar 07 2015 *)
PROG
(PARI) a(n)=10^n+2^n-1^n \\ Charles R Greathouse IV, Jun 11 2015
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Mohammad K. Azarian, Jan 24 2009
STATUS
approved