OFFSET
0,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (4,-3).
FORMULA
G.f.: (1-7*x)/(1 - 4*x + 3*x^2).
a(n) = 3 - A008776(n).
a(n) = 4*a(n-1) - 3*a(n-2) for n > 1; a(0)=1, a(1)=-3.
a(n) = Sum_{k=0..n} A112555(n,k)*(-4)^(n-k).
a(n) = 3*a(n-1) - 6. - Vincenzo Librandi, Nov 03 2011
MATHEMATICA
Table[3-2*3^n, {n, 0, 30}] (* or *) LinearRecurrence[{4, -3}, {1, -3}, 30] (* Harvey P. Dale, Aug 29 2024 *)
PROG
(Magma) [3-2*3^n : n in [0..30]]; // Vincenzo Librandi, Nov 03 2011
CROSSREFS
KEYWORD
sign,easy
AUTHOR
Philippe Deléham, Sep 26 2009
STATUS
approved