OFFSET
1,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..2000
Index entries for linear recurrences with constant coefficients, signature (3,-2).
FORMULA
Binomial transform of 0, 1, 2, -4, 9, -13, 20, -26, 35, ... (offset 0).
O.g.f.: x*(1+x-5*x^2+2*x^3)/((1-x)*(1-2*x)). a(n) = 1+2^(n-1), n>2. - R. J. Mathar, Jul 31 2008
a(n) = A048578(n-2), n>=3. - R. J. Mathar, Aug 10 2008
EXAMPLE
a(4) = 9 = 2*a(3) - 1 = 2*5 - 1.
a(4) = 9 = (1, 3, 3, 1) dot (1, 3, -2, 5) = (1 + 9 - 6 + 5).
MATHEMATICA
Join[{1, 4}, NestList[2#-1&, 5, 40]] (* or *) Join[{1, 4}, LinearRecurrence[ {3, -2}, {5, 9}, 40]] (* Harvey P. Dale, Feb 18 2014 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Gary W. Adamson & Roger L. Bagula, Jul 23 2008
STATUS
approved