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
Sign in to view the step-by-step solution
Need help? Join our JC Math tuition classes.
Learn more