OFFSET
0,3
LINKS
Andrew Howroyd, Table of n, a(n) for n = 0..10000
Eric Weisstein's World of Mathematics, Path Graph.
Eric Weisstein's World of Mathematics, Independent Dominating Set.
Index entries for linear recurrences with constant coefficients, signature (0,0,3,0,0,-3,0,0,1).
FORMULA
a(3*n) = 1; a(3*n + 1) = binomial(n + 2, 2); a(3*n + 2) = n + 2.
a(n) = 3*a(n-3) - 3*a(n-6) + a(n-9).
G.f.: (1 + x + 2*x^2 - 2*x^3 - 3*x^5 + x^6 + x^8)/((1 - x)*(1 + x + x^2))^3.
EXAMPLE
a(4) = 3 corresponding to the following independent dominating sets:
x . . x x . x . . x . x
PROG
(PARI) Vec((1 + x + 2*x^2 - 2*x^3 - 3*x^5 + x^6 + x^8)/((1 - x)*(1 + x + x^2))^3 + O(x^80))
CROSSREFS
KEYWORD
nonn,easy,new
AUTHOR
Andrew Howroyd, Jul 13 2026
STATUS
approved
