The function \(\mathrm{g}\), with domain the non-negative integers, is defined by
\[\mathrm{g}(n)=\begin{cases}1,&n=0,\\2\mathrm{g}\left(\dfrac n2\right),&n\text{ is positive and even},\\1+\mathrm{g}\left(\dfrac{n-1}{2}\right),&n\text{ is odd}.\end{cases}\]
Video solution locked
A free account saves your progress; this video needs a course plan.
Hundreds of questions here come with free worked solutions. A free account saves your questions and progress; this one needs a course plan.
Create a free account to practise similar questions.
Need help? Join our JC Math tuition classes.
Learn more