OFFSET
1,2
LINKS
Andrew Howroyd, Table of n, a(n) for n = 1..200
Eric Weisstein's World of Mathematics, Ladder Graph
Eric Weisstein's World of Mathematics, Minimal Edge Cover
Index entries for linear recurrences with constant coefficients, signature (2, 1, 2, 1, 0, -1).
FORMULA
a(n) = 2*a(n-1)+a(n-2)+2*a(n-3)+a(n-4)-a(n-6) for n>6.
G.f.: x*(1+x^2+x^3-x^5)/((1+x^2)*(1-2*x-2*x^2+x^4)).
MATHEMATICA
Table[(RootSum[1 - 2 #^2 - 2 #^3 + #^4 &, 94 #^n + 33 #^(n + 1) - 7 #^(n + 2) + 8 #^(n + 3) &] + 182 (2 Cos[n Pi/2] + Sin[n Pi/2]))/910, {n, 20}] (* Eric W. Weisstein, Aug 03 2017 *)
LinearRecurrence[{2, 1, 2, 1, 0, -1}, {1, 2, 6, 17, 45, 120}, 20] (* Eric W. Weisstein, Aug 03 2017 *)
CoefficientList[Series[(1 + x^2 + x^3 - x^5)/(1 - 2 x - x^2 - 2 x^3 - x^4 + x^6), {x, 0, 20}], x] (* Eric W. Weisstein, Aug 03 2017 *)
PROG
(PARI)
Vec((1+x^2+x^3-x^5)/((1+x^2)*(1-2*x-2*x^2+x^4))+O(x^20))
CROSSREFS
KEYWORD
nonn
AUTHOR
Andrew Howroyd, Jun 04 2017
STATUS
approved
