A368600 Number of ways to choose a set of n nonempty subsets of {1..n} such that it is not possible to choose a different element from each.
0, 0, 0, 3, 164, 18625, 5491851, 4649088885, 12219849683346
Offset: 0
Examples
The a(3) = 3 set-systems: {{1},{2},{1,2}} {{1},{3},{1,3}} {{2},{3},{2,3}}
Links
- Wikipedia, Axiom of choice.
Crossrefs
Programs
-
Mathematica
Table[Length[Select[Subsets[Rest[Subsets[Range[n]]], {n}],Length[Select[Tuples[#], UnsameQ@@#&]]==0&]],{n,0,3}]
-
Python
from itertools import combinations, product, chain from scipy.special import comb def v(c): for elements in product(*c): if len(set(elements)) == len(elements): return True return False def a(n): if n == 0: return 1 subsets = list(chain.from_iterable(combinations(range(1, n + 1), r) for r in range(1, n + 1))) cs = combinations(subsets, n) c = sum(1 for c in cs if v(c)) return c [print(int(comb(2**n-1,n) - a(n))) for n in range(7)] # Robert P. P. McKone, Jan 02 2024
Extensions
a(6) from Robert P. P. McKone, Jan 02 2024
a(7)-a(8) from Christian Sievers, Jul 25 2024
Comments