\({\mathrm{g}(n) = \begin{cases} 1 & \mathrm{for } \, n = 0, \\ 2 + \mathrm{g}\left(\frac{1}{2} n\right) & \mathrm{for } \, n \, \mathrm{ even}, \\ 1 + \mathrm{g}(n - 1) & \mathrm{for } \, n \, \mathrm{ odd}. \end{cases}}\)






Need help? Join our JC Math tuition classes.
Learn more