OFFSET
0,2
LINKS
Index entries for linear recurrences with constant coefficients, signature (12,-41,30).
FORMULA
G.f.: 1/(1-6*x)-1/(1-5*x)+1/(1-x).
E.g.f.: e^(6*x)-e^(5*x)+e^x.
a(n) = 11*a(n-1)-30*a(n-2)+20 with a(0)=1, a(1)=2. - Vincenzo Librandi, Jul 21 2010
MAPLE
MATHEMATICA
Table[6^n - 5^n + 1, {n, 0, 20}] (* Wesley Ivan Hurt, Nov 20 2014 *)
LinearRecurrence[{12, -41, 30}, {1, 2, 12}, 30] (* Harvey P. Dale, Aug 23 2016 *)
PROG
(Magma) [6^n - 5^n + 1 : n in [0..20]]; // Wesley Ivan Hurt, Nov 20 2014
(PARI) a(n)=6^n-5^n+1 \\ Charles R Greathouse IV, Sep 24 2015
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Mohammad K. Azarian, Jan 30 2009
STATUS
approved