OFFSET
0,2
LINKS
FORMULA
a(0)=1, a(n)=(2-0^((n-1)/2))(1-(-1)^n)+(2-0^(n/2))(1+(-1)^n)/2, n>1.
MATHEMATICA
CoefficientList[Series[(1+x^2)(1+2x)/(1-x^2), {x, 0, 95}], x] (* James C. McMahon, Feb 02 2024 *)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Paul Barry, May 03 2005
STATUS
approved