Define and, for all nonnegative integers m and n, . Find the number of elements of .
Solution
1. Define the sets and the problem:
- We start with .
- For all nonnegative integers and , we define .
2. **Lemma: For , we have .
- Proof by strong induction on :**
- Base case: If , then for all , which is trivially true.
- Inductive step: Assume the lemma holds for all . We need to show it holds for .
- Fix . For , by the induction hypothesis, .
- Therefore, because implies .
- This completes the induction.
3. **Define for each :**
- From the lemma, .
4. **Conjecture: For positive integers , the set is the set of all integers such that the unique set of powers of two with sum is a subset of the unique set of powers of two with sum .
- Proof by strong induction on :**
- Base cases: For or , this is easily checked.
- Inductive step: Assume the conjecture holds for all . We need to show it holds for .
- We need to show that for , if and only if the tasty set of is a subset of the tasty set of .
- If direction: If the tasty set of is a subset of the tasty set of , then .
- Only if direction: We check the contrapositive. If the tasty set of is not a subset of the tasty set of , then the tasty set of must not be disjoint with the tasty set of . This implies there is a common in the binary representations of and , meaning and the contrapositive is proven.
5. Enumerate the number of positive integers with tasty sets contained in the tasty set of 2004:
- The binary representation of 2004 is , which has 7 ones.
- The number of subsets of a set with 7 elements is , but we exclude the empty set.
- Therefore, the number of elements in is .
The final answer is