OFFSET
0,5
LINKS
FORMULA
a(n)=1-2^n/3-2(-1)^n/3; a(n)=a(n-1)+2a(n-2)-2, a(0)=0, a(1)=1; G.f.: x(1-3x)/((1+x)(1-x)(1-2x)); E.g.f.: exp(x)-(exp(2x)+2exp(-x))/3.
MATHEMATICA
LinearRecurrence[{2, 1, -2}, {0, 1, -1}, 50] (* Harvey P. Dale, Jul 28 2020 *)
CROSSREFS
KEYWORD
easy,sign
AUTHOR
Paul Barry, May 09 2003
STATUS
approved