Maths Olympiad Prep

Track / Stage 6 / 49 of 400 #1529 of 2444

Problem 1529

National Olympiad, first round
Algebra Difficulty 6.0 Find the answer HMMT February · United States

Let PP denote the set of all subsets of {1,,23}\{1, \ldots, 23\}. A subset SPS \subseteq P is called good if whenever A,BA, B are sets in SS, the set (A\B)(B\A)(A \backslash B) \cup (B \backslash A) is also in SS. (Here, A\BA \backslash B denotes the set of all elements in AA that are not in BB, and B\AB \backslash A denotes the set of all elements in BB that are not in AA.) What fraction of the good subsets of PP have between 2015 and 3015 elements, inclusive?
If your answer is a decimal number or a fraction (of the form m/nm / n, where mm and nn are positive integers), then your score on this problem will be equal to max{0,251000AN}\max \{0,25-\lfloor 1000|A-N|\rfloor\}, where NN is your answer and AA is the actual answer. Otherwise, your score will be zero.

A number or a short expression. Fractions can be typed as 3/2, and spacing doesn't matter.

Next problem →

Official solution

Solution:
Answer: 18839183877670041942218307147122500601235476916848404861924220957017845124927312120.3950203047068107\quad \frac{18839183877670041942218307147122500601235}{47691684840486192422095701784512492731212} \approx 0.3950203047068107
Let n=23n=23, and =n/2=11\ell=\lfloor n / 2\rfloor=11.

We use the well-known rephrasing of the symmetric difference ((A\B)(B\A))((A \backslash B) \cup (B \backslash A)) in terms of addition modulo 2 of "indicators/characteristic vectors". So we simply want the number (n)2\binom{n}{\ell}_{2} of dimension \ell subspaces of the F:=F2F:=\mathbb{F}_{2}-vector space V:=F2nV:=\mathbb{F}_{2}^{n}. Indeed, good subsets of 2d2^{d} elements simply correspond to dimension dd subspaces (in particular, good subsets can only have sizes equal to powers of F=2|F|=2, and 22^{\ell} is the only power between 2015 and 3015, inclusive).

To do this, it's easier to first count the number of (ordered) tuples of \ell linearly independent elements of VV, and divide (to get the subspace count) by the number of (ordered) tuples of \ell linearly independent elements of any \ell-dimensional subspace of VV (a well-defined number independent of the choice of subspace).

In general, if we want to count tuples of mm linearly independent elements in an nn-dimensional space (with nmn \geq m), just note that we are building on top of (0) (the zero-dimensional subspace), and once we've chosen rmr \leq m elements (with 0rm10 \leq r \leq m-1), there are 2n2r2^{n}-2^{r} elements linearly independent to the previous rr elements (which span a subspace of dimension rr, hence of 2r2^{r} "bad" elements). Thus the number of mm-dimensional subspaces of an nn-dimensional space is
(nm)2:=(2n20)(2n21)(2n2m1)(2m20)(2m21)(2m2m1) \binom{n}{m}_{2}:=\frac{\left(2^{n}-2^{0}\right)\left(2^{n}-2^{1}\right) \cdots\left(2^{n}-2^{m-1}\right)}{\left(2^{m}-2^{0}\right)\left(2^{m}-2^{1}\right) \cdots\left(2^{m}-2^{m-1}\right)}
a "Gaussian binomial coefficient."

We want to estimate
(n)2m=0n(nm)2=12(2311)2m=011(23m)2 \frac{\binom{n}{\ell}_{2}}{\sum_{m=0}^{n}\binom{n}{m}_{2}}=\frac{1}{2} \frac{\binom{23}{11}_{2}}{\sum_{m=0}^{11}\binom{23}{m}_{2}}
To do this, note that (nm)2=(nnm)2\binom{n}{m}_{2}=\binom{n}{n-m}_{2}, so we may restrict our attention to the lower half. Intuitively, the Gaussian binomial coefficients should decay exponentially (or similarly quickly) away from the center; indeed, if mn/2m \leq n / 2, then
(nm1)2/(nm)2=(2m20)2m1(2n2m1)22m1n \binom{n}{m-1}_{2} /\binom{n}{m}_{2}=\frac{\left(2^{m}-2^{0}\right) \cdot 2^{m-1}}{\left(2^{n}-2^{m-1}\right)} \approx 2^{2 m-1-n}
So in fact, the decay is super-exponential, starting (for n=23n=23 odd and m=11m \leq \ell=11) at an 14\approx \frac{1}{4} rate. So most of the terms (past the first 2 to 4, say) are negligible in our estimation. If we use the first two terms, we get an approximation of 1211+14=25=0.4\frac{1}{2} \cdot \frac{1}{1+\frac{1}{4}}=\frac{2}{5}=0.4, which is enough for 20 points. (Including the next term gives an approximation of 32810.3950617\frac{32}{81} \approx 0.3950617, which is good enough to get full credit.)

To compute the exact answer, we used the following python3 code:
```
from functools import lru_cache
from fractions import Fraction
@lru_cache(maxsize=None)
def gauss_binom(n, k, e):
if k < 0 or k > n:
return 0
if k == 0 or k == n:
return 1
return e ** k * gauss_binom(n - 1, k, e) + \
gauss_binom(n - 1, k - 1, e)
N = 23
K = 11
good = gauss_binom(N, K, 2)
total = sum(gauss_binom(N, i, 2) for i in range(N + 1))
print(Fraction(good, total))
print(float(good/total))
```

Source: MathNet, licensed CC-BY-4.0. Statement reproduced verbatim; metadata (topic, difficulty, ordering) added by this project.