(a) Let
L1:={2k:k>0},E1:={0}∪{4k+1:k≥0}, and G1:={4k+3:k≥0}.
We will show that L1=L, E1=E, and G1=G. It suffices to verify that L1⊆L, E1⊆E, and G1⊆G because L1, E1, and G1 are mutually disjoint and L1∪E1∪G1=N0.
Firstly, if k>0, then f(2k)−f(2k+1)=−k<0 and therefore L1⊆L.
Secondly, f(0)=0 and
f(4k+1)=2k+2f(2k)=2k+4f(k)f(4k+2)=2f(2k+1)=2(k+2f(k))=2k+4f(k)
for all k≥0. Thus, E1⊆E.
Lastly, in order to prove G1⊂G, we claim that f(n+1)−f(n)≤n for all n. (In fact, one can prove a stronger inequality: f(n+1)−f(n)≤n/2.) This is clearly true for even n from the definition since for n=2t,
f(2t+1)−f(2t)=t≤n
If n=2t+1 is odd, then (assuming inductively that the result holds for all nonnegative m<n ), we have
f(n+1)−f(n)=f(2t+2)−f(2t+1)=2f(t+1)−t−2f(t)=2(f(t+1)−f(t))−t≤2t−t=t<n.
For all k≥0,
f(4k+4)−f(4k+3)=f(2(2k+2))−f(2(2k+1)+1)=4f(k+1)−(2k+1+2f(2k+1))=4f(k+1)−(2k+1+2k+4f(k))=4(f(k+1)−f(k))−(4k+1)≤4k−(4k+1)<0
This proves G1⊆G.
(b) Note that a0=a1=f(1)=0. Let k≥2 and let Nk={0,1,2,…,2k}. First we claim that the maximum ak occurs at the largest number in G∩Nk, that is, ak=f(2k−1). We use mathematical induction on k to prove the claim. Note that a2=f(3)=f(22−1).
Now let k≥3. For every even number 2t with 2k−1+1<2t≤2k,
f(2t)=2f(t)≤2ak−1=2f(2k−1−1)(†)
by induction hypothesis. For every odd number 2t+1 with 2k−1+1≤2t+1<2k,
f(2t+1)=t+2f(t)≤2k−1−1+2f(t)≤2k−1−1+2ak−1=2k−1−1+2f(2k−1−1)(‡)
again by induction hypothesis. Combining (†), (‡) and
f(2k−1)=f(2(2k−1−1)+1)=2k−1−1+2f(2k−1−1),
we may conclude that ak=f(2k−1) as desired.
Furthermore, we obtain
ak=2ak−1+2k−1−1
for all k≥3. Note that this recursive formula for ak also holds for k≥0,1 and 2. Unwinding this recursive formula, we finally get
ak=2ak−1+2k−1−1=2(2ak−2+2k−2−1)+2k−1−1=22ak−2+2⋅2k−1−2−1=22(2ak−3+2k−3−1)+2⋅2k−1−2−1=23ak−3+3⋅2k−1−22−2−1⋮=2ka0+k2k−1−2k−1−2k−2−…−2−1=k2k−1−2k+1 for all k≥0