Assume $f,g: \Bbb N \rightarrow \Bbb R $ are two functions such that $f \in \Theta(n^k)$ for some $k \in \Bbb N$ and $g \in O(f)$. Does this imply $f \in O(g)$?
We know that
$$f \in \Theta(n^k) \Rightarrow f \in O(n^k).$$
Since $g \in O(f)$, we are allowed to assume that
$$g(n) \le c \cdot f(n)$$
for some $n \in \Bbb N$ and $c > 0$. I feel like the statement can't be true, but I can't tell why. Does anyone have a hint for me?
At first we show that $f$ and $g$ fulfill the conditions stated in the assumption.
In order to show that $g\in O(f)$ we have to find a constant $C>0$ so that \begin{align*} |g(n)|<C |f(n)|\qquad\qquad \forall n\in\mathbb{N} \end{align*} Taking $C=2$ does the job, since \begin{align*} n^{k-1}<2n^k\qquad\qquad\qquad \forall n\in\mathbb{N} \end{align*}