OFFSET
0,2
LINKS
Colin Barker, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (3,0,-3,1).
FORMULA
a(0)=1, a(1)=2, a(2)=5, a(3)=14, a(n)=3*a(n-1)-3*a(n-3)+a(n-4). - Harvey P. Dale, Feb 17 2012
a(n) = (-1)*(2^(-1-n)*((-2)^n + 5*2^n - 8*(3-sqrt(5))^n - 8*(3+sqrt(5))^n)) / 5. - Colin Barker, Jul 16 2017
MAPLE
A001906 := proc(n) combinat[fibonacci](2*n) ; end proc:
A038990 := proc(n) -1/2-(-1)^n/10+4*(2*A001906(n+1)-3*A001906(n))/5 ; end proc: # R. J. Mathar, Mar 31 2011
MATHEMATICA
CoefficientList[Series[(1-x-x^2+2x^3)/((1-x)(1+x)(1-3x+x^2)), {x, 0, 30}], x] (* or *) LinearRecurrence[{3, 0, -3, 1}, {1, 2, 5, 14}, 30] (* Harvey P. Dale, Feb 17 2012 *)
PROG
(PARI) Vec((1-x-x^2+2*x^3)/((1-x)*(1+x)*(1-3*x+x^2))+O(x^99)) \\ Charles R Greathouse IV, Sep 27 2012
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved