For functions , big O notation means
Using the natural logarithm and exponential function, . Since , for every we have . The witnesses therefore prove
For , implies , and also . Consequently
The definition of big O notation holds with :
Suppose the definition of big O notation held with constants . Choose an odd integer . At this input, and , so the required inequality would be , a contradiction. Thus
The infinitely many even inputs, where , cannot repair the failure on odd inputs because the bound must hold for every sufficiently large input.
A direct mathematical induction proves . The base cases and hold. If the bound holds at and , then the Fibonacci recurrence gives
Thus the definition of big O notation holds with , proving

Articles by others on the same topic (0)

There are currently no matching articles.