
A collection of m subsets of X = {1, 2, ... , n} has the property that given any two elements of X we can find a subset in the collection which contains just one of the two. Prove that n ≤ 2m.
Solution
Let the subsets be Y1, ... , Ym. Define f: X → {0, 1, 2, ... , 2m-1} by f(x) = the binary number a1a2 ... am where the binary digit ai is 1 iff x belongs to Yi. Then we claim that if x ≠ y we must have f(x) ≠ f(y). For if f(x) = f(y) then we could not find Ai such that just one of x, y was in Ai (since their binary expansions would agree in the ith digit). So f is injective. But its range has 2m elements, so its domain cannot have more than 2m elements. In other words n ≤ 2m.
Comment. This is almost trivial.
![]()
© John Scholes
jscholes@kalva.demon.co.uk
11 Apr 2002