OFFSET
0,3
COMMENTS
See A000931 (Padovan), and the W. Lang link given there.
LINKS
Colin Barker, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (0,4,3).
FORMULA
O.g.f.: 1/((1-x-3*x^2)*(1+x)) = (2-3*x)/(1-x-3*x^2) -1/(1+x).
a(n) = 2*b(n) - 3*b(n-1) - (-1)^n, n>=0, with b(n):=A006130(n) ((1,3)-Fibonacci), b(-1):=0.
From Wolfdieter Lang, Aug 26 2010: (Start)
a(n) = a(n-1) + 3*a(n-2) + (-1)^n, n>=2, a(0)=1, a(1)=0.
Due to the identity for the o.g.f. A(x): A(x)= x*(1 + 3*x)*A(x) + 1/(1+x).
(This recurrence was observed by Gary Detlefs in an Aug 24 2010 email to the author.)
(End)
a(n) = 4*a(n-2) + 3*a(n-3) for n>2. - Harvey P. Dale, Jan 21 2013
a(n) = (-1)^(n+1)*A140165(n+2)-(-1)^n. - R. J. Mathar, Apr 22 2013
a(n) = ((-1)^(1+n) + (2^(-n)*((-2+sqrt(13))*(1+sqrt(13))^n + (1-sqrt(13))^n*(2+sqrt(13)))) / sqrt(13)). - Colin Barker, Dec 25 2017
MATHEMATICA
CoefficientList[Series[1/(1-4*x^2-3*x^3), {x, 0, 40}], x] (* or *) LinearRecurrence[ {0, 4, 3}, {1, 0, 4}, 40] (* Harvey P. Dale, Jan 21 2013 *)
PROG
(PARI) Vec(1 / ((1 + x)*(1 - x - 3*x^2)) + O(x^40)) \\ Colin Barker, Dec 25 2017
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Wolfdieter Lang, Jun 26 2010
STATUS
approved