OFFSET
1,2
COMMENTS
The sequence has been extended to n=1 using the formula. - Andrew Howroyd, Dec 12 2024
LINKS
Andrew Howroyd, Table of n, a(n) for n = 1..1000
Eric Weisstein's World of Mathematics, Minimal Edge Cut.
Eric Weisstein's World of Mathematics, Sun Graph.
Index entries for linear recurrences with constant coefficients, signature (4,-2,-4,3).
FORMULA
a(n) = (3^n + (-1)^n)/2 + n - 1 = A046717(n) + n - 1. - Andrew Howroyd, Dec 12 2024
G.f.: x*(-1-2*x+7*x^2)/((-1+x)^2*(-1+2*x+3*x^2)). - Eric W. Weisstein, Dec 18 2024
E.g.f.: exp(x)*(cosh(2*x) - 1 + x). - Stefano Spezia, Dec 19 2024
MATHEMATICA
Table[((-1)^n + 3^n + 2 n - 2)/2, {n, 20}]
LinearRecurrence[{4, -2, -4, 3}, {1, 6, 15, 44}, 20]
CoefficientList[Series[(-1 - 2 x + 7 x^2)/((-1 + x)^2 (-1 + 2 x + 3 x^2)), {x, 0, 20}], x]
PROG
(PARI) a(n) = (3^n + (-1)^n)/2 + n - 1 \\ Andrew Howroyd, Dec 12 2024
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Eric W. Weisstein, Dec 07 2024
EXTENSIONS
a(1)-a(2) prepended and a(7) onwards from Andrew Howroyd, Dec 12 2024
STATUS
approved