OFFSET
1,1
COMMENTS
For n > 2, also the number of connected (non-null) induced subgraphs in the n-barbell graph.
LINKS
Eric Weisstein's World of Mathematics, Barbell Graph
Eric Weisstein's World of Mathematics, Connected Graph
Eric Weisstein's World of Mathematics, Vertex-Induced Subgraph
Index entries for linear recurrences with constant coefficients, signature (7,-14,8).
FORMULA
a(n) = 2^(n + 1) + 4^(n - 1) - 2.
a(n) = 7*a(n-1) - 14*a(n-2) + 8*a(n-3).
G.f.: (x (-3 + 11 x - 2 x^2))/(-1 + 7 x - 14 x^2 + 8 x^3).
MATHEMATICA
Table[2^(n + 1) + 4^(n - 1) - 2, {n, 20}]
LinearRecurrence[{7, -14, 8}, {3, 10, 30}, 40]
CoefficientList[Series[(-3 + 11 x - 2 x^2)/(-1 + 7 x - 14 x^2 + 8 x^3), {x, 0, 20}], x]
PROG
(PARI) a(n)=2^(n+1)+4^(n-1)-2 \\ Charles R Greathouse IV, Aug 09 2017
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Eric W. Weisstein, Aug 09 2017
STATUS
approved