OFFSET
1,2
COMMENTS
Extended to a(1)-a(2) using the formula.
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..1000
Eric Weisstein's World of Mathematics, Matching
Eric Weisstein's World of Mathematics, Maximal Independent Edge Set
Eric Weisstein's World of Mathematics, Web Graph
Index entries for linear recurrences with constant coefficients, signature (1,4,3,-2,0,1).
FORMULA
a(n) = a(n-1)+4*a(n-2)+3*a(n-3)-2*a(n-4)+a(n-6).
G.f.: (x*(-1-8*x-9*x^2+8*x^3-6*x^5))/(-1+x+4*x^2+3*x^3-2*x^4+x^6).
MATHEMATICA
LinearRecurrence[{1, 4, 3, -2, 0, 1}, {1, 9, 22, 53, 166, 432}, 20]
Rest @ CoefficientList[Series[(x (-1 - 8 x - 9 x^2 + 8 x^3 - 6 x^5))/(-1 + x + 4 x^2 + 3 x^3 - 2 x^4 + x^6), {x, 0, 20}], x]
Table[RootSum[-1 + 2 #^2 - 3 #^3 - 4 #^4 - #^5 + #^6 &, #^n &], {n, 20}]
RootSum[-1 + 2 #^2 - 3 #^3 - 4 #^4 - #^5 + #^6 &, #^Range[20] &] (* Eric W. Weisstein, Dec 30 2017 *)
PROG
(Magma) I:=[1, 9, 22, 53, 166, 432]; [n le 6 select I[n] else Self(n-1)+4*Self(n-2)+3*Self(n-3)-2*Self(n-4)+Self(n-6): n in [1..30]]; // Vincenzo Librandi, Sep 03 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
Eric W. Weisstein, May 25 2017
STATUS
approved