OFFSET
1,2
LINKS
Paolo Xausa, Table of n, a(n) for n = 1..1000
Index entries for linear recurrences with constant coefficients, signature (6,-11,6).
FORMULA
a(n) = 2*(4*3^n - 9*2^n + 7) - [n = 1]. - Hugo Pfoertner, Apr 20 2024
G.f.: x*(1 + 8*x + 13*x^2 + 6*x^3)/((1 - x)*(1 - 2*x)*(1 - 3*x)). - Stefano Spezia, Apr 21 2024
MAPLE
a := n -> 2*(4*3^n - 9*2^n + 7) - `if`(n=1, 1, 0);
seq(a(n), n = 1..24); # Peter Luschny, Apr 20 2024
MATHEMATICA
LinearRecurrence[{6, -11, 6}, {1, 14, 86, 374}, 50] (* Paolo Xausa, May 25 2024 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Detlef Meya, Apr 20 2024
STATUS
approved