Dominating Big-O

35 Views Asked by At

How could I prove that $O(5^n)$ is dominated by $O(n!)$ by using induction?

Or: $5^n \in O(n!)$

I've got the basic formulas written out in regards to $f(k+1)$ but I'm just not sure how to proceed.

2

There are 2 best solutions below

2
On

Hint:

Set $u_n=\dfrac{5^n}{n!}$ and use the ratio test to show that $5^n=o(n!)$. A fortiori, $5^n=O(n!)$.

0
On

There is no need to use induction here. Just notice that for $n \geq 5$ all but we have that all but the first $4$ factors in $n!$ are at least $5$. Therefore $n! > 4! \cdot 5^{n-4} = \frac{24}{5^4} \cdot 5^n$. So there is an $n_0$ and a $c$ such that $5^n \leq n!$ whenever $n \geq n_0$.