Suppose that $n=O(\log_2 m)$. Let $f=O(m)$.
How can we prove that $f=O(2^n)$ as well?
I know that $m=2^{\log_2 m}$, but I can't simply plug $n$ there, because $n$ isn't equal to $\log_2 m$, but $O(\log_2 m)$. Can it be proven without refering to the definition of big $O$ directly? But of course I'll be fine with a proof that uses the definition as well.
What motivated me to ask this was the answer to this question.
It may of course be false as well.