Problem

Source: APMO 2008 problem 4

Tags: function, induction, modular arithmetic, algebra proposed, algebra, binary representation



Consider the function $ f: \mathbb{N}_0\to\mathbb{N}_0$, where $ \mathbb{N}_0$ is the set of all non-negative integers, defined by the following conditions : $ (i)$ $ f(0) = 0$; $ (ii)$ $ f(2n) = 2f(n)$ and $ (iii)$ $ f(2n + 1) = n + 2f(n)$ for all $ n\geq 0$. $ (a)$ Determine the three sets $ L = \{ n | f(n) < f(n + 1) \}$, $ E = \{n | f(n) = f(n + 1) \}$, and $ G = \{n | f(n) > f(n + 1) \}$. $ (b)$ For each $ k \geq 0$, find a formula for $ a_k = \max\{f(n) : 0 \leq n \leq 2^k\}$ in terms of $ k$.