Problem 4
We call an even positive integer nice if the set can be partitioned into two-element subsets, such that the sum of the elements in each subset is a power of . For example, is nice, because the set can be partitioned into subsets , , . Find the number of nice positive integers which are smaller than .
Solution
Let be the number of nice smaller than and be the set including the nice smaller than .
Easily we get .
Lemma 1: is always nice.
Proof: Pair the numbers as following: , done.
Lemma 2: is always nice.
Proof: Pair the numbers as we did above. Now the numbers left are and is nice, done.
Induction : The only nice for each are :
1)
2)
3)
For just do the handwork.
Let be true for
For :
Obviously these numbers work due to the lemmas. If there exists another number so that , then (why?), and also is good.
But and therefore due to it must be , which is clearly absurd. Done.
Now by counting the number of these 3 cases of nice numbers we get that and by straightforward induction .
Solving the recurrence relation we get that .
|