OFFSET
0,3
LINKS
FORMULA
a(n) >= A272363(n).
EXAMPLE
For n = 2, a(2) = 2 since {(1,3), (2,4)} and {(1,2), (3,4)} are corresponding sets. {(2,4), (1,3)} and {(3,1), (4,2)} are considered to be the same grouping with {(1,3), (2,4)}.
PROG
(PARI)
okperm(vp, n) = {for (k=1, n-1, if (vp[k] > vp[k+1], return (0)); ); for (k=1, n, if (vp[k+n] <= vp[k], return (0)); ); 1; }
a(n) = if(n==0, 1, {nb = 0; nn = 2*n; for (j=0, nn!-1, vp = numtoperm(nn, j); if (okperm(vp, n), vs = vector(n, k, vp[k]+vp[k+n]); if (#vs == #Set(concat(vs)), nb++); ); ); nb; } ) \\ after Michel Marcus at A272363
(Python)
from sympy.utilities.iterables import multiset_partitions
def A320129(n):
return 1 if n == 0 else sum(1 for p in multiset_partitions(list(range(1, 2*n+1)), n) if max(len(d) for d in p) == 2 and len(set(sum(d) for d in p)) == n) # Chai Wah Wu, Oct 08 2018
CROSSREFS
KEYWORD
nonn,more
AUTHOR
Altug Alkan, Oct 06 2018
EXTENSIONS
a(11)-a(12) from Giovanni Resta, Oct 09 2018
STATUS
approved