Problem 4
Consider the function , where is the set of all non-negative integers, defined by , and for all . (a) Determine the three sets , , and . (b) For each , find a formula for in terms of .
Step 4 of 6: Locate the maximum
Detailed analysis
For the claim is immediate. Assume it for . For even in the upper half of , the recurrence gives . For odd there, . Both bounds are at most , so the maximum is attained at .