1

Prove that $T(n) = (n+1)! + 2^n$ is $O((n+1)!)$.

Proof: by Big-Oh definition, $T(n)$ is $O((n+1)!)$ if $T(n) \leq c\cdot (n+1)!$ for some $n\geq n_0$.

Let us check this condition. If $(n+1)! + 2^n \leq c\cdot(n+1)!$ then (this is the part I am having trouble with. I cannot find a way to divide through the inequality to show the proof.) <= c. Therefore, the Big-Oh condition holds for $n\geq n_0 =$ ? and $c \geq$ ?.

The question is how can I arrange the expression to be able to prove that this is $O((n+1)!)$?

Alann Rosas
  • 5,421
  • 1
  • 9
  • 28

0 Answers0