2

I'm looking at the 'positive constants' definition, but just not seeing how to go from here to there.

Brad
  • 5,156
  • 2
  • 19
  • 50
Steve M
  • 137
  • 3

1 Answers1

6

By definition $f(n)=\mathcal O(n^2)$ if and only if there's $N$ and $C$ such that for all $n\ge N$ we have $|f(n)|\le C n^2$. In this case clearly we have $$\forall n\ge N,\quad |f(n)|\le C n^3$$ so it suffices to take the same constant.