OFFSET
0,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (6,-5).
FORMULA
a(n) = 5*a(n-1) + 7 with a(0) = 1.
G.f.: (1+6*x)/((1-x)*(1-5*x)). - Philippe Deléham, Feb 22 2014
a(n) = 6*a(n-1) - 5*a(n-2), a(0) = 1, a(1) = 12. - Philippe Deléham, Feb 22 2014
a(n) = (11*5^n - 7) / 4. - Ralf Stephan, Feb 23 2014
EXAMPLE
If n=1 then 5*(n-1) + 7 = 5*1 + 7 = 12, which is the second term.
MAPLE
MATHEMATICA
NestList[5# + 7 &, 1, 50] (* Stefan Steinerberger, Apr 21 2006 *)
PROG
(Magma) [(11*5^n-7)/4 : n in [0..25]]; // Wesley Ivan Hurt, Nov 12 2014
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Parthasarathy Nambi, Apr 17 2006
EXTENSIONS
Definition corrected and better name by Ralf Stephan, Feb 23 2014
STATUS
approved