OFFSET
0,1
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..1000
Z. Skupien, Sparse Hamiltonian 2-decompositions together with exact count of numerous Hamiltonian cycles, Discr. Math., 309 (2009), 6382-6390.
Index entries for linear recurrences with constant coefficients, signature (2,-1,1,-1).
FORMULA
From Colin Barker, Jul 25 2013: (Start)
a(n) = 2*a(n-1)-a(n-2)+a(n-3)-a(n-4).
G.f.: -(3*x^3-x^2+4*x-4) / ((x-1)*(x^3+x-1)). (End)
a(n) = a(n-1) + a(n-3) - 2, for n > 2. - Greg Dresden, Feb 09 2020
MATHEMATICA
CoefficientList[Series[-(3*x^3 - x^2 + 4*x - 4)/((x - 1)*(x^3 + x - 1)), {x, 0, 50}], x] (* G. C. Greubel, Apr 26 2017 *)
LinearRecurrence[{2, -1, 1, -1}, {4, 4, 5, 7}, 50] (* Harvey P. Dale, Jul 10 2020 *)
PROG
(PARI) x='x+O('x^50); Vec(-(3*x^3 - x^2 + 4*x - 4)/((x - 1)*(x^3 + x - 1))) \\ G. C. Greubel, Apr 26 2017
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, Feb 10 2010
EXTENSIONS
More terms from Colin Barker, Jul 25 2013
STATUS
approved