login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A347633 Number of minimum dominating sets in the path graph P_n. 5
1, 2, 1, 4, 3, 1, 8, 4, 1, 13, 5, 1, 19, 6, 1, 26, 7, 1, 34, 8, 1, 43, 9, 1, 53, 10, 1, 64, 11, 1, 76, 12, 1, 89, 13, 1, 103, 14, 1, 118, 15, 1, 134, 16, 1, 151, 17, 1, 169, 18, 1, 188, 19, 1, 208, 20, 1, 229, 21, 1, 251, 22, 1, 274, 23, 1, 298, 24, 1, 323 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
Eric Weisstein's World of Mathematics, Minimum Dominating Set
Eric Weisstein's World of Mathematics, Path Graph
FORMULA
a(n) = 1 for n = 0 (mod 3)
(n^2+13*n+4)/18 for n = 1 (mod 3)
(n+4)/3 for n = 2 (mod 3).
a(n) = 3*a(n-3)-3*a(n-6)+a(n-9) for n > 9.
G.f.: -(x*(1+2*x+x^2+x^3-3*x^4-2*x^5-x^6+x^7+x^8))/((-1+x)^3*(1+x+x^2)^3).
MATHEMATICA
Table[Piecewise[{{1, Mod[n, 3] == 0}, {(n^2 + 13 n + 4)/18, Mod[n, 3] == 1}, {(n + 4)/3, Mod[n, 3] == 2}}], {n, 20}]
LinearRecurrence[{0, 0, 3, 0, 0, -3, 0, 0, 1}, {1, 2, 1, 4, 3, 1, 8, 4, 1}, 20]
CoefficientList[Series[-(1 + 2 x + x^2 + x^3 - 3 x^4 - 2 x^5 - x^6 + x^7 + x^8)/((-1 + x)^3 (1 + x + x^2)^3), {x, 0, 20}], x]
PROG
(PARI) a(n)={if(n%3==0, 1, if(n%3==1, (n^2+13*n+4)/18, (n+4)/3))} \\ Andrew Howroyd, Jan 18 2022
CROSSREFS
Row 1 of A350815 and A350820.
Sequence in context: A305695 A211235 A134626 * A115450 A109435 A134392
KEYWORD
nonn
AUTHOR
Eric W. Weisstein, Sep 09 2021
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 24 18:17 EDT 2024. Contains 371962 sequences. (Running on oeis4.)