OFFSET
1,2
LINKS
Andrew Howroyd, Table of n, a(n) for n = 1..1000
Eric Weisstein's World of Mathematics, Minimal Total Dominating Set.
Eric Weisstein's World of Mathematics, Triangular Snake Graph.
Index entries for linear recurrences with constant coefficients, signature (0,2,1,1,1).
FORMULA
From Andrew Howroyd, Sep 08 2019: (Start)
a(n) = 2*a(n-2) + a(n-3) + a(n-4) + a(n-5) for n > 7.
G.f.: x^2*(3 + 5*x + x^2 + x^3 - x^5)/((1 + x)^2*(1 - 2*x + x^2 - x^3)).
(End)
MATHEMATICA
Join[{0, 3}, Table[((3 - 5 n) (-1)^n + RootSum[-1 + # - 2 #^2 + #^3 &, -2 #^n + 249 #^(n + 1) + 7 #^(n + 2) &]/23)/25, {n, 3, 20}]] (* Eric W. Weisstein, Sep 19 2021 *)
Join[{0, 3}, LinearRecurrence[{0, 2, 1, 1, 1}, {5, 7, 14, 22, 42}, 20]] (* Eric W. Weisstein, Sep 19 2021 *)
CoefficientList[Series[x (-3 - 5 x - x^2 - x^3 + x^5)/((1 + x)^2 (-1 + 2 x - x^2 + x^3)), {x, 0, 20}], x] (* Eric W. Weisstein, Sep 19 2021 *)
PROG
(PARI) concat([0], Vec((3 + 5*x + x^2 + x^3 - x^5)/((1 + x)^2*(1 - 2*x + x^2 - x^3)) + O(x^40))) \\ Andrew Howroyd, Sep 08 2019
CROSSREFS
KEYWORD
nonn,easy,changed
AUTHOR
Eric W. Weisstein, Jun 09 2019
EXTENSIONS
Terms a(11) and beyond from Andrew Howroyd, Sep 08 2019
STATUS
approved
