OFFSET
0,3
LINKS
FORMULA
a(n) = Product_{k=1..2*n+1} ceiling(k/4). - Andrew Howroyd, Oct 02 2019
EXAMPLE
The graph with edge-set {{1,2},{1,3},{1,4},{2,3}}, which looks like a triangle with a tail, has edges {1,4} and {2,3} with equal sum, so is not counted under a(4).
MAPLE
a:= proc(n) option remember; `if`(n=0, 1,
a(n-1)*ceil(n/2)*ceil(n/2+1/4))
end:
seq(a(n), n=0..20); # Alois P. Heinz, Oct 03 2019
MATHEMATICA
stableSets[u_, Q_]:=If[Length[u]==0, {{}}, With[{w=First[u]}, Join[stableSets[DeleteCases[u, w], Q], Prepend[#, w]&/@stableSets[DeleteCases[u, r_/; r==w||Q[r, w]||Q[w, r]], Q]]]];
qes[n_]:=stableSets[Subsets[Range[n], {2}], Total[#1]==Total[#2]&];
Table[Length[qes[n]], {n, 0, 5}]
PROG
(PARI) a(n) = {prod(k=1, 2*n+1, ceil(k/4))} \\ Andrew Howroyd, Oct 02 2019
CROSSREFS
KEYWORD
nonn
AUTHOR
Gus Wiseman, Sep 30 2019
EXTENSIONS
Terms a(8) and beyond from Andrew Howroyd, Oct 02 2019
STATUS
approved