OFFSET
0,1
COMMENTS
Row sums of number triangle A105810.
LINKS
FORMULA
a(n) = -(-1)^n-binomial(1, n)+3*binomial(0, n).
a(n) = A033999(n-1), n>1. - R. J. Mathar, Aug 28 2008
E.g.f.: 2 - x - exp(-x). - Alejandro J. Becerra Jr., Feb 17 2021
MATHEMATICA
LinearRecurrence[{-1}, {1, 0, -1}, 78] (* Ray Chandler, Jul 30 2015 *)
PROG
(PARI) a(n)=if(n<2, 1-n, -(-1)^n) \\ Charles R Greathouse IV, Jun 06 2013
CROSSREFS
KEYWORD
easy,sign
AUTHOR
Paul Barry, May 04 2005
STATUS
approved