OFFSET
1,2
COMMENTS
Non-dominating sets are just those that are contained in the union of a single row and column minus the intersecting vertex. - Andrew Howroyd, Sep 13 2017
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..50
Eric Weisstein's World of Mathematics, Dominating Set
Eric Weisstein's World of Mathematics, Rook Complement Graph
FORMULA
a(n) = 2^(n^2) - 2*n*(2^n - 2) + n^2 - n^2*(2^(n-1)-1)^2 + n^2*(n-1)^2 - 2*binomial(n,2)^2 - 1 for n > 1. - Andrew Howroyd, Sep 13 2017
MATHEMATICA
Table[If[n == 1, 1, 2^n^2 + (2^n (n - 2) - 4^(n - 1) n + (n - 1)^2 n/2 + 4) n - 1], {n, 20}]
PROG
(PARI) a(n) = if(n == 1, 1, 2^(n^2) - 2*n*(2^n - 2) + n^2 - n^2*(2^(n-1)-1)^2 + n^2*(n-1)^2 - 2*binomial(n, 2)^2 - 1); \\ Andrew Howroyd, Sep 13 2017
(Magma) [1] cat [2^(n^2)-2*n*(2^n-2)+n^2-n^2*(2^(n-1)-1)^2+ n^2*(n-1)^2-2*Binomial(n, 2)^2-1: n in [2..15]]; // Vincenzo Librandi, Mar 17 2018
CROSSREFS
KEYWORD
nonn
AUTHOR
Eric W. Weisstein, Sep 12 2017
EXTENSIONS
a(6)-a(12) from Andrew Howroyd, Sep 13 2017
STATUS
approved