Maths Olympiad Prep

Library / /90 of 520

Combinatorics Difficulty 6.5 National olympiad Find the answer

Define K(n,0)=K(n,0)=\varnothing and, for all nonnegative integers m and n, K(n,m+1)={k 1kn and K(k,m)K(nk,m)=}K(n,m+1)=\left\{ \left. k \right|\text{ }1\le k\le n\text{ and }K(k,m)\cap K(n-k,m)=\varnothing \right\}. Find the number of elements of K(2004,2004)K(2004,2004).

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

Solution

1. Define the sets and the problem:
- We start with K(n,0)= K(n,0) = \varnothing .
- For all nonnegative integers m m and n n , we define K(n,m+1)={k1kn and K(k,m)K(nk,m)=} K(n, m+1) = \left\{ k \mid 1 \le k \le n \text{ and } K(k, m) \cap K(n-k, m) = \varnothing \right\} .

2. **Lemma: For mn m \ge n , we have K(n,m)=K(n,m+1) K(n, m) = K(n, m+1) .
-
Proof by strong induction on n n :**
- Base case: If n=1 n = 1 , then K(1,m)={1} K(1, m) = \{1\} for all m1 m \ge 1 , which is trivially true.
- Inductive step: Assume the lemma holds for all nk n \le k . We need to show it holds for n=k+1 n = k+1 .
- Fix mk+1 m \ge k+1 . For 1ik 1 \le i \le k , by the induction hypothesis, K(i,m1)=K(i,m) K(i, m-1) = K(i, m) .
- Therefore, K(k+1,m)=K(k+1,m+1) K(k+1, m) = K(k+1, m+1) because K(i,m1)K(k+1i,m1)= K(i, m-1) \cap K(k+1-i, m-1) = \varnothing implies K(i,m)K(k+1i,m)= K(i, m) \cap K(k+1-i, m) = \varnothing .
- This completes the induction. \blacksquare

3. **Define Sn=K(n,n) S_n = K(n, n) for each nN n \in \mathbb{N} :**
- From the lemma, Sn={k1kn and SkSnk=} S_n = \left\{ k \mid 1 \le k \le n \text{ and } S_k \cap S_{n-k} = \varnothing \right\} .

4. **Conjecture: For positive integers n n , the set Sn S_n is the set of all integers m m such that the unique set of powers of two with sum m m is a subset of the unique set of powers of two with sum n n .
-
Proof by strong induction on n n :**
- Base cases: For n=1 n = 1 or n=2 n = 2 , this is easily checked.
- Inductive step: Assume the conjecture holds for all n<k n < k . We need to show it holds for n=k n = k .
- We need to show that for 1k 1 \le \ell \le k , SSk= S_{\ell} \cap S_{k - \ell} = \varnothing if and only if the tasty set of \ell is a subset of the tasty set of k k .
- If direction: If the tasty set of \ell is a subset of the tasty set of k k , then SSk= S_{\ell} \cap S_{k - \ell} = \varnothing .
- Only if direction: We check the contrapositive. If the tasty set of \ell is not a subset of the tasty set of k k , then the tasty set of k k - \ell must not be disjoint with the tasty set of \ell . This implies there is a common 1 1 in the binary representations of \ell and k k - \ell , meaning Sk \ell \in S_k and the contrapositive is proven. \blacksquare

5. Enumerate the number of positive integers with tasty sets contained in the tasty set of 2004:
- The binary representation of 2004 is 111110101002 11111010100_2 , which has 7 ones.
- The number of subsets of a set with 7 elements is 27=128 2^7 = 128 , but we exclude the empty set.
- Therefore, the number of elements in S2004 S_{2004} is 271=127 2^7 - 1 = 127 .

The final answer is 127 \boxed{127}

Want a route through all this instead of an archive? The track puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.

Source: NuminaMath-1.5, licensed Apache-2.0. Statement and solution reproduced as published; topic and difficulty added by this site.