OFFSET
0,2
COMMENTS
a^n+b^n-1^n=(a+b)*a(n-1)-(a*b)*a(n-2)-(a-1)*(b-1) - Vincenzo Librandi, Jul 21 2010
LINKS
Index entries for linear recurrences with constant coefficients, signature (15,-47,33).
FORMULA
G.f.: 1/(1 - 11*x) + 1/(1 - 3*x) - 1/(1 - x).
E.g.f.: exp(11*x) + exp(3*x) - exp(x).
a(n) = 14*a(n-1) - 33*a(n-2) - 20 for n>1, a(0)=1, a(1)=13 - Vincenzo Librandi, Jul 21 2010
MATHEMATICA
LinearRecurrence[{15, -47, 33}, {1, 13, 129}, 20] (* Harvey P. Dale, Jan 14 2015 *)
PROG
(PARI) a(n)=11^n+3^n-1 \\ Charles R Greathouse IV, Jun 11 2015
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Mohammad K. Azarian, Jan 29 2009
STATUS
approved