OFFSET
1,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..1000
Index entries for linear recurrences with constant coefficients, signature (7,-6).
FORMULA
a(n) = 6*a(n-1) + 30, n>1.
From R. J. Mathar, Jan 05 2011: (Start)
a(n) = 30*A003464(n-1).
G.f.: 30*x^2 / ( (1-6*x)*(1-x) ). (End)
a(n) = 7*a(n-1) - 6*a(n-2). - Vincenzo Librandi, Jan 25 2013
E.g.f.: exp(6*x) - 6*exp(x) + 5. - G. C. Greubel, Jan 27 2019
MATHEMATICA
6^Range[30]- 6 (* Vincenzo Librandi, Jan 25 2013 *)
LinearRecurrence[{7, -6}, {0, 30}, 30] (* Harvey P. Dale, Jul 25 2020 *)
PROG
(Magma) [6^n-6: n in [1..30]]
(PARI) vector(30, n, 6^n-6) \\ G. C. Greubel, Jan 27 2019
(Sage) [6^n-6 for n in (1..30)] # G. C. Greubel, Jan 27 2019
(GAP) List([1..30], n -> 6^n-6); # G. C. Greubel, Jan 27 2019
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Vincenzo Librandi, Dec 25 2010
STATUS
approved