We are given a set $A = \{1,2,3 \:...\:256 \}$. I'm obliged to find such A', so:
- $A' \subset A$
- A' has the maximal possible cardinality
- A' contains no elements x,y which satisfy the following equality: $x = 2y$
I came up with some thoughts, but I'm not sure that my answer is correct, and I'm sure that the task could be solved in a more mathematically beautiful style.
My reasoning was the following:
1. First, pick up all odd numbers from set A. It makes 128 elements. 2. Then, pick all even numbers, which are large enough to not comply with the equation $x = 2y$. They are $\{130, 132\:...\: 256\}$. It adds 64 elements.
3. Then we note, that half of those 64 elements could be divided by 2 and some odd number from set A'. So we should only use those elements from previous step, which comply x div 4 = 0.
4. Also, we can include some even numbers, which are small enough to not have and greater match. They are $\{2, 4\:...\: 64\}$. We have to skip every second of them, to not create new matches. It gives us another 16: $\{4,8,12\:...\: 64\}$. Though, we have skip every second of them again, since they build pairs with themselves. It's 8 now: $\{4,12\:...\: 32\}$
5. Thus, we have 128 + 32 + 8 = 168, which is the maximal cardinality of A'.
I believe this solution lacks proof of maximality. So I would appreciate if you guys could prove my solution correct or erroneous or suggest more mathematically advanced way of approaching this problem (for example, I tried to look at elements of A as sequences of 8 bits, but it didn't help me much).