OFFSET
0,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (7,8).
FORMULA
From Philippe Deléham, Nov 19 2007: (Start)
a(n) = A132804(n)/2.
G.f.: 3x/(1 - 7*x - 8*x^2).
a(n+1) = 7*a(n) + 8*a(n-1) for n >= 1, a(0)=0, a(1)=3. (End)
a(n) = 3*A015565(n). - R. J. Mathar, Aug 07 2017
MATHEMATICA
LinearRecurrence[{7, 8}, {0, 3}, 40] (* Harvey P. Dale, Feb 08 2015 *)
PROG
(Magma) [-(1/3)*(-1)^n+(1/3)*8^n: n in [0..25]]; // Vincenzo Librandi, Aug 10 2011
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Paul Curtz, Nov 18 2007
STATUS
approved