The function \(\mathrm{f}\), with domain the non-negative integers, is defined by
\[\mathrm{f}(n)=\begin{cases}2,&n=0,\\3+\mathrm{f}\left(\dfrac n2\right),&n\text{ is positive and even},\\1+\mathrm{f}(n-1),&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