MathLabs

Problem 6

For each positive integer N N , let f(N) f(N) be the number of ways to represent N N as a sum of powers of 22 with non-negative integer exponents; order of summands is ignored. For example, f(4)=4 f(4)=4. Prove that for every integer n≥3 n\ge3, 2n2/4<f(2n)<2n2/22^{n^2/4}<f(2^n)<2^{n^2/2}.
Step 4 of 5: Use the pairing lemma
In plain words

Use the pairing lemma

∑j=12rf(j)≥2rf(r)\sum_{j=1}^{2r}f(j)\ge2r f(r)
Detailed analysis

Pair the terms symmetrically. The recurrence shows f(j)+f(2r+1−j) f(j)+f(2r+1-j) is nonincreasing as j j moves from 11 to r r , so every pair is at least f(r)+f(r)=2f(r) f(r)+f(r)=2f(r). This proves the lemma.