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
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