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
Binomial transform of A084242. Second binomial transform of periodic sequence A010688. - Paul Barry, May 23 2003
From Paul Barry, May 23 2003: (Start)
a(n) = 4*3^n - 3;
G.f.: (1+5*x)/((1-x)*(1-3*x));
E.g.f.: 4*exp(3*x) - 3*exp(x). (End)
a(n) = 4*a(n-1) - 3*a(n-2); a(0)=1, a(1)=9. - Harvey P. Dale, Aug 16 2011
a(n) = 3*a(n-1) + 6. - Vincenzo Librandi, Nov 11 2011
a(n) = A171498(n) - 2. - Philippe Deléham, Apr 13 2013
MATHEMATICA
4*3^Range[0, 25]-3 (* or *) LinearRecurrence[{4, -3}, {1, 9}, 25] (* Harvey P. Dale, Aug 16 2011 *)
PROG
(Magma) [4*3^n-3: n in [0..30]]; // Vincenzo Librandi, Nov 11 2011
(PARI) vector(30, n, n--; 4*3^n-3) \\ G. C. Greubel, Nov 23 2018
(Sage) [4*3^n-3 for n in range(30)] # G. C. Greubel, Nov 23 2018
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved