OFFSET
0,2
COMMENTS
For n >= 1, also the number of connected dominating sets in the n-necklace graph.
LINKS
Eric Weisstein's World of Mathematics, Connected Dominating Set.
Eric Weisstein's World of Mathematics, Necklace Graph.
Index entries for linear recurrences with constant coefficients, signature (6,-9).
FORMULA
G.f.: (1+9*x)/(-1+3*x)^2.
a(n) = 6*a(n-1) - 9*a(n-2).
E.g.f.: exp(3*x)*(1 + 12*x). - Stefano Spezia, Feb 12 2026
MATHEMATICA
Table[3^n (4 n + 1), {n, 0, 20}]
LinearRecurrence[{6, -9}, {15, 81}, {0, 20}]
CoefficientList[Series[(1 + 9 x)/(-1 + 3 x)^2, {x, 0, 20}], x]
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Eric W. Weisstein, Feb 12 2026
STATUS
approved
