Given: $f(1) = 1$.
Answer:
$$f(2) = f(1) + 1 = 1 + 1$$ $$\ldots$$ $$f(4) = f(2) + 1 = 1 + 1 + 1.$$
How do I find the value of $f(n)$ where $n$ is an odd integer?
Let say $f(3) = f\left(\frac{3}{2}\right) + 1$ which is it by the way. Then the question comes up what would the value of $f\left(\frac{3}{2}\right)$ be?
Unless you give some more initial terms, it is not possible to find $f(n)$ where $n$ is not a power of $2$.
When $n = 2^k,$ I claim that $f(2^k) = k+1$ for $k \ge 1$. This is true for $f(2)$ so assume it holds for some $k = j > 1$. Then $f(2^{j+1}) = f(2^j)+1 = j+2$ so we are done.