OFFSET
0,1
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (7,-6).
FORMULA
a(n) = 6*(a(n-1)-5), n > 0.
a(n) = 7*a(n-1) - 6*a(n-2).
a(n) = 6*A062394(n-1), n > 0.
G.f.: (7-37*x)/((1-x)*(1-6*x)). - Klaus Brockhaus, Dec 27 2010
a(n) = A000400(n) + 6. - Michel Marcus, Nov 23 2013
E.g.f.: exp(6*x) + 6*exp(x). - G. C. Greubel, Jan 26 2019
MATHEMATICA
LinearRecurrence[{7, -6}, {7, 12}, 41] (* or *) 6^Range[0, 40]+6 (* Harvey P. Dale, Aug 11 2011 *)
PROG
(Magma) [ 6^n+6: n in [0..25] ];
(PARI) for(n=0, 25, print1(6^n+6, ", ")) \\ Edward Jiang, Nov 22 2013
(Sage) [6^n +6 for n in range(25)] # G. C. Greubel, Jan 26 2019
(GAP) List([0..25], n -> 6^n + 6); # G. C. Greubel, Jan 26 2019
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Vincenzo Librandi, Dec 25 2010
STATUS
approved