OFFSET
0,1
COMMENTS
Inverse binomial transform is 2,4,4,0,-8,-16,-16,.. essentially -A146559(n+3). - R. J. Mathar, Apr 07 2022
REFERENCES
B. M. E. Moret and H. D. Shapiro, Algorithms from P to NP, Benjamin/Cummings, Vol. 1, 1991; p. 65.
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (4,-5).
FORMULA
G.f.: 2*(1-x)/(1-4*x+5*x^2). [Colin Barker, Jan 14 2012]
MAPLE
a := proc(n) option remember; if n = 0 then RETURN(2) end if; if n = 1 then RETURN(6) end if; 4*a(n - 1) - 5*a(n - 2); end proc;
MATHEMATICA
Column[LinearRecurrence[{4, -5}, {2, 6}, 40]] (* Vincenzo Librandi, Jan 15 2012 *)
PROG
(Magma) I:=[2, 6]; [n le 2 select I[n] else 4*Self(n-1)-5*Self(n-2): n in [1..40]]; // Vincenzo Librandi, Jan 15 2012
(PARI) Vec(2*(1-x)/(1-4*x+5*x^2)+O(x^99)) \\ Charles R Greathouse IV, Jan 15 2012
CROSSREFS
KEYWORD
sign,easy
AUTHOR
N. J. A. Sloane, Feb 25 2005
STATUS
approved