OFFSET
0,2
LINKS
FORMULA
a(0)=1, a(2)=4, a(2)=14, a(n)=6a(n-1)-9a(n-2)+2a(n-3), n>2; a(n)=(2^n+(1-sqrt(3))(2-sqrt(3))^n+(1+sqrt(3))(2+sqrt(3))^n)/3.
MATHEMATICA
CoefficientList[Series[(1-2x-x^2)/((1-2x)(1-4x+x^2)), {x, 0, 30}], x] (* or *) LinearRecurrence[{6, -9, 2}, {1, 4, 14}, 30] (* Harvey P. Dale, Aug 21 2021 *)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Paul Barry, Sep 16 2003
STATUS
approved