I need to find a solution for, or at least a way to compute efficiently, the following recurrence equation:
$$f(x) = \begin{cases} f(x-2)+f(x/2), & \text{if $x$ is even} \\ f(x-1), & \text{if $x$ is odd.} \end{cases}$$
Also, $f(0)=f(1)=1$.
I looked back at my notes from college years, none of the ones we studied look similar to this form, none of them has anything like $x/2$ in indexes.
Any help is greatly appreciated.