OFFSET
2,7
LINKS
Ken-ichi Kawarabayashi et al., On separable self-complementary graphs, Discrete Math., 257 (2002), 165-168.
MATHEMATICA
permcount[v_] := Module[{m = 1, s = 0, k = 0, t}, For[i = 1, i <= Length[v], i++, t = v[[i]]; k = If[i > 1 && t == v[[i - 1]], k + 1, 1]; m *= t*k; s += t]; s!/m];
edges[v_] := 4 Sum[Sum[GCD[v[[i]], v[[j]]], {j, 1, i - 1}], {i, 2, Length[v]}] + 2 Total[v];
A000171[n_] := Module[{s = 0}, Switch[Mod[n, 4], 2 | 3, 0, _, Do[s += permcount[4 p]*2^edges[p]*If[OddQ[n], n*2^Length[p], 1], {p, IntegerPartitions[Quotient[n, 4]]}]; s/n!]];
Table[a[n], {n, 2, 33}] (* Jean-François Alcover, Aug 27 2019, after Andrew Howroyd *)
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Nov 04 2011
EXTENSIONS
Terms a(20) and beyond from Andrew Howroyd, Sep 17 2018
STATUS
approved