OFFSET
1,1
COMMENTS
For n >= 3, also the number of mutual-visibility sets in the n-barbell graph.
LINKS
Matthew L. LaSelle, Table of n, a(n) for n = 1..500
Eric Weisstein's World of Mathematics, Barbell Graph.
Eric Weisstein's World of Mathematics, Visibility Polynomial.
Index entries for linear recurrences with constant coefficients, signature (7,-14,8).
FORMULA
G.f.: -x*(4-17*x+10*x^2)/((-1+x)*(-1+2*x)*(-1+4*x)).
a(n) = 7*a(n-1)-14*a(n-2)+8*a(n-3).
From Hugo Pfoertner, Sep 26 2025: (Start)
a(n) = A290718(n) + 1.
a(n) = 64*A164051(n-4) - 1 for n>=5. (End)
MATHEMATICA
Table[4^(n - 1) + 2^(n + 1) - 1, {n, 20}]
LinearRecurrence[{7, -14, 8}, {4, 11, 31}, 20]
CoefficientList[Series[-(4 - 17 x + 10 x^2)/((-1 + x) (-1 + 2 x) (-1 + 4 x)), {x, 0, 20}], x]
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Eric W. Weisstein, Sep 25 2025
STATUS
approved
