OFFSET
0,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (-2,3).
FORMULA
G.f.: (1+7*x)/((1-x)*(1+3*x)).
E.g.f. 2*exp(x)-exp(-3*x)
MATHEMATICA
LinearRecurrence[{-2, 3}, {1, 5}, 30] (* Harvey P. Dale, Mar 25 2013 *)
CoefficientList[Series[(1 + 7 x) / ((1 - x) (1 + 3 x)), {x, 0, 40}], x] (* Vincenzo Librandi, Aug 09 2013 *)
PROG
(Magma) [2-(-3)^n: n in [0..30]]; // Vincenzo Librandi Aug 09 2013
CROSSREFS
KEYWORD
easy,sign
AUTHOR
Paul Barry, Mar 26 2003
STATUS
approved